Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb2c037f82 |
@@ -1,6 +0,0 @@
|
||||
934a04b5d6ec9aa62cb991fb2f57256c439bac4b2ac110cabd524ad456e59491 ./capabilities-after.json
|
||||
934a04b5d6ec9aa62cb991fb2f57256c439bac4b2ac110cabd524ad456e59491 ./capabilities-before.json
|
||||
6ddc8c77b60d32d392559f888c2e5bee5a785ed86e89917084d12034199cbb9c ./framework-ci.txt
|
||||
f106d77dff70648ec9f06114c87bd954bff4bc7675205ea43445725b44f8c0bc ./retention-tests.txt
|
||||
ed7ea58c47859dd4628048cbafac6e9da23636c813899376e13d1ae33e78f3c4 ./scope.txt
|
||||
a910962c57e27ee15d11f0f073ff15e5e3a1f94d22122cff1694df78ff559864 run.sh
|
||||
@@ -1,46 +0,0 @@
|
||||
test_active_release_protected (test_retention.RetentionTests.test_active_release_protected) ... ok
|
||||
test_all_releases_accounted_for (test_retention.RetentionTests.test_all_releases_accounted_for) ... ok
|
||||
test_default_retention (test_retention.RetentionTests.test_default_retention) ... ok
|
||||
test_deterministic_plan (test_retention.RetentionTests.test_deterministic_plan) ... ok
|
||||
test_duplicate_protected_release_rejected (test_retention.RetentionTests.test_duplicate_protected_release_rejected) ... ok
|
||||
test_duplicate_release_rejected (test_retention.RetentionTests.test_duplicate_release_rejected) ... ok
|
||||
test_empty_inventory_rejected (test_retention.RetentionTests.test_empty_inventory_rejected) ... ok
|
||||
test_explicitly_protected_release (test_retention.RetentionTests.test_explicitly_protected_release) ... ok
|
||||
test_failed_current_rejected (test_retention.RetentionTests.test_failed_current_rejected) ... ok
|
||||
test_failed_release_not_selected_as_previous (test_retention.RetentionTests.test_failed_release_not_selected_as_previous) ... ok
|
||||
test_failed_release_preserved (test_retention.RetentionTests.test_failed_release_preserved) ... ok
|
||||
test_fingerprint_changes_with_policy (test_retention.RetentionTests.test_fingerprint_changes_with_policy) ... ok
|
||||
test_fingerprint_changes_with_protection (test_retention.RetentionTests.test_fingerprint_changes_with_protection) ... ok
|
||||
test_input_not_mutated (test_retention.RetentionTests.test_input_not_mutated) ... ok
|
||||
test_invalid_inventory_type (test_retention.RetentionTests.test_invalid_inventory_type) ... ok
|
||||
test_invalid_protection_type (test_retention.RetentionTests.test_invalid_protection_type) ... ok
|
||||
test_invalid_release_identifiers (test_retention.RetentionTests.test_invalid_release_identifiers) ... ok
|
||||
test_invalid_retention_values (test_retention.RetentionTests.test_invalid_retention_values) ... ok
|
||||
test_keep_larger_than_inventory (test_retention.RetentionTests.test_keep_larger_than_inventory) ... ok
|
||||
test_missing_current_rejected (test_retention.RetentionTests.test_missing_current_rejected) ... ok
|
||||
test_missing_failed_release_rejected (test_retention.RetentionTests.test_missing_failed_release_rejected) ... ok
|
||||
test_missing_policy_field_rejected (test_retention.RetentionTests.test_missing_policy_field_rejected) ... ok
|
||||
test_missing_protected_release_rejected (test_retention.RetentionTests.test_missing_protected_release_rejected) ... ok
|
||||
test_missing_unresolved_release_rejected (test_retention.RetentionTests.test_missing_unresolved_release_rejected) ... ok
|
||||
test_multiple_protected_releases (test_retention.RetentionTests.test_multiple_protected_releases) ... ok
|
||||
test_no_automatic_archival (test_retention.RetentionTests.test_no_automatic_archival) ... ok
|
||||
test_no_automatic_deletion (test_retention.RetentionTests.test_no_automatic_deletion) ... ok
|
||||
test_no_candidates_when_every_release_protected (test_retention.RetentionTests.test_no_candidates_when_every_release_protected) ... ok
|
||||
test_numeric_release_order (test_retention.RetentionTests.test_numeric_release_order) ... ok
|
||||
test_plan_fingerprint (test_retention.RetentionTests.test_plan_fingerprint) ... ok
|
||||
test_previous_healthy_release_preserved (test_retention.RetentionTests.test_previous_healthy_release_preserved) ... ok
|
||||
test_retention_reasons (test_retention.RetentionTests.test_retention_reasons) ... ok
|
||||
test_single_release_retained (test_retention.RetentionTests.test_single_release_retained) ... ok
|
||||
test_small_inventory_retained (test_retention.RetentionTests.test_small_inventory_retained) ... ok
|
||||
test_unknown_policy_field_rejected (test_retention.RetentionTests.test_unknown_policy_field_rejected) ... ok
|
||||
test_unresolved_transaction_blocks_archival (test_retention.RetentionTests.test_unresolved_transaction_blocks_archival) ... ok
|
||||
test_missing_or_corrupt_archive_denies_planning (test_retention_archive.ArchivedRetentionTests.test_missing_or_corrupt_archive_denies_planning) ... ok
|
||||
test_verified_archive_supplies_retired_journal (test_retention_archive.ArchivedRetentionTests.test_verified_archive_supplies_retired_journal) ... ok
|
||||
test_wrong_site_or_unrecognised_archive_denies_planning (test_retention_archive.ArchivedRetentionTests.test_wrong_site_or_unrecognised_archive_denies_planning) ... ok
|
||||
test_retired_rollback_preserves_failed_candidate (test_retention_archive.RollbackRetentionTests.test_retired_rollback_preserves_failed_candidate) ... ok
|
||||
test_tampered_or_missing_quarantine_marker_denies_planning (test_retention_archive.RollbackRetentionTests.test_tampered_or_missing_quarantine_marker_denies_planning) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 41 tests in 0.396s
|
||||
|
||||
OK
|
||||
@@ -1,19 +0,0 @@
|
||||
set -euo pipefail
|
||||
umask 077
|
||||
test "$(hostname -s | tr A-Z a-z)" = absdev-ci
|
||||
stage=$(mktemp -d /var/tmp/absdev-rollback-retention.XXXXXX)
|
||||
trap 'rm -rf -- "$stage"' EXIT
|
||||
mkdir "$stage/source" "$stage/evidence" "$stage/tmp"
|
||||
tar -xm -f - -C "$stage/source"
|
||||
cd "$stage/source"
|
||||
export TMPDIR="$stage/tmp"
|
||||
out="$stage/evidence"
|
||||
printf 'host=%s\nrevision=2a001b1269804f997c3d76bbe030b4126745e51e\n' "$(hostname -s)" > "$out/scope.txt"
|
||||
python3 -B bin/absdev-deploy capabilities > "$out/capabilities-before.json"
|
||||
python3 -B -m unittest discover -s tests/unit -p test_retention*.py -v > "$out/retention-tests.txt" 2>&1 || { cat "$out/retention-tests.txt" >&2; exit 1; }
|
||||
bash scripts/ci-check.sh > "$out/framework-ci.txt" 2>&1 || { tail -60 "$out/framework-ci.txt" >&2; exit 1; }
|
||||
python3 -B bin/absdev-deploy capabilities > "$out/capabilities-after.json"
|
||||
cmp "$out/capabilities-before.json" "$out/capabilities-after.json"
|
||||
python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); f=[v for k,v in d.items() if k.endswith("_enabled") or k=="production_ready"]; assert len(f)==6 and all(v is False for v in f)' "$out/capabilities-after.json"
|
||||
(cd "$out" && sha256sum ./* > SHA256SUMS)
|
||||
tar -czf - -C "$out" .
|
||||
@@ -0,0 +1,25 @@
|
||||
# ABSDEV-CI staging identity and active-session qualification
|
||||
|
||||
Qualified published revision 2a001b1269804f997c3d76bbe030b4126745e51e.
|
||||
The saved staging manifest supplied site bindings for the approval and database
|
||||
fixtures. The database tests used isolated MySQL and PostgreSQL containers and
|
||||
the file-backed secret delivery path. Both old sessions retained their identity
|
||||
and query access after password rotation. Each old session stopped serving
|
||||
queries only after explicit server-side termination. Fresh connections rejected
|
||||
retired passwords and accepted backend-delivered replacements.
|
||||
|
||||
An independent non-root rehearsal runner signed synthetic rehearsal evidence
|
||||
and the non-root approval runtime verified it using a protected copy of the
|
||||
same key. The runner could not enter the operator authority directory and an
|
||||
ungranted account could not access either authority. The approval runtime
|
||||
rejected grant removal, operator signing key replacement, and unsafe or
|
||||
missing authority. The earlier real Laravel rehearsal is separate evidence.
|
||||
This drill did not test live revocation of a cached rehearsal key.
|
||||
|
||||
The private Gitea repository was disposable. The CI deploy key could clone the
|
||||
exact expected revision through a temporary loopback SSH tunnel with strict
|
||||
host-key verification. A write dry run was rejected, and access failed before
|
||||
enrolment and after key revocation. The repository and key were removed.
|
||||
|
||||
All production capability reports matched before and after. No framework source
|
||||
changes were needed. The archive contains no passwords, tokens, or key bytes.
|
||||
@@ -0,0 +1,13 @@
|
||||
213f16522a7d5b458811daf5d9677c8e4641a06535615f919e6b551c5a025af8 ./SCOPE.md
|
||||
934a04b5d6ec9aa62cb991fb2f57256c439bac4b2ac110cabd524ad456e59491 ./active-sessions/capabilities-after.json
|
||||
934a04b5d6ec9aa62cb991fb2f57256c439bac4b2ac110cabd524ad456e59491 ./active-sessions/capabilities-before.json
|
||||
c78b190c63e13427ecef608b8a2e5be379ee2c83644d1a25671edd55c65567f1 ./active-sessions/checks.jsonl
|
||||
5dac5fdd775d649fd55c6d5919f5e10105d4dd5e6108a086d32ddf12bdcf5911 ./active-sessions/framework-ci.txt
|
||||
ed7ea58c47859dd4628048cbafac6e9da23636c813899376e13d1ae33e78f3c4 ./active-sessions/scope.txt
|
||||
934a04b5d6ec9aa62cb991fb2f57256c439bac4b2ac110cabd524ad456e59491 ./keys/capabilities-after.json
|
||||
934a04b5d6ec9aa62cb991fb2f57256c439bac4b2ac110cabd524ad456e59491 ./keys/capabilities-before.json
|
||||
cec71a1935de414262c15e236c99e662a0fb2b2407ad939c4850574af6cdfdff ./keys/checks.jsonl
|
||||
0d3d8ff3df9418eb68c90db46a3a3fddb0c2db9d2e643ddf9978e2b7a5d2f860 ./keys/framework-ci.txt
|
||||
ab3587c91a1330e1f44f5681dbae4e44fbc4fbb7de90d596ae934f994ce9c816 ./keys/scope.txt
|
||||
8e493d207dae9ef45988c85fb86d0fa866b809e110ad2e4b24a2950ba75f9f07 ./private-repo.json
|
||||
d13f9f77480f4382d79f11f4253b94d9cf77867d3a6590c0493107c2128562c3 ./site-manifest.json
|
||||
@@ -0,0 +1,24 @@
|
||||
{"engine": "framework", "result": "PASS", "check": "approved child receives fixed PATH and locale only"}
|
||||
{"engine": "mysql", "result": "PASS", "check": "disposable database has no external network or published ports and only the read-only site credential bind"}
|
||||
{"engine": "mysql", "result": "PASS", "check": "missing credential file rejects authentication without publishing output"}
|
||||
{"engine": "mysql", "result": "PASS", "check": "adapter authenticates as the designated UID with backend-delivered file; unrelated UID cannot read it"}
|
||||
{"engine": "mysql", "result": "PASS", "check": "persistent session authenticated with the original backend credential"}
|
||||
{"engine": "mysql", "result": "PASS", "check": "server explicitly rejects the old credential after password rotation"}
|
||||
{"engine": "mysql", "result": "PASS", "check": "new backend credential atomically delivered to the existing container authenticates"}
|
||||
{"engine": "mysql", "result": "PASS", "check": "re-delivering the retired credential still fails server authentication"}
|
||||
{"engine": "mysql", "result": "PASS", "check": "re-delivering the new credential works in the original running container"}
|
||||
{"engine": "mysql", "result": "PASS", "check": "existing session retained its server session identity and query access after password rotation"}
|
||||
{"engine": "mysql", "result": "PASS", "check": "explicit termination disconnected the old active session"}
|
||||
{"engine": "mysql", "result": "PASS", "check": "fresh new-password connection remained available after old session termination"}
|
||||
{"engine": "pgsql", "result": "PASS", "check": "disposable database has no external network or published ports and only the read-only site credential bind"}
|
||||
{"engine": "pgsql", "result": "PASS", "check": "missing credential file rejects authentication without publishing output"}
|
||||
{"engine": "pgsql", "result": "PASS", "check": "adapter authenticates as the designated UID with backend-delivered file; unrelated UID cannot read it"}
|
||||
{"engine": "pgsql", "result": "PASS", "check": "persistent session authenticated with the original backend credential"}
|
||||
{"engine": "pgsql", "result": "PASS", "check": "server explicitly rejects the old credential after password rotation"}
|
||||
{"engine": "pgsql", "result": "PASS", "check": "new backend credential atomically delivered to the existing container authenticates"}
|
||||
{"engine": "pgsql", "result": "PASS", "check": "re-delivering the retired credential still fails server authentication"}
|
||||
{"engine": "pgsql", "result": "PASS", "check": "re-delivering the new credential works in the original running container"}
|
||||
{"engine": "pgsql", "result": "PASS", "check": "existing session retained its server session identity and query access after password rotation"}
|
||||
{"engine": "pgsql", "result": "PASS", "check": "explicit termination disconnected the old active session"}
|
||||
{"engine": "pgsql", "result": "PASS", "check": "fresh new-password connection remained available after old session termination"}
|
||||
{"engine": "framework", "result": "PASS", "check": "all disposable containers and their anonymous volumes removed"}
|
||||
+1
-1
@@ -7,7 +7,7 @@ PASS: 90 Python sources compiled
|
||||
=== COMPLETE UNIT REGRESSION SUITE ===
|
||||
...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
|
||||
----------------------------------------------------------------------
|
||||
Ran 911 tests in 18.419s
|
||||
Ran 911 tests in 18.491s
|
||||
|
||||
OK
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"commands": [
|
||||
"validate",
|
||||
"capabilities",
|
||||
"inventory",
|
||||
"retention-plan",
|
||||
"provision-plan",
|
||||
"site-policy",
|
||||
"registry-validate",
|
||||
"preflight"
|
||||
],
|
||||
"database_restore_enabled": false,
|
||||
"deployment_execution_enabled": false,
|
||||
"format_version": 1,
|
||||
"migration_execution_enabled": false,
|
||||
"permanent_deletion_enabled": false,
|
||||
"production_ready": false,
|
||||
"provisioning_execution_enabled": false
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"commands": [
|
||||
"validate",
|
||||
"capabilities",
|
||||
"inventory",
|
||||
"retention-plan",
|
||||
"provision-plan",
|
||||
"site-policy",
|
||||
"registry-validate",
|
||||
"preflight"
|
||||
],
|
||||
"database_restore_enabled": false,
|
||||
"deployment_execution_enabled": false,
|
||||
"format_version": 1,
|
||||
"migration_execution_enabled": false,
|
||||
"permanent_deletion_enabled": false,
|
||||
"production_ready": false,
|
||||
"provisioning_execution_enabled": false
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{"check": "authorised approval consumed once and replay rejected", "result": "PASS"}
|
||||
{"check": "same running process rejected unconsumed approval after execute grant removal", "result": "PASS"}
|
||||
{"check": "same running process rejected an approval sealed by the retired key", "result": "PASS"}
|
||||
{"check": "missing authority failed closed without a consumption marker", "result": "PASS"}
|
||||
{"check": "unsafe authority permissions failed closed without a consumption marker", "result": "PASS"}
|
||||
{"check": "replacement key restored authorised consumption in the original process", "result": "PASS"}
|
||||
{"check":"separate rehearsal runner issued attestation accepted by approval runtime; outsider denied key access","result":"PASS"}
|
||||
{"check":"disposable operator and authority files removed","result":"PASS"}
|
||||
@@ -0,0 +1,108 @@
|
||||
=== ABSDEV FRAMEWORK CI ===
|
||||
Python 3.14.4
|
||||
|
||||
=== PYTHON SYNTAX VALIDATION ===
|
||||
PASS: 90 Python sources compiled
|
||||
|
||||
=== COMPLETE UNIT REGRESSION SUITE ===
|
||||
...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
|
||||
----------------------------------------------------------------------
|
||||
Ran 911 tests in 18.322s
|
||||
|
||||
OK
|
||||
|
||||
=== VERIFY PRODUCTION CAPABILITY RESTRICTIONS ===
|
||||
PASS: production_ready=false
|
||||
PASS: deployment_execution_enabled=false
|
||||
PASS: migration_execution_enabled=false
|
||||
PASS: provisioning_execution_enabled=false
|
||||
PASS: database_restore_enabled=false
|
||||
PASS: permanent_deletion_enabled=false
|
||||
PASS: Unsupported command rejected: deploy
|
||||
PASS: Unsupported command rejected: migrate
|
||||
PASS: Unsupported command rejected: rollback
|
||||
PASS: Unsupported command rejected: restore
|
||||
PASS: Unsupported command rejected: provision
|
||||
PASS: Unsupported command rejected: delete
|
||||
|
||||
=== EXAMPLE CONFIGURATION ===
|
||||
PASS: Configuration valid
|
||||
Site: example-absdev-net
|
||||
Domain: example.absdev.net
|
||||
Database: mysql
|
||||
Schema: 1
|
||||
No deployment performed
|
||||
{
|
||||
"configuration_fingerprint": "8067fa8477a7d50cbcc42b585961bcd4dbce5407fc7e4bffcfb3e07af529e483",
|
||||
"execution_permitted": false,
|
||||
"fingerprint": "d271a3a3ed2cbda032f905558fe9ada653c380c74306fc714ebc594483a63042",
|
||||
"format_version": 1,
|
||||
"runtime_verified": false,
|
||||
"site": "example-absdev-net",
|
||||
"static_policy_verified": true,
|
||||
"status": "VALID"
|
||||
}
|
||||
{
|
||||
"configuration_fingerprint": "8067fa8477a7d50cbcc42b585961bcd4dbce5407fc7e4bffcfb3e07af529e483",
|
||||
"database": {
|
||||
"container": "platform-mysql",
|
||||
"driver": "mysql",
|
||||
"name": "example_db",
|
||||
"username": "example_app"
|
||||
},
|
||||
"database_creation_permitted": false,
|
||||
"directories": [
|
||||
"/opt/laravel-sites/example-absdev-net",
|
||||
"/opt/laravel-sites/example-absdev-net/app",
|
||||
"/opt/laravel-sites/example-absdev-net/app/releases",
|
||||
"/opt/laravel-sites/example-absdev-net/app/shared",
|
||||
"/opt/laravel-sites/example-absdev-net/deployment",
|
||||
"/opt/laravel-sites/example-absdev-net/backups",
|
||||
"/opt/laravel-sites/example-absdev-net/deployment/state",
|
||||
"/opt/laravel-sites/example-absdev-net/deployment/approvals",
|
||||
"/opt/laravel-sites/example-absdev-net/deployment/archives"
|
||||
],
|
||||
"docker": {
|
||||
"networks": [
|
||||
"laravel_backend",
|
||||
"laravel_proxy"
|
||||
],
|
||||
"project": "site-example-absdev-net",
|
||||
"services": [
|
||||
"php",
|
||||
"web",
|
||||
"queue",
|
||||
"scheduler"
|
||||
]
|
||||
},
|
||||
"domain": "example.absdev.net",
|
||||
"execution_permitted": false,
|
||||
"filesystem_permissions_verified": false,
|
||||
"fingerprint": "d8432e17dc1b91ce4712ab656c14c0b5a0957c54700b027b22444dc3a4c19feb",
|
||||
"format_version": 1,
|
||||
"origin_port": 8199,
|
||||
"repository": {
|
||||
"branch": "main",
|
||||
"url": "[email protected]:example/application.git"
|
||||
},
|
||||
"resource_conflicts_checked": false,
|
||||
"retention": {
|
||||
"automatic_deletion": false,
|
||||
"keep_releases": 5
|
||||
},
|
||||
"root": "/opt/laravel-sites/example-absdev-net",
|
||||
"secrets_required": true,
|
||||
"site": "example-absdev-net",
|
||||
"site_policy_fingerprint": "d271a3a3ed2cbda032f905558fe9ada653c380c74306fc714ebc594483a63042",
|
||||
"static_policy_verified": true,
|
||||
"status": "PLAN_ONLY"
|
||||
}
|
||||
|
||||
=== REFERENCE INTEGRITY ===
|
||||
SKIP: Private reference excluded from checkout
|
||||
|
||||
========================================
|
||||
PASS: FRAMEWORK CI
|
||||
UNIT TESTS AND STATIC VALIDATION ONLY
|
||||
DATABASE INTEGRATION NOT EXECUTED
|
||||
========================================
|
||||
@@ -0,0 +1,3 @@
|
||||
host=absdev-ci
|
||||
revision=2a001b1269804f997c3d76bbe030b4126745e51e
|
||||
operator_uid=1001
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"disposable_private_repo": true,
|
||||
"server_host_key_verified": true,
|
||||
"unenrolled_identity_denied": true,
|
||||
"scoped_read_only_identity_fetched_exact_revision": "e2d653a5c7dbc36ebe9f61d2287ba313a5f1390c",
|
||||
"write_dry_run_denied": true,
|
||||
"revoked_identity_denied": true,
|
||||
"disposable_repo_and_key_removed": true
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"schema_version": 1,
|
||||
"site": {
|
||||
"identifier": "stage-1eb89391113a",
|
||||
"domain": "stage-1eb89391113a.example.invalid",
|
||||
"root": "/var/tmp/absdev-manifest-staging.8Tc3EY/stage-1eb89391113a",
|
||||
"origin_port": 8199
|
||||
},
|
||||
"repository": {
|
||||
"url": "https://fixture.example.invalid/absdev-laravel.git",
|
||||
"branch": "main"
|
||||
},
|
||||
"database": {
|
||||
"driver": "pgsql",
|
||||
"container": "fixture-postgres",
|
||||
"host": "postgres",
|
||||
"port": 5432,
|
||||
"name": "fixture",
|
||||
"username": "app_user"
|
||||
},
|
||||
"docker": {
|
||||
"project": "site-stage-1eb89391113a",
|
||||
"application_path": "/var/www/html",
|
||||
"php_service": "php",
|
||||
"web_service": "web",
|
||||
"queue_service": "queue",
|
||||
"scheduler_service": "scheduler",
|
||||
"backend_network": "private",
|
||||
"proxy_network": "edge"
|
||||
},
|
||||
"retention": {
|
||||
"keep_releases": 5,
|
||||
"automatic_deletion": false
|
||||
},
|
||||
"migration": {
|
||||
"require_approval": true,
|
||||
"require_rehearsal": true,
|
||||
"approval_ttl_hours": 24
|
||||
},
|
||||
"backup": {
|
||||
"required": true,
|
||||
"verify_checksum": true
|
||||
},
|
||||
"health": {
|
||||
"endpoints": [
|
||||
"/",
|
||||
"/up",
|
||||
"/login"
|
||||
],
|
||||
"timeout_seconds": 30
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user