Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
090db15a45 |
+5
-4
@@ -11,9 +11,6 @@ from core.compatibility import (
|
||||
from core.locking import DeploymentLock
|
||||
|
||||
|
||||
ROLLBACK_ELIGIBLE_PHASES = frozenset({"ACTIVATING", "ACTIVATED", "FAILED"})
|
||||
|
||||
|
||||
class RecoveryError(RuntimeError):
|
||||
"""Recovery safety could not be established."""
|
||||
|
||||
@@ -143,7 +140,11 @@ class RecoveryPlanner:
|
||||
)
|
||||
|
||||
require(
|
||||
transaction["phase"] in ROLLBACK_ELIGIBLE_PHASES,
|
||||
transaction["phase"] in (
|
||||
"ACTIVATING",
|
||||
"ACTIVATED",
|
||||
"FAILED",
|
||||
),
|
||||
"Transaction phase does not permit rollback review",
|
||||
)
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ from core.compatibility import (
|
||||
validate_provenance,
|
||||
)
|
||||
from core.locking import DeploymentLock
|
||||
from core.recovery import ROLLBACK_ELIGIBLE_PHASES
|
||||
|
||||
|
||||
class RollbackArchiveReader:
|
||||
@@ -66,10 +65,10 @@ class RollbackArchiveReader:
|
||||
)
|
||||
|
||||
require(
|
||||
transaction["phase"] in ROLLBACK_ELIGIBLE_PHASES
|
||||
transaction["phase"] == "FAILED"
|
||||
and intent["status"] == "ROLLBACK_INTENT"
|
||||
and result["status"] == "ROLLED_BACK",
|
||||
"Completed rollback of a failed or interrupted activation required",
|
||||
"Completed failed-transaction rollback required",
|
||||
)
|
||||
|
||||
phases = {
|
||||
@@ -196,9 +195,9 @@ class RollbackArchive(RollbackArchiveReader):
|
||||
|
||||
require(
|
||||
transaction is not None
|
||||
and transaction["phase"] in ROLLBACK_ELIGIBLE_PHASES
|
||||
and transaction["phase"] == "FAILED"
|
||||
and transaction["site"] == self.planner.site,
|
||||
"Failed or interrupted deployment transaction required",
|
||||
"Failed deployment transaction required",
|
||||
)
|
||||
|
||||
identifier = transaction["transaction_id"]
|
||||
@@ -340,7 +339,6 @@ class RollbackArchive(RollbackArchiveReader):
|
||||
) from None
|
||||
|
||||
def _execute(self, confirmation, fingerprint):
|
||||
self.journal.require_writes_allowed()
|
||||
plan = self._plan()
|
||||
|
||||
require(
|
||||
|
||||
@@ -16,8 +16,6 @@ supply `--site` with the configured site identifier. Each archive must pass
|
||||
the framework's transaction and backup evidence validation. When the live
|
||||
journal is absent, exactly one archived verified transaction must match the
|
||||
active release. Rollback archives also require their original rollback and
|
||||
backup evidence and the failed release's matching quarantine marker. A
|
||||
verified rollback can retire a journal left in an interrupted activation
|
||||
phase while preserving its original history. All
|
||||
backup evidence and the failed release's matching quarantine marker. All
|
||||
releases referenced by validated archives are protected. Unknown, ambiguous
|
||||
or corrupt archive entries deny planning pending review.
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
805b48d3e047f3e9ef33be2cd569891dfe40fd79a4194a9efafa8377d9848ffb ./checks.jsonl
|
||||
310559ed8741cc192a2ef773a65a6493a27ea0f0d05344f493b38a6136d9d843 ./failed-health/retention.json
|
||||
9872594380dca634d28819790449445d0005f9c8be229f3d9821eb7e618ab61e ./failed-health/site-manifest.json
|
||||
b6fd18eca0bbeb4c5c4ae36470b83fd80d8b12db3f9cb33eff906b5d1087435d ./failed-health/transaction.json
|
||||
ccb46f4e0520306a1ae0273e498b2428cddd02d2440529c0919fa3c63954a2bf ./framework-ci.txt
|
||||
7855b13e4429f9820caa3927802076a2340c0da1b09b57e5827db3e0fba432c8 ./restart/archive-identity.json
|
||||
a76c9077c7cb12a9e7267efefeec94ecf6eaad18e944832964609ff40dce72b7 ./restart/retention.json
|
||||
cb66b523e20fe89c34e433cdc2b7ccf16d8bb22058ec46bba84c8f3b15e88f01 ./restart/retired-retention.json
|
||||
ec6f3841cdb54385f02efa3f205bb2e877d03f40fa9579e8421f08cebbda873b ./restart/site-manifest.json
|
||||
aee4287857499ea2f452d3b1c885a917084c2d6c4bfbf7d84441559b4d7e23de ./restart/transaction.json
|
||||
384a8d467333664e7e4a266c629bcb5313da241354dba29ac22ed4d11d9be8fa ./run.txt
|
||||
5668197c6f7ced292090ffcd4337701ebe9a6e2e4a275c6ec446e8c44c9fa75f ./success/archive-identity.json
|
||||
eabde8328930de7d6cd06ab844158746def62b4af0b0a59cfcf4c135b621b337 ./success/retention.json
|
||||
eabde8328930de7d6cd06ab844158746def62b4af0b0a59cfcf4c135b621b337 ./success/retired-retention.json
|
||||
f98b48885717c127a4c5964bfd89ae4c56e9142fddd49a4232ea13421d874aa7 ./success/site-manifest.json
|
||||
60bace94bd4e244b1a818693d2e49307323e81e75c17b41cb4e19812ace83eac ./success/transaction.json
|
||||
52f17c80f787a112a31021a17b3a118f3fa970462a3118879683420f6b847109 ./summary.json
|
||||
065bedb60939435b546fa8530ddae09aaee6706bc310b974d3e1c91d777e5c31 gate-review.md
|
||||
ae7616b866519533b12537d2612c6f6383477b2c8bd86e79f9e3e1708a05b475 baseline-archive-error.txt
|
||||
c163c32a82c0df916e45a5a71c8fa19e8d19ae1981cf2c1a4f19b90ab8889bc0 staging.py
|
||||
0548cb411f2403b29900ffd29aefd0303dee107a2a3a7d62ec4730198d43101d run.sh
|
||||
992c07a95aec10c7da3d91f90994218d6ba8f8d3301b4132708c5b9000193555 images.json
|
||||
934a04b5d6ec9aa62cb991fb2f57256c439bac4b2ac110cabd524ad456e59491 capabilities.json
|
||||
@@ -1,30 +0,0 @@
|
||||
E
|
||||
======================================================================
|
||||
ERROR: test_confirmed_rollback_can_archive_interrupted_activation (test_rollback_archive.InterruptedRollbackArchiveTests.test_confirmed_rollback_can_archive_interrupted_activation)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/private/tmp/absdev-live-retention.pSVOLY/baseline-src/tests/unit/test_rollback_archive.py", line 268, in test_confirmed_rollback_can_archive_interrupted_activation
|
||||
result = fixture.execute()
|
||||
File "/private/tmp/absdev-live-retention.pSVOLY/baseline-src/tests/unit/test_rollback_archive.py", line 43, in execute
|
||||
plan = self.archive.plan()
|
||||
File "/private/tmp/absdev-live-retention.pSVOLY/baseline-src/core/rollback_archive.py", line 313, in plan
|
||||
return self._plan()
|
||||
~~~~~~~~~~^^
|
||||
File "/private/tmp/absdev-live-retention.pSVOLY/baseline-src/core/rollback_archive.py", line 196, in _plan
|
||||
require(
|
||||
~~~~~~~^
|
||||
transaction is not None
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
...<2 lines>...
|
||||
"Failed deployment transaction required",
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
)
|
||||
^
|
||||
File "/private/tmp/absdev-live-retention.pSVOLY/baseline-src/core/archive.py", line 30, in require
|
||||
raise ArchiveError(message)
|
||||
core.archive.ArchiveError: Failed deployment transaction required
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 1 test in 0.012s
|
||||
|
||||
FAILED (errors=1)
|
||||
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
{
|
||||
"candidate": "2",
|
||||
"checksum": "4753ba0d4335c994c26ded88fa20f72705eb507fe8a4fb39363df546120cae34",
|
||||
"format_version": 1,
|
||||
"history": [
|
||||
{
|
||||
"phase": "PREPARED",
|
||||
"timestamp": "2026-11-30T12:38:56.961757+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "BACKED_UP",
|
||||
"timestamp": "2026-11-30T12:38:58.301935+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "QUIESCED",
|
||||
"timestamp": "2026-11-30T12:39:02.079512+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "ACTIVATING",
|
||||
"timestamp": "2026-11-30T12:39:03.905199+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "ACTIVATED",
|
||||
"timestamp": "2026-11-30T12:39:06.862546+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "FAILED",
|
||||
"timestamp": "2026-11-30T12:39:16.751085+00:00"
|
||||
}
|
||||
],
|
||||
"phase": "FAILED",
|
||||
"previous": "1",
|
||||
"previous_provenance": "fce10588608c8d4e7cf7155841393e41e8ebe94d37df3fc2170b0159f338e376",
|
||||
"previous_revision": "167c495f8027dcafe4f38cae303b272c451f7f50",
|
||||
"provenance": "c493576764ef78a392180d66746eb34110a8733d3ecdfa03cdcf4758309a985f",
|
||||
"revision": "ff36ab5cc8b1d6383e5bb0299c34f85617f402a5",
|
||||
"site": "stage-cd16afaf761d",
|
||||
"transaction_id": "1d5a80f2c34445e1a8618d4c53036da5"
|
||||
}
|
||||
@@ -1,108 +0,0 @@
|
||||
=== ABSDEV FRAMEWORK CI ===
|
||||
Python 3.14.4
|
||||
|
||||
=== PYTHON SYNTAX VALIDATION ===
|
||||
PASS: 90 Python sources compiled
|
||||
|
||||
=== COMPLETE UNIT REGRESSION SUITE ===
|
||||
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
|
||||
----------------------------------------------------------------------
|
||||
Ran 914 tests in 18.653s
|
||||
|
||||
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
|
||||
========================================
|
||||
@@ -1,17 +0,0 @@
|
||||
# ABSDEV production gates after live staging retention
|
||||
|
||||
ABSDEV-CI has covered the production-like staging topology and PostgreSQL grants,
|
||||
secret delivery and rotation with existing sessions, operator and rehearsal
|
||||
authority including running-process revocation, disposable private Git access,
|
||||
interrupted PostgreSQL migration reconciliation with live Docker/Nginx, and
|
||||
retention against the real staging release tree and durable archives. Framework
|
||||
CI uses pinned runner inputs.
|
||||
|
||||
The remaining work is target-specific. Approve and provision the real site
|
||||
configuration, source repositories and read identities, operator and rehearsal
|
||||
authorities, secret namespaces and rotation procedures. Then verify runtime
|
||||
network/service bindings and database grants, reconciliation with actual service
|
||||
adapters, and archive paths and ownership for each intended production site.
|
||||
Staging certificates and credentials cannot stand in for those target bindings.
|
||||
|
||||
Production execution, readiness and permanent deletion stayed disabled.
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"transaction_id": "c87c225a4e3a4da8b20132c3bb444dfd",
|
||||
"checksum": "90a79c31a7f581a0a7e66c51b6d5ce8ef0d96324860234e5b3be3f2b294bae67",
|
||||
"failed": [
|
||||
"2"
|
||||
],
|
||||
"active": "1",
|
||||
"mode": "restart"
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
{
|
||||
"format_version": 1,
|
||||
"status": "READY",
|
||||
"current": "1",
|
||||
"keep": 2,
|
||||
"inventory": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"protected": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"failed": [
|
||||
"2"
|
||||
],
|
||||
"unresolved": [],
|
||||
"retained": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"archive_candidates": [],
|
||||
"reasons": {
|
||||
"1": [
|
||||
"active",
|
||||
"explicitly_protected",
|
||||
"recent_release"
|
||||
],
|
||||
"2": [
|
||||
"explicitly_protected",
|
||||
"failed_release",
|
||||
"recent_release"
|
||||
]
|
||||
},
|
||||
"automatic_archival": false,
|
||||
"automatic_deletion": false,
|
||||
"execution_permitted": false,
|
||||
"inventory_source": "site_runtime",
|
||||
"journal_checksum": "e0a1f5d9c34c118258b69211f10275cfbcc53ba798cb7d3577c85c6c2cf5d7cb",
|
||||
"fingerprint": "fdf569374aeed87facc67fd4aff669a1d67c1957ef3c2a2bdb1e0c1391cf5b3e"
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
{
|
||||
"candidate": "2",
|
||||
"checksum": "e0a1f5d9c34c118258b69211f10275cfbcc53ba798cb7d3577c85c6c2cf5d7cb",
|
||||
"format_version": 1,
|
||||
"history": [
|
||||
{
|
||||
"phase": "PREPARED",
|
||||
"timestamp": "2026-11-30T12:39:45.831247+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "BACKED_UP",
|
||||
"timestamp": "2026-11-30T12:39:46.451520+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "QUIESCED",
|
||||
"timestamp": "2026-11-30T12:39:48.876391+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "ACTIVATING",
|
||||
"timestamp": "2026-11-30T12:39:50.321510+00:00"
|
||||
}
|
||||
],
|
||||
"phase": "ACTIVATING",
|
||||
"previous": "1",
|
||||
"previous_provenance": "ff32e81a1159c62702b775e74b2de098c7b7199326693fa0b5e18d7a75b79d03",
|
||||
"previous_revision": "7ece1231d4b14bfe39baedccb8b65939ad7685e7",
|
||||
"provenance": "9619c65628945dba4affac52fdd32eb83d95bb5f900a6825bf2a95fd58030324",
|
||||
"revision": "977d27131e8115059ae0cbd222332a8a4fb4d9bb",
|
||||
"site": "stage-68e211e7fff6",
|
||||
"transaction_id": "c87c225a4e3a4da8b20132c3bb444dfd"
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"transaction_id": "8f1ad78d6a1c45aaabff189234302966",
|
||||
"checksum": "6eaf226189e83a4dd2ba0bbfbfd4174d6fef981764d31be943718e9faab48a6e",
|
||||
"failed": [],
|
||||
"active": "2",
|
||||
"mode": "success"
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
{
|
||||
"format_version": 1,
|
||||
"status": "READY",
|
||||
"current": "2",
|
||||
"keep": 2,
|
||||
"inventory": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"protected": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"failed": [],
|
||||
"unresolved": [],
|
||||
"retained": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"archive_candidates": [],
|
||||
"reasons": {
|
||||
"1": [
|
||||
"explicitly_protected",
|
||||
"previous_available",
|
||||
"recent_release"
|
||||
],
|
||||
"2": [
|
||||
"active",
|
||||
"explicitly_protected",
|
||||
"recent_release"
|
||||
]
|
||||
},
|
||||
"automatic_archival": false,
|
||||
"automatic_deletion": false,
|
||||
"execution_permitted": false,
|
||||
"inventory_source": "site_runtime",
|
||||
"journal_checksum": "58b78eb99505a7e670104ec4f7235f581703e8797b60d737149c4ca0e137e017",
|
||||
"fingerprint": "ed5865b5aca5c230f6bef021f9a48105c7a003568a533bcf7ee8365b647c56ca"
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
{
|
||||
"candidate": "2",
|
||||
"checksum": "58b78eb99505a7e670104ec4f7235f581703e8797b60d737149c4ca0e137e017",
|
||||
"format_version": 1,
|
||||
"history": [
|
||||
{
|
||||
"phase": "PREPARED",
|
||||
"timestamp": "2026-11-30T12:38:01.142182+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "BACKED_UP",
|
||||
"timestamp": "2026-11-30T12:38:01.878060+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "QUIESCED",
|
||||
"timestamp": "2026-11-30T12:38:05.054358+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "ACTIVATING",
|
||||
"timestamp": "2026-11-30T12:38:06.678148+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "ACTIVATED",
|
||||
"timestamp": "2026-11-30T12:38:10.499341+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "VERIFIED",
|
||||
"timestamp": "2026-11-30T12:38:17.502451+00:00"
|
||||
}
|
||||
],
|
||||
"phase": "VERIFIED",
|
||||
"previous": "1",
|
||||
"previous_provenance": "66e6d866b1011ba01f3e8195ac814b82b15d96b30f9bada4a614ecb88f6005c0",
|
||||
"previous_revision": "bbaa22381d0b979cc05dd0d0bc743cc251e7e362",
|
||||
"provenance": "faf0d0d9f9d5663ed10448610decaef7b5aa255f1fadfb11c4d3c486fdef2df8",
|
||||
"revision": "c1ab1e72319700fc01eb9f6ffbcfdcf14164bd82",
|
||||
"site": "stage-ecd59a4ddabb",
|
||||
"transaction_id": "8f1ad78d6a1c45aaabff189234302966"
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
e2f1aabc06015e94a79edad3a45d3ed80f7d240842fcc1cbf993b733ffa92571 ./checks.jsonl
|
||||
f11927da5a322e03b5920dd2f216de618fc7f343f85deecfe7af20e2f2f5cd97 ./failed-health/retention.json
|
||||
cd1f23e18483ae48ecf6c7220b795610f36bd3157f3a996425ff8922414ef715 ./failed-health/site-manifest.json
|
||||
7a98f75dc9e423e727b1728ff9005af75834bbe23761647f7d4671948cf77ef1 ./failed-health/transaction.json
|
||||
746fb11695902827c303f7402658a841db422bb4dde0bb21b420e60eb64de5f0 ./restart/retention.json
|
||||
0c30ef181e6cd93cefb58039ddbdc8dfbe1c16fa3e6ac3aede08be7b4d4b0667 ./restart/site-manifest.json
|
||||
b3b1ad1c3f5cccde82d66acb658f8f6293b666227de5b4b9d315ed09e347403f ./restart/transaction.json
|
||||
d8381ade95537959399202b015d7c5d2e6416d37ada51ffd5f792256df648290 ./run.txt
|
||||
4664e6f96065d69288f14848238ccf564a9fa6bf7255bb8ebf77580d6e70c989 ./success/retention.json
|
||||
932105589f2dceeed97aa0389a5ef4d437de60070e1c798ec014032895522a80 ./success/site-manifest.json
|
||||
b41cb14323cf45013b80e3e7ba864ad41ed239d303a235d3df78081bf0bfdba8 ./success/transaction.json
|
||||
54744cb984d92d19cb9198134c4e012871dfa3cd7d9f8e98bda751f1e5c390e9 ./summary.json
|
||||
4c653ef20e7f64c06034b3b1bb91612523aa297f12e5ce9c4a8a86dc77369831 gate-review.md
|
||||
06e3007a0c1bbd6360f5d7efbc5593f14cda096d59515167ced5fc3329ab843d run.sh
|
||||
470add829ef4f4f57e3f91f288faa1a9f231b1dcdcc62622fe9011045e8aa2ef staging.py
|
||||
992c07a95aec10c7da3d91f90994218d6ba8f8d3301b4132708c5b9000193555 images.json
|
||||
+11
-14
@@ -1,6 +1,6 @@
|
||||
{"check": "production gates before", "detail": {"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}, "result": "PASS", "scenario": "framework"}
|
||||
{"check": "canonical production-like staging manifest validated", "detail": {"configuration_fingerprint": "d861ef4ce1ec1ab27b9e9ea0a8c15547b1615bea27157e2d178b3cfdbd4e9963", "execution_permitted": false, "fingerprint": "bea49adb78a39b6b6790c4b1de51b3dc37262d8c26b0d7f120dac493f8820698", "format_version": 1, "runtime_verified": false, "site": "stage-ecd59a4ddabb", "static_policy_verified": true, "status": "VALID"}, "result": "PASS", "scenario": "success"}
|
||||
{"check": "pinned PostgreSQL cluster and all three account identities verified", "detail": "7713942757290324010", "result": "PASS", "scenario": "success"}
|
||||
{"check": "canonical production-like staging manifest validated", "detail": {"configuration_fingerprint": "f638e997f5af96cc40bac7b0b7f6f1e58dcd5fa2b03787d34f42078879442c9f", "execution_permitted": false, "fingerprint": "c6fd8748f776004858ede38e5e524adc7c2e0d661ffff39281c4bc08995b535f", "format_version": 1, "runtime_verified": false, "site": "stage-4fa04e87e78a", "static_policy_verified": true, "status": "VALID"}, "result": "PASS", "scenario": "success"}
|
||||
{"check": "pinned PostgreSQL cluster and all three account identities verified", "detail": "7713933418957946928", "result": "PASS", "scenario": "success"}
|
||||
{"check": "live Compose service and network attachment matrix verified", "detail": {"edgecheck": ["edge"], "php": ["private"], "postgres": ["private"], "queue": ["private"], "scheduler": ["private"], "web": ["edge", "private"]}, "result": "PASS", "scenario": "success"}
|
||||
{"check": "live PostgreSQL grants verified for application DML, migration DDL and read-only backup", "detail": null, "result": "PASS", "scenario": "success"}
|
||||
{"check": "Docker isolates FPM and the protected health port from the edge", "detail": null, "result": "PASS", "scenario": "success"}
|
||||
@@ -12,12 +12,11 @@
|
||||
{"check": "protected health verified current candidate", "detail": {"release": "2"}, "result": "PASS", "scenario": "success"}
|
||||
{"check": "runtime starts workers only after protected health and durable completion", "detail": null, "result": "PASS", "scenario": "success"}
|
||||
{"check": "public HTTP and workers resumed only after verified candidate health", "detail": {"journal": "VERIFIED", "queue": "2", "release": "2", "scheduler": "2"}, "result": "PASS", "scenario": "success"}
|
||||
{"check": "transaction-bound PostgreSQL dump verified", "detail": {"backup_id": "backup-20261130T123801-ec747255ced24b6ba60e2d622d6c44a6", "bytes": 7406, "container": "5776571c230ce077f94d83a59f82f4db395e7972ed2d39cf3b4d5380e069c03f", "created_at": "2026-11-30T12:38:01.852916+00:00", "database": "fixture", "driver": "pgsql", "filename": "database.dump", "format_version": 1, "identity": "fixture|backup_user|7713942757290324010", "sha256": "991a76f3d603f4e17555b507ed4dd0ac72146580d814973e43bf0014d4e4d7ef", "username": "backup_user"}, "result": "PASS", "scenario": "success"}
|
||||
{"check": "transaction-bound PostgreSQL dump verified", "detail": {"backup_id": "backup-20261130T120137-e42beab35fb24d28b75b916312c1f5d8", "bytes": 7406, "container": "d26ac43e8decec2ecd4c86c01f3b1a763f66076a689b5f43e24864273e6eb663", "created_at": "2026-11-30T12:01:37.543366+00:00", "database": "fixture", "driver": "pgsql", "filename": "database.dump", "format_version": 1, "identity": "fixture|backup_user|7713933418957946928", "sha256": "198e7c6269e84a49b90fe3778fb3f3b0f060186a6872b96570b857b6b36412de", "username": "backup_user"}, "result": "PASS", "scenario": "success"}
|
||||
{"check": "runtime retention checked against the live release tree and journal", "detail": null, "result": "PASS", "scenario": "success"}
|
||||
{"check": "actual retired archive protected live releases and corrupt evidence denied planning", "detail": null, "result": "PASS", "scenario": "success"}
|
||||
{"check": "disposable project containers, volumes and networks removed", "detail": null, "result": "PASS", "scenario": "success"}
|
||||
{"check": "canonical production-like staging manifest validated", "detail": {"configuration_fingerprint": "79ccb3265424ad6bc508f732598ea0b206dccff906e567c745566cc497f5aa1c", "execution_permitted": false, "fingerprint": "34e2d365f0aa16d84606daf35702de42332e29bffba7143fca4bc1961b04dc1f", "format_version": 1, "runtime_verified": false, "site": "stage-cd16afaf761d", "static_policy_verified": true, "status": "VALID"}, "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "pinned PostgreSQL cluster and all three account identities verified", "detail": "7713943001596805163", "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "canonical production-like staging manifest validated", "detail": {"configuration_fingerprint": "e48534af9dfe53a0181ac85ff76b3b86a6c264fed20a650e7b73e70698f4ff28", "execution_permitted": false, "fingerprint": "debf19f2a7b5f8afafb90e25ca510ea8cda17e6e33bca92001e499873762878d", "format_version": 1, "runtime_verified": false, "site": "stage-e9846de588f2", "static_policy_verified": true, "status": "VALID"}, "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "pinned PostgreSQL cluster and all three account identities verified", "detail": "7713933573491421233", "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "live Compose service and network attachment matrix verified", "detail": {"edgecheck": ["edge"], "php": ["private"], "postgres": ["private"], "queue": ["private"], "scheduler": ["private"], "web": ["edge", "private"]}, "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "live PostgreSQL grants verified for application DML, migration DDL and read-only backup", "detail": null, "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "Docker isolates FPM and the protected health port from the edge", "detail": null, "result": "PASS", "scenario": "failed-health"}
|
||||
@@ -28,12 +27,11 @@
|
||||
{"check": "public HTTP stayed sealed during candidate health check", "detail": {"response": "maintenance", "status": 503}, "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "candidate returned real HTTP 503 on protected Nginx health listener", "detail": null, "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "failed health kept public HTTP sealed and both workers stopped", "detail": {"active_link": "2", "journal": "FAILED", "queued_jobs": 1}, "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "transaction-bound PostgreSQL dump verified", "detail": {"backup_id": "backup-20261130T123857-0b52e95a6f1f475ab3e31207eda4b170", "bytes": 7406, "container": "2ec86c207e2b1197bf2bfb4efe1a3539899ff7b9de2f1b6d16824f4e0239910b", "created_at": "2026-11-30T12:38:58.248738+00:00", "database": "fixture", "driver": "pgsql", "filename": "database.dump", "format_version": 1, "identity": "fixture|backup_user|7713943001596805163", "sha256": "bda79076edfa125a8dc642bc074ed141bb899fb2f12b39b88da7e28d34ca3f9e", "username": "backup_user"}, "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "transaction-bound PostgreSQL dump verified", "detail": {"backup_id": "backup-20261130T120213-fb0f4e51745940988bc2bdb301be2afc", "bytes": 7406, "container": "13720c2426f935038a8f4be4fe7b1366c3f8be5c9a41cd2b56c80335e07a231b", "created_at": "2026-11-30T12:02:14.052116+00:00", "database": "fixture", "driver": "pgsql", "filename": "database.dump", "format_version": 1, "identity": "fixture|backup_user|7713933573491421233", "sha256": "3f908cafa841971a203356ab1ff7d769ef0c9e6ab0ddb847cb21294d1457e641", "username": "backup_user"}, "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "runtime retention checked against the live release tree and journal", "detail": null, "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "failed unresolved deployment retained both live release directories", "detail": null, "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "disposable project containers, volumes and networks removed", "detail": null, "result": "PASS", "scenario": "failed-health"}
|
||||
{"check": "canonical production-like staging manifest validated", "detail": {"configuration_fingerprint": "7d2ec90763dac3b18daa98d2f993cd72c1269102dacaaf07b997217a8a2b3d8e", "execution_permitted": false, "fingerprint": "eb74a9331806fc1f0c7f56f561fa891ae2441bd5e833261f498f181a22a7c206", "format_version": 1, "runtime_verified": false, "site": "stage-68e211e7fff6", "static_policy_verified": true, "status": "VALID"}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "pinned PostgreSQL cluster and all three account identities verified", "detail": "7713943237903126577", "result": "PASS", "scenario": "restart"}
|
||||
{"check": "canonical production-like staging manifest validated", "detail": {"configuration_fingerprint": "3c637e1f894e4683b0d2ee25ba61bc7b019ce96e411578787e8307db1cd88367", "execution_permitted": false, "fingerprint": "ef27581f00f437f767cbcec87faff62f6eb59b9cd13958622efa51187e459c6d", "format_version": 1, "runtime_verified": false, "site": "stage-76a538b0d518", "static_policy_verified": true, "status": "VALID"}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "pinned PostgreSQL cluster and all three account identities verified", "detail": "7713933733740830770", "result": "PASS", "scenario": "restart"}
|
||||
{"check": "live Compose service and network attachment matrix verified", "detail": {"edgecheck": ["edge"], "php": ["private"], "postgres": ["private"], "queue": ["private"], "scheduler": ["private"], "web": ["edge", "private"]}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "live PostgreSQL grants verified for application DML, migration DDL and read-only backup", "detail": null, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "Docker isolates FPM and the protected health port from the edge", "detail": null, "result": "PASS", "scenario": "restart"}
|
||||
@@ -43,13 +41,12 @@
|
||||
{"check": "worker work remained untouched across activation", "detail": null, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "public HTTP remained sealed before health probe rejoined Nginx", "detail": {"response": "maintenance", "status": 503}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "public HTTP remained sealed after staging service restarts", "detail": {"response": "maintenance", "status": 503}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "restart recovered an ACTIVATING journal with verified PostgreSQL backup", "detail": {"automatic_rollback_allowed": false, "backup_evidence_checksum": "590170de89fca5570084b1f40d84e279e7479d57f1ff9db82b8d71fe72a0399d", "backup_id": "backup-20261130T123946-15b83f68394348c4a62a592badb65e8c", "backup_sha256": "7f5d326c97e946fdbc720e28b58f2ea0d2332217435ad73f00bec59590e4cc2e", "candidate": "2", "candidate_provenance": "9619c65628945dba4affac52fdd32eb83d95bb5f900a6825bf2a95fd58030324", "compatibility_fingerprint": "929dd2333edf22443b8e1dcf737cc6668b3396bbe60b436d1fa87c17a549454b", "confirmation": "ROLLBACK-c87c225a4e3a4da8b20132c3bb444dfd", "current": "2", "database_restore_allowed": false, "execution_permitted": false, "format_version": 1, "phase": "ACTIVATING", "plan_fingerprint": "241d4b4363ca26569adee84a1556cccb711799420047e4e9148095690096c693", "previous": "1", "previous_provenance": "ff32e81a1159c62702b775e74b2de098c7b7199326693fa0b5e18d7a75b79d03", "site": "stage-68e211e7fff6", "status": "ROLLBACK_REVIEW_READY", "target": "1", "transaction_checksum": "e0a1f5d9c34c118258b69211f10275cfbcc53ba798cb7d3577c85c6c2cf5d7cb", "transaction_id": "c87c225a4e3a4da8b20132c3bb444dfd"}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "restart recovered an ACTIVATING journal with verified PostgreSQL backup", "detail": {"automatic_rollback_allowed": false, "backup_evidence_checksum": "637a7002ec1a33dbdae83b16212496444cd29faf1789f0dd11955abf3919e022", "backup_id": "backup-20261130T120251-bfb5ea1fcb3043cab23234038811de90", "backup_sha256": "94e6b3aaee4bdf3f101aab41eda2ef38b981a15d0f53a713925a4b46fd6511da", "candidate": "2", "candidate_provenance": "f9ed0d0c2302e2d893778f291b312de6d9852fb2db6832f9b05a49ff2ba9c020", "compatibility_fingerprint": "f8406e504b81170690924f1218d0d97a9a5b91d07e3ae14d3dae1bac4332c506", "confirmation": "ROLLBACK-26cf6bdf1de8451392524965ac33cf69", "current": "2", "database_restore_allowed": false, "execution_permitted": false, "format_version": 1, "phase": "ACTIVATING", "plan_fingerprint": "8198c3f70b5c608509283e02ed71a051b97f1014d96df54060cb4671a7151211", "previous": "1", "previous_provenance": "361a7e1d7fa5043cc9c7048b60e440db21f3534b22c45807362ead0c7497f365", "site": "stage-76a538b0d518", "status": "ROLLBACK_REVIEW_READY", "target": "1", "transaction_checksum": "b8f6275b880879e180b2e93d82b0d2639b1d3b36b1d511e152be8eec363c586c", "transaction_id": "26cf6bdf1de8451392524965ac33cf69"}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "public HTTP stayed sealed during candidate health check", "detail": {"response": "maintenance", "status": 503}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "protected health verified current candidate", "detail": {"release": "1"}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "runtime starts workers only after protected health and durable completion", "detail": null, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "confirmed rollback reopened previous HTTP and worker release", "detail": {"active_release": "1", "checksum": "8efeae6798bd664c5e021b5b6284590006c232aaa67027503f3316c1c628ce15", "completed_at": "2026-11-30T12:40:15.832490+00:00", "database_restored": false, "format_version": 1, "health_verified": true, "intent_checksum": "3f16a7523e256be73b718e2416a19dd022332d7817e45ccbe57d609467419057", "plan_fingerprint": "241d4b4363ca26569adee84a1556cccb711799420047e4e9148095690096c693", "previous_active_release": "2", "site": "stage-68e211e7fff6", "status": "ROLLED_BACK", "transaction_id": "c87c225a4e3a4da8b20132c3bb444dfd"}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "transaction-bound PostgreSQL dump verified", "detail": {"backup_id": "backup-20261130T123946-15b83f68394348c4a62a592badb65e8c", "bytes": 7406, "container": "1798cfdb8deed6a69ad7be2fcd1cf2c4aae1a23547f27dc43154273d37ba04b4", "created_at": "2026-11-30T12:39:46.439314+00:00", "database": "fixture", "driver": "pgsql", "filename": "database.dump", "format_version": 1, "identity": "fixture|backup_user|7713943237903126577", "sha256": "7f5d326c97e946fdbc720e28b58f2ea0d2332217435ad73f00bec59590e4cc2e", "username": "backup_user"}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "confirmed rollback reopened previous HTTP and worker release", "detail": {"active_release": "1", "checksum": "2241d380f371dd91513f12ebbf8b9b9246d0914103eb6f12e74902d38347ffdd", "completed_at": "2026-11-30T12:03:20.018025+00:00", "database_restored": false, "format_version": 1, "health_verified": true, "intent_checksum": "08b8544a141b8beaf6ce986943e218dc5abf0e3601b2b64ac9cb7b94fb53e9cb", "plan_fingerprint": "8198c3f70b5c608509283e02ed71a051b97f1014d96df54060cb4671a7151211", "previous_active_release": "2", "site": "stage-76a538b0d518", "status": "ROLLED_BACK", "transaction_id": "26cf6bdf1de8451392524965ac33cf69"}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "transaction-bound PostgreSQL dump verified", "detail": {"backup_id": "backup-20261130T120251-bfb5ea1fcb3043cab23234038811de90", "bytes": 7406, "container": "036c0a881790b693027eaa59851577154c310bc12bcdada361af6e99d675c5db", "created_at": "2026-11-30T12:02:51.561383+00:00", "database": "fixture", "driver": "pgsql", "filename": "database.dump", "format_version": 1, "identity": "fixture|backup_user|7713933733740830770", "sha256": "94e6b3aaee4bdf3f101aab41eda2ef38b981a15d0f53a713925a4b46fd6511da", "username": "backup_user"}, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "runtime retention checked against the live release tree and journal", "detail": null, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "actual retired archive protected live releases and corrupt evidence denied planning", "detail": null, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "disposable project containers, volumes and networks removed", "detail": null, "result": "PASS", "scenario": "restart"}
|
||||
{"check": "production gates after", "detail": {"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}, "result": "PASS", "scenario": "framework"}
|
||||
+2
-2
@@ -41,6 +41,6 @@
|
||||
"automatic_deletion": false,
|
||||
"execution_permitted": false,
|
||||
"inventory_source": "site_runtime",
|
||||
"journal_checksum": "4753ba0d4335c994c26ded88fa20f72705eb507fe8a4fb39363df546120cae34",
|
||||
"fingerprint": "9aff503a6d70835e9725fa5e0c8f62038a6853742aed0aa37c3e031927de331d"
|
||||
"journal_checksum": "70e6bed61d2a5b34b4ef1b19ffe72ab124e6637ed09ea94e201a2bd8a2b62017",
|
||||
"fingerprint": "a61e392e535bd50ea250823e7cf0d5e085ff31cf1b6f881ef43f35a9117e48c7"
|
||||
}
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"schema_version": 1,
|
||||
"site": {
|
||||
"identifier": "stage-68e211e7fff6",
|
||||
"domain": "stage-68e211e7fff6.example.invalid",
|
||||
"root": "/var/tmp/absdev-live-retention.X4Hm1f/stage-68e211e7fff6",
|
||||
"identifier": "stage-e9846de588f2",
|
||||
"domain": "stage-e9846de588f2.example.invalid",
|
||||
"root": "/var/tmp/absdev-staging-topology.3OUQjS/stage-e9846de588f2",
|
||||
"origin_port": 8199
|
||||
},
|
||||
"repository": {
|
||||
@@ -19,7 +19,7 @@
|
||||
"username": "app_user"
|
||||
},
|
||||
"docker": {
|
||||
"project": "site-stage-68e211e7fff6",
|
||||
"project": "site-stage-e9846de588f2",
|
||||
"application_path": "/var/www/html",
|
||||
"php_service": "php",
|
||||
"web_service": "web",
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"candidate": "2",
|
||||
"checksum": "70e6bed61d2a5b34b4ef1b19ffe72ab124e6637ed09ea94e201a2bd8a2b62017",
|
||||
"format_version": 1,
|
||||
"history": [
|
||||
{
|
||||
"phase": "PREPARED",
|
||||
"timestamp": "2026-11-30T12:02:13.496347+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "BACKED_UP",
|
||||
"timestamp": "2026-11-30T12:02:14.064694+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "QUIESCED",
|
||||
"timestamp": "2026-11-30T12:02:16.488013+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "ACTIVATING",
|
||||
"timestamp": "2026-11-30T12:02:17.914180+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "ACTIVATED",
|
||||
"timestamp": "2026-11-30T12:02:19.984088+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "FAILED",
|
||||
"timestamp": "2026-11-30T12:02:26.318761+00:00"
|
||||
}
|
||||
],
|
||||
"phase": "FAILED",
|
||||
"previous": "1",
|
||||
"previous_provenance": "ee16f9df2a314bb032ea6278f23c45ed34c5b7501abee67a1f3f9d00578706dd",
|
||||
"previous_revision": "34604ad208b9ee2074926114c196b9e5ad65599c",
|
||||
"provenance": "85c0a3d5b5f2716cdcc732816bbdd60afcfbfb11b6d0ba7ad9e1395163d5dee8",
|
||||
"revision": "21ca261d6ea645e18374a9bce40ec22cf08afbd4",
|
||||
"site": "stage-e9846de588f2",
|
||||
"transaction_id": "bb4fae3110ef4373b7abb94e59e96900"
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
# ABSDEV production gates after rehearsal key revocation
|
||||
|
||||
Reviewed the published rehearsal key revocation fix at 054c546 and Gitea CI
|
||||
run #116. A running approval process rejected retired, missing and unsafe
|
||||
rehearsal keys, then accepted a new attestation under the replacement key.
|
||||
The earlier staging runs also verified live operator grant/key revocation,
|
||||
private Gitea read-only access and revocation, and MySQL/PostgreSQL password
|
||||
cutover with explicit old-session termination. These are staging results.
|
||||
|
||||
## Remaining target-era qualifications
|
||||
|
||||
1. Approve and provision the production secret namespace and service identities,
|
||||
including a per-site rotation and session termination procedure where needed.
|
||||
2. Provision production operator identities, grants and operator signing keys.
|
||||
3. Qualify the actual production runtime topology, resource bindings and database
|
||||
grants. The latest ABSDEV-CI run covers the staging topology.
|
||||
4. Provision the production rehearsal runner and attestation key authority.
|
||||
5. Establish the actual approved repositories, revision policy and read identities.
|
||||
6. Qualify reconciliation with the intended service and database topology. Live
|
||||
partial migration, confirmed activation and archival previously passed with
|
||||
synthetic service callbacks. Real staging deployment restart/rollback is a
|
||||
separate exercise.
|
||||
7. Verify retention inventory and archive bindings for the intended sites and
|
||||
filesystem ownership. No archival or deletion authority is enabled.
|
||||
|
||||
Framework CI runner and toolchain pinning, exact source checkout, and runner
|
||||
security and network acceptance have been verified in Gitea. None of these
|
||||
staging results enables production execution or changes the dev.4 tag.
|
||||
+2
-2
@@ -40,6 +40,6 @@
|
||||
"automatic_deletion": false,
|
||||
"execution_permitted": false,
|
||||
"inventory_source": "site_runtime",
|
||||
"journal_checksum": "e0a1f5d9c34c118258b69211f10275cfbcc53ba798cb7d3577c85c6c2cf5d7cb",
|
||||
"fingerprint": "d4c0c0ac9ba90c10c14b797ffdc918fc961a758e79d9f2b33ce0fb4ebe3007c3"
|
||||
"journal_checksum": "b8f6275b880879e180b2e93d82b0d2639b1d3b36b1d511e152be8eec363c586c",
|
||||
"fingerprint": "087e5cced68098ef10f5ec35cb1324afe5397af0bebb37fcd97bab73e0924f4e"
|
||||
}
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"schema_version": 1,
|
||||
"site": {
|
||||
"identifier": "stage-cd16afaf761d",
|
||||
"domain": "stage-cd16afaf761d.example.invalid",
|
||||
"root": "/var/tmp/absdev-live-retention.X4Hm1f/stage-cd16afaf761d",
|
||||
"identifier": "stage-76a538b0d518",
|
||||
"domain": "stage-76a538b0d518.example.invalid",
|
||||
"root": "/var/tmp/absdev-staging-topology.3OUQjS/stage-76a538b0d518",
|
||||
"origin_port": 8199
|
||||
},
|
||||
"repository": {
|
||||
@@ -19,7 +19,7 @@
|
||||
"username": "app_user"
|
||||
},
|
||||
"docker": {
|
||||
"project": "site-stage-cd16afaf761d",
|
||||
"project": "site-stage-76a538b0d518",
|
||||
"application_path": "/var/www/html",
|
||||
"php_service": "php",
|
||||
"web_service": "web",
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"candidate": "2",
|
||||
"checksum": "b8f6275b880879e180b2e93d82b0d2639b1d3b36b1d511e152be8eec363c586c",
|
||||
"format_version": 1,
|
||||
"history": [
|
||||
{
|
||||
"phase": "PREPARED",
|
||||
"timestamp": "2026-11-30T12:02:51.003518+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "BACKED_UP",
|
||||
"timestamp": "2026-11-30T12:02:51.573361+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "QUIESCED",
|
||||
"timestamp": "2026-11-30T12:02:53.971422+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "ACTIVATING",
|
||||
"timestamp": "2026-11-30T12:02:55.391048+00:00"
|
||||
}
|
||||
],
|
||||
"phase": "ACTIVATING",
|
||||
"previous": "1",
|
||||
"previous_provenance": "361a7e1d7fa5043cc9c7048b60e440db21f3534b22c45807362ead0c7497f365",
|
||||
"previous_revision": "87eee538b1271d74fdad6eda4e420f8132859466",
|
||||
"provenance": "f9ed0d0c2302e2d893778f291b312de6d9852fb2db6832f9b05a49ff2ba9c020",
|
||||
"revision": "4ac9402a794838013161b9afad6b850c63bd2f6a",
|
||||
"site": "stage-76a538b0d518",
|
||||
"transaction_id": "26cf6bdf1de8451392524965ac33cf69"
|
||||
}
|
||||
+3
-8
@@ -1,7 +1,7 @@
|
||||
set -euo pipefail
|
||||
umask 077
|
||||
test "$(hostname -s | tr A-Z a-z)" = absdev-ci
|
||||
stage=$(mktemp -d /var/tmp/absdev-live-retention.XXXXXX)
|
||||
stage=$(mktemp -d /var/tmp/absdev-staging-topology.XXXXXX)
|
||||
cleanup() {
|
||||
sudo -n find "$stage" -mindepth 2 -maxdepth 2 -type d -name backend -exec rm -rf -- {} +
|
||||
rm -rf -- "$stage"
|
||||
@@ -10,7 +10,7 @@ trap cleanup EXIT
|
||||
cd "$stage"
|
||||
tar -xm -f -
|
||||
git clone -q framework.bundle framework
|
||||
git -C framework checkout -q --detach 611f8d0f3de949fdd38031132124649facad968c
|
||||
git -C framework checkout -q --detach 054c546c8fc24684779dbcc890c72c0bf3d344df
|
||||
ln -s /var/tmp/absdev-supported-containment.L6qYEi/docker-config docker-config
|
||||
mkdir tmp evidence
|
||||
export TMPDIR="$stage/tmp"
|
||||
@@ -18,15 +18,10 @@ if ! python3 -B staging.py > evidence/run.txt 2>&1; then
|
||||
tail -65 evidence/run.txt >&2
|
||||
exit 1
|
||||
fi
|
||||
TMPDIR="$stage/tmp" bash framework/scripts/ci-check.sh > evidence/framework-ci.txt 2>&1 || { tail -80 evidence/framework-ci.txt >&2; exit 1; }
|
||||
cp checks.jsonl summary.json evidence/
|
||||
for scenario in success failed-health restart; do
|
||||
mkdir "evidence/$scenario"
|
||||
dir=$(cat "$scenario.path")
|
||||
cp "$dir/"{site-manifest.json,retention.json,transaction.json} "evidence/$scenario/"
|
||||
if test "$scenario" != failed-health; then
|
||||
cp "$dir/"{retired-retention.json,archive-identity.json} "evidence/$scenario/"
|
||||
fi
|
||||
cp "$(cat "$scenario.path")/"{site-manifest.json,retention.json,transaction.json} "evidence/$scenario/"
|
||||
done
|
||||
(
|
||||
cd evidence
|
||||
+2
-5
@@ -14,7 +14,6 @@ PASS success: runtime starts workers only after protected health and durable com
|
||||
PASS success: public HTTP and workers resumed only after verified candidate health
|
||||
PASS success: transaction-bound PostgreSQL dump verified
|
||||
PASS success: runtime retention checked against the live release tree and journal
|
||||
PASS success: actual retired archive protected live releases and corrupt evidence denied planning
|
||||
PASS success: disposable project containers, volumes and networks removed
|
||||
PASS failed-health: canonical production-like staging manifest validated
|
||||
PASS failed-health: pinned PostgreSQL cluster and all three account identities verified
|
||||
@@ -30,7 +29,6 @@ PASS failed-health: candidate returned real HTTP 503 on protected Nginx health l
|
||||
PASS failed-health: failed health kept public HTTP sealed and both workers stopped
|
||||
PASS failed-health: transaction-bound PostgreSQL dump verified
|
||||
PASS failed-health: runtime retention checked against the live release tree and journal
|
||||
PASS failed-health: failed unresolved deployment retained both live release directories
|
||||
PASS failed-health: disposable project containers, volumes and networks removed
|
||||
PASS restart: canonical production-like staging manifest validated
|
||||
PASS restart: pinned PostgreSQL cluster and all three account identities verified
|
||||
@@ -50,16 +48,15 @@ PASS restart: runtime starts workers only after protected health and durable com
|
||||
PASS restart: confirmed rollback reopened previous HTTP and worker release
|
||||
PASS restart: transaction-bound PostgreSQL dump verified
|
||||
PASS restart: runtime retention checked against the live release tree and journal
|
||||
PASS restart: actual retired archive protected live releases and corrupt evidence denied planning
|
||||
PASS restart: disposable project containers, volumes and networks removed
|
||||
PASS framework: production gates after
|
||||
{
|
||||
"source_commit": "611f8d0f3de949fdd38031132124649facad968c",
|
||||
"source_commit": "054c546c8fc24684779dbcc890c72c0bf3d344df",
|
||||
"host": "ABSDEV-CI",
|
||||
"production_execution_enabled": false,
|
||||
"production_ready": false,
|
||||
"result": "PASS",
|
||||
"checks_passed": 55,
|
||||
"checks_passed": 52,
|
||||
"images": {
|
||||
"nginx": "nginx@sha256:552e7481ca93ffccd046aa658dbbed22caefbc09c66fa7cd247cbb90b8a5c609",
|
||||
"php": "sha256:cac70f6c4aa761a1c04c6813c03a7678b9a5c061cc67a413a12736253e7128ee",
|
||||
+3
-66
@@ -16,7 +16,7 @@ from unittest.mock import patch
|
||||
ROOT = Path.cwd()
|
||||
SOURCE = ROOT / "framework"
|
||||
DEPENDENCIES = Path("/var/tmp/absdev-dev3-ci.8yBxcV/public-fixture")
|
||||
REVISION = "611f8d0f3de949fdd38031132124649facad968c"
|
||||
REVISION = "054c546c8fc24684779dbcc890c72c0bf3d344df"
|
||||
SECURITY_FIELDS = ("production_ready", "deployment_execution_enabled",
|
||||
"migration_execution_enabled", "provisioning_execution_enabled",
|
||||
"database_restore_enabled", "permanent_deletion_enabled")
|
||||
@@ -36,9 +36,7 @@ from core.services import ContainedServiceLifecycle
|
||||
from core.site_secrets import SiteSecrets
|
||||
from core.secret_backend import FileSecretBackend
|
||||
from core.site_policy import validate_site
|
||||
from core.retention import RetentionError, plan_site_retention
|
||||
from core.archive import TransactionArchive
|
||||
from core.rollback_archive import RollbackArchive
|
||||
from core.retention import plan_site_retention
|
||||
|
||||
spec = importlib.util.spec_from_file_location("dev3_laravel", SOURCE / "scripts/dev3-laravel.py")
|
||||
fixture = importlib.util.module_from_spec(spec)
|
||||
@@ -423,10 +421,7 @@ GRANT EXECUTE ON FUNCTION pg_catalog.pg_control_system() TO app_user, migration_
|
||||
"-e","DB_USERNAME=migration_user","-e","DB_PASSWORD_FILE=/fixture/secrets/migration",
|
||||
"-v",f"{secrets_dir}/migration:/fixture/secrets/migration:ro", "php",
|
||||
"/fixture/app/current/artisan", "migrate", "--force")
|
||||
compose("up", "-d", "--pull", "never", "postgres", "php", "web", "queue", "scheduler", "edgecheck")
|
||||
eventually(lambda: compose("exec","-T","web","nginx","-t",check=False).returncode,
|
||||
lambda code: code==0, "Nginx not ready before namespace probe")
|
||||
compose("up", "-d", "--no-deps", "--pull", "never", "healthcheck")
|
||||
compose("up", "-d", "--pull", "never")
|
||||
for network in ("edge", "private"):
|
||||
details = json.loads(command((*DOCKER,"network","inspect",tag+"_"+network)).stdout)[0]
|
||||
require(details["Internal"] is True, "Fixture network has external connectivity")
|
||||
@@ -596,64 +591,6 @@ GRANT EXECUTE ON FUNCTION pg_catalog.pg_control_system() TO app_user, migration_
|
||||
"Retention unexpectedly proposed archive/execution")
|
||||
(root/"retention.json").write_text(json.dumps(retention,indent=2)+"\n")
|
||||
log(scenario,"runtime retention checked against the live release tree and journal")
|
||||
if scenario in ("success", "restart"):
|
||||
archive_directory=root/"archive"
|
||||
archive_directory.mkdir(mode=0o700)
|
||||
def live_health(release):
|
||||
return {"release":release, "healthy":http()==(200,release)
|
||||
and status("queue") and status("scheduler")}
|
||||
if scenario=="success":
|
||||
archive=TransactionArchive(site=site,directory=archive_directory,
|
||||
lock_path=operations.lock_path,journal=operations.journal,releases=releases,
|
||||
provenance=provenance,backup_evidence=operations.backup_evidence,
|
||||
backup_verify=lambda name:backup.verify(backup_dir/name),health_probe=live_health)
|
||||
else:
|
||||
archive=RollbackArchive(planner=planner,directory=archive_directory,health_probe=live_health)
|
||||
review=archive.plan()
|
||||
archived=archive.execute(confirmation=review["confirmation"],fingerprint=review["fingerprint"])
|
||||
require(operations.journal.load() is None,"Live journal did not retire")
|
||||
archive_path=archive.path(archived["transaction"]["transaction_id"])
|
||||
original_bytes=archive_path.read_bytes()
|
||||
archived_plan=plan_site_retention(root,keep=2,site=site)
|
||||
require(archived_plan["status"]=="READY" and archived_plan["retained"]==["1","2"]
|
||||
and not archived_plan["execution_permitted"] and not archived_plan["archive_candidates"],
|
||||
"Archived-state retention did not protect live releases")
|
||||
require(archived_plan["failed"]==(["2"] if scenario=="restart" else []),
|
||||
"Failed release quarantine not reflected in retention")
|
||||
require(original_bytes==archive_path.read_bytes(),"Retention changed archive bytes")
|
||||
archive_path.write_bytes(original_bytes+b"corrupt")
|
||||
try:
|
||||
plan_site_retention(root,keep=2,site=site)
|
||||
except RetentionError:
|
||||
pass
|
||||
else:
|
||||
raise RuntimeError("Corrupt archive accepted")
|
||||
finally:
|
||||
archive_path.write_bytes(original_bytes)
|
||||
if scenario=="restart":
|
||||
marker=releases.release_path("2")/"BAD_RELEASE"
|
||||
tmp=root/"saved-quarantine"
|
||||
marker.rename(tmp)
|
||||
try:
|
||||
plan_site_retention(root,keep=2,site=site)
|
||||
except RetentionError:
|
||||
pass
|
||||
else:
|
||||
raise RuntimeError("Missing quarantine evidence accepted")
|
||||
finally:
|
||||
tmp.rename(marker)
|
||||
require(plan_site_retention(root,keep=2,site=site)==archived_plan,
|
||||
"Retention was not restored deterministically")
|
||||
(root/"retired-retention.json").write_text(json.dumps(archived_plan,indent=2)+"\n")
|
||||
(root/"archive-identity.json").write_text(json.dumps(
|
||||
{"transaction_id":archived["transaction"]["transaction_id"],
|
||||
"checksum":archived["checksum"],"failed":archived_plan["failed"],
|
||||
"active":releases.current(),"mode":scenario},indent=2)+"\n")
|
||||
log(scenario,"actual retired archive protected live releases and corrupt evidence denied planning")
|
||||
else:
|
||||
require(retention["status"]=="BLOCKED" and retention["retained"]==["1","2"],
|
||||
"Unresolved deployment did not retain all releases")
|
||||
log(scenario,"failed unresolved deployment retained both live release directories")
|
||||
# Forked activation writes directly to the event log. Use it as the authoritative count.
|
||||
(root/"transaction.json").write_text(json.dumps(record, indent=2)+"\n")
|
||||
finally:
|
||||
+2
-2
@@ -34,6 +34,6 @@
|
||||
"automatic_deletion": false,
|
||||
"execution_permitted": false,
|
||||
"inventory_source": "site_runtime",
|
||||
"journal_checksum": "58b78eb99505a7e670104ec4f7235f581703e8797b60d737149c4ca0e137e017",
|
||||
"fingerprint": "ed5865b5aca5c230f6bef021f9a48105c7a003568a533bcf7ee8365b647c56ca"
|
||||
"journal_checksum": "0d371cfdbf00bb0aa2c0dfaceffcd79bcead1f300ab387cf2aa1ea1dd3c4e9fb",
|
||||
"fingerprint": "613d3a387129f36ae8a4ea65f312d88fb216d299a5a36c76adfd63dcd22a4344"
|
||||
}
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"schema_version": 1,
|
||||
"site": {
|
||||
"identifier": "stage-ecd59a4ddabb",
|
||||
"domain": "stage-ecd59a4ddabb.example.invalid",
|
||||
"root": "/var/tmp/absdev-live-retention.X4Hm1f/stage-ecd59a4ddabb",
|
||||
"identifier": "stage-4fa04e87e78a",
|
||||
"domain": "stage-4fa04e87e78a.example.invalid",
|
||||
"root": "/var/tmp/absdev-staging-topology.3OUQjS/stage-4fa04e87e78a",
|
||||
"origin_port": 8199
|
||||
},
|
||||
"repository": {
|
||||
@@ -19,7 +19,7 @@
|
||||
"username": "app_user"
|
||||
},
|
||||
"docker": {
|
||||
"project": "site-stage-ecd59a4ddabb",
|
||||
"project": "site-stage-4fa04e87e78a",
|
||||
"application_path": "/var/www/html",
|
||||
"php_service": "php",
|
||||
"web_service": "web",
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"candidate": "2",
|
||||
"checksum": "0d371cfdbf00bb0aa2c0dfaceffcd79bcead1f300ab387cf2aa1ea1dd3c4e9fb",
|
||||
"format_version": 1,
|
||||
"history": [
|
||||
{
|
||||
"phase": "PREPARED",
|
||||
"timestamp": "2026-11-30T12:01:36.933792+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "BACKED_UP",
|
||||
"timestamp": "2026-11-30T12:01:37.555626+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "QUIESCED",
|
||||
"timestamp": "2026-11-30T12:01:40.028908+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "ACTIVATING",
|
||||
"timestamp": "2026-11-30T12:01:42.026305+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "ACTIVATED",
|
||||
"timestamp": "2026-11-30T12:01:44.115908+00:00"
|
||||
},
|
||||
{
|
||||
"phase": "VERIFIED",
|
||||
"timestamp": "2026-11-30T12:01:48.416250+00:00"
|
||||
}
|
||||
],
|
||||
"phase": "VERIFIED",
|
||||
"previous": "1",
|
||||
"previous_provenance": "985c7ca27c9b0f242afaccc42eb6f1c129057a7973b4132e7632a26a52e3510c",
|
||||
"previous_revision": "86a1b5710333780c59283c9b3263f23792668be3",
|
||||
"provenance": "3eb232ab949e6bc9352a0a32520d74cbdea6d681df747840b7368542fbcbe5a3",
|
||||
"revision": "0cf673297c56e82326a3bd5da0cf952cb32f3e3c",
|
||||
"site": "stage-4fa04e87e78a",
|
||||
"transaction_id": "08add9923a0849afaa7a71cfde605f87"
|
||||
}
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"source_commit": "611f8d0f3de949fdd38031132124649facad968c",
|
||||
"source_commit": "054c546c8fc24684779dbcc890c72c0bf3d344df",
|
||||
"host": "ABSDEV-CI",
|
||||
"production_execution_enabled": false,
|
||||
"production_ready": false,
|
||||
"result": "PASS",
|
||||
"checks_passed": 55,
|
||||
"checks_passed": 52,
|
||||
"images": {
|
||||
"nginx": "nginx@sha256:552e7481ca93ffccd046aa658dbbed22caefbc09c66fa7cd247cbb90b8a5c609",
|
||||
"php": "sha256:cac70f6c4aa761a1c04c6813c03a7678b9a5c061cc67a413a12736253e7128ee",
|
||||
@@ -120,7 +120,7 @@ class RecoveryTests(unittest.TestCase):
|
||||
runtime_check=self.runtime_check,
|
||||
)
|
||||
|
||||
def prepare(self, failed=True, *, interrupted=False):
|
||||
def prepare(self, failed=True):
|
||||
|
||||
transaction = self.journal.create(
|
||||
"example-absdev-net",
|
||||
@@ -150,8 +150,6 @@ class RecoveryTests(unittest.TestCase):
|
||||
)
|
||||
|
||||
self.releases.activate("2")
|
||||
if interrupted:
|
||||
return transaction
|
||||
|
||||
transaction = self.journal.transition(
|
||||
transaction["transaction_id"],
|
||||
|
||||
@@ -4,7 +4,6 @@ import unittest
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
import test_rollback
|
||||
import test_recovery
|
||||
|
||||
from core.rollback_archive import RollbackArchive, ArchiveError
|
||||
from core.compatibility import canonical_hash
|
||||
@@ -251,41 +250,3 @@ class RollbackArchiveTests(unittest.TestCase):
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
|
||||
class InterruptedRollbackArchiveTests(unittest.TestCase):
|
||||
def test_confirmed_rollback_can_archive_interrupted_activation(self):
|
||||
prepare = test_recovery.RecoveryTests.prepare
|
||||
|
||||
def interrupted(recovery):
|
||||
return prepare(recovery, interrupted=True)
|
||||
|
||||
fixture = RollbackArchiveTests()
|
||||
self.addCleanup(fixture.doCleanups)
|
||||
with patch.object(test_recovery.RecoveryTests, "prepare", interrupted):
|
||||
fixture.setUp()
|
||||
self.assertEqual(fixture.transaction["phase"], "ACTIVATING")
|
||||
result = fixture.execute()
|
||||
self.assertEqual(result["transaction"]["phase"], "ACTIVATING")
|
||||
self.assertIsNone(fixture.journal.load())
|
||||
self.assertTrue(fixture.marker.is_file())
|
||||
self.assertEqual(fixture.archive.load(fixture.identifier), result)
|
||||
|
||||
|
||||
def test_unfinished_migration_blocks_rollback_journal_retirement(self):
|
||||
from core.approval_store import ApprovalStore
|
||||
|
||||
fixture = RollbackArchiveTests()
|
||||
self.addCleanup(fixture.doCleanups)
|
||||
fixture.setUp()
|
||||
approvals = fixture.recovery.root / "approvals"
|
||||
approvals.mkdir(mode=0o700, exist_ok=True)
|
||||
fixture.journal.bind_migration_guard(ApprovalStore(approvals))
|
||||
blocker = approvals / ("b" * 32 + ".migration-intent.json")
|
||||
blocker.write_text("{}")
|
||||
before = fixture.journal.path.read_bytes()
|
||||
with self.assertRaises(ArchiveError):
|
||||
fixture.execute()
|
||||
self.assertEqual(fixture.journal.path.read_bytes(), before)
|
||||
self.assertFalse(fixture.marker.exists())
|
||||
self.assertFalse(fixture.archive.path(fixture.identifier).exists())
|
||||
|
||||
Reference in New Issue
Block a user