Compare commits

..
Author SHA1 Message Date
Mark Gregory 090db15a45 Record staging topology and PostgreSQL grant qualification 2026-11-30 12:03:52 +00:00
Mark Gregory 054c546c8f Reload current rehearsal attestation key at approval checks
ABSDEV Framework CI / framework-ci (push) Successful in 20s
2026-11-30 11:57:09 +00:00
26 changed files with 315 additions and 211 deletions
+25 -21
View File
@@ -88,6 +88,30 @@ class OperatorApprovalPolicy:
self.authorise(approval, "execute", now)
def read_protected_authority(path, *, group, max_bytes):
# Ancestors are trusted; open the parent and file without following links.
directory = os.open(path.parent, os.O_RDONLY | os.O_DIRECTORY
| os.O_NOFOLLOW | os.O_CLOEXEC)
try:
info = os.fstat(directory)
require(info.st_uid == 0 and info.st_gid == group
and stat.S_IMODE(info.st_mode) == 0o750,
"Unsafe operator authority directory")
descriptor = os.open(path.name, os.O_RDONLY | os.O_NOFOLLOW
| os.O_NONBLOCK | os.O_CLOEXEC, dir_fd=directory)
with os.fdopen(descriptor, "rb") as stream:
info = os.fstat(stream.fileno())
require(stat.S_ISREG(info.st_mode) and info.st_uid == 0
and info.st_gid == group and info.st_nlink == 1
and stat.S_IMODE(info.st_mode) == 0o440,
"Unsafe operator authority file")
data = stream.read(max_bytes + 1)
finally:
os.close(directory)
require(0 < len(data) <= max_bytes, "Invalid operator authority size")
return data
class FileOperatorAuthority:
"""Load a fresh, atomic authority snapshot from a trusted local provisioner."""
@@ -100,27 +124,7 @@ class FileOperatorAuthority:
and type(group) is int and group > 0, "Invalid operator authority binding")
def __call__(self):
# The parent and its ancestors are trusted, and the final entry cannot
# be replaced by the reader or resolved through a symbolic link.
directory = os.open(self.path.parent, os.O_RDONLY | os.O_DIRECTORY
| os.O_NOFOLLOW | os.O_CLOEXEC)
try:
info = os.fstat(directory)
require(info.st_uid == 0 and info.st_gid == self.group
and stat.S_IMODE(info.st_mode) == 0o750,
"Unsafe operator authority directory")
descriptor = os.open(self.path.name, os.O_RDONLY | os.O_NOFOLLOW
| os.O_NONBLOCK | os.O_CLOEXEC, dir_fd=directory)
with os.fdopen(descriptor, "rb") as stream:
info = os.fstat(stream.fileno())
require(stat.S_ISREG(info.st_mode) and info.st_uid == 0
and info.st_gid == self.group and info.st_nlink == 1
and stat.S_IMODE(info.st_mode) == 0o440,
"Unsafe operator authority file")
data = stream.read(self.MAX_BYTES + 1)
finally:
os.close(directory)
require(0 < len(data) <= self.MAX_BYTES, "Invalid operator authority size")
data = read_protected_authority(self.path, group=self.group, max_bytes=self.MAX_BYTES)
snapshot = json.loads(data)
require(isinstance(snapshot, dict) and set(snapshot) == {"grants", "sealing_key"}
and isinstance(snapshot["grants"], list), "Invalid operator authority snapshot")
+26 -5
View File
@@ -2,26 +2,34 @@
import copy
import hmac
from pathlib import Path
from core.operator_approval import read_protected_authority
from core.rehearsal import (
RECORD_FIELDS, approval_context, create_rehearsal, matches, require,
RECORD_FIELDS, RehearsalError, approval_context, create_rehearsal, matches, require,
validate_base_context,
)
class TrustedRehearsal:
def __init__(self, runner_id, runner, *, key, clock):
def __init__(self, runner_id, runner, *, key_loader, clock):
require(matches(runner_id, r"[a-zA-Z0-9_.-]{1,128}"), "Invalid rehearsal runner identity")
require(callable(runner) and callable(clock), "Trusted rehearsal runner and clock required")
require(isinstance(key, bytes) and len(key) >= 32, "Invalid rehearsal trust key")
require(callable(key_loader), "Trusted rehearsal key loader required")
self.runner_id = runner_id
self._runner = runner
self._key = key
self._key_loader = key_loader
self._clock = clock
def _seal(self, fingerprint):
payload = f"absdev:trusted-rehearsal:v1:{self.runner_id}:{fingerprint}".encode("ascii")
return hmac.digest(self._key, payload, "sha256").hex()
try:
key = self._key_loader()
except Exception:
raise RehearsalError("Unable to verify current rehearsal authority") from None
require(isinstance(key, bytes) and len(key) >= 32, "Invalid rehearsal trust key")
return hmac.digest(key, payload, "sha256").hex()
def run(self, context):
context = copy.deepcopy(context)
@@ -42,3 +50,16 @@ class TrustedRehearsal:
require(hmac.compare_digest(evidence["runner_seal"], self._seal(record["fingerprint"])),
"Untrusted rehearsal runner attestation")
return approved
class FileRehearsalKey:
"""Read a protected current key snapshot for each attestation operation."""
def __init__(self, path, *, group):
self.path = Path(path)
self.group = group
require(self.path.is_absolute() and self.path.parent.resolve() == self.path.parent
and type(group) is int and group > 0, "Invalid rehearsal key binding")
def __call__(self):
return read_protected_authority(self.path, group=self.group, max_bytes=4096)
+9 -1
View File
@@ -1,6 +1,6 @@
# Trusted rehearsal evidence
Configure `TrustedRehearsal(runner_id, runner, key=..., clock=...)` in trusted
Configure `TrustedRehearsal(runner_id, runner, key_loader=..., clock=...)` in trusted
runtime code and supply it to `SiteOperations(trusted_rehearsal=...)`.
Use a separately managed random key of at least 32 bytes and a stable runner
identifier. Only trusted runtime processes may have access to this key.
@@ -23,3 +23,11 @@ authorise a migration.
The configured runner and protected key provisioning are deployment inputs.
Production execution remains disabled.
The loader must re-read the current key on each call. Use
`FileRehearsalKey(path, group=...)` for a root-owned binary key file (0440)
in a root-owned directory (0750) with the configured reader group. Keep the
ancestors under trusted administrative control. Replace the file atomically.
The runtime rejects missing, unreadable, or unsafe key snapshots and newly
checks the key at both approval issuance and consumption. A rotation
invalidates outstanding attestations under the retired key at the next check.
-22
View File
@@ -1,22 +0,0 @@
# Production-like staging qualification
The manifests in the three scenario directories were generated and validated
on ABSDEV-CI at the start of each run. The policy base was set to the disposable
workspace for this qualification. The manifest paths describe the observed run
and ceased to exist after cleanup. Re-run the harness to provision new paths.
The Laravel source uses a local fixture and an explicitly bound synthetic Git
origin. No live production upstream was substituted.
The scenarios used real Docker Compose, Nginx, Laravel, PostgreSQL,
role-specific database identities, pinned images, transaction-bound backups,
backend-delivered application credentials and live retention state.
The application setup migration and database backup client used fixture-local
credential files. Existing sessions and in-scenario password rotation were
outside this run. Prior isolated password-cutover evidence remains separate.
The restart test covers interrupted deployment activation and reviewed
rollback. It does not replace the earlier partial-migration reconciliation
drill. Production operator provisioning, rehearsal runner/key provisioning,
private source credentials and actual production bindings remain open.
All production execution and readiness flags stayed false. The staging
projects, networks, volumes and temporary credentials were removed.
@@ -1,16 +0,0 @@
423baf49a9e1b8c0286e0bd61c258d406f68458e8014626b4d09f366df57e312 ./checks.jsonl
a64fe8f86b619e33eee6300a0770edde206be86747ab99ffb3de4ae8a38c3dfe ./failed-health/retention.json
d8eb1fc4dbfcf09c6fc469e6c4a53044c5b09bd7c17c7cd1c620e7e593bbf6b1 ./failed-health/site-manifest.json
6dc72f9fac0b8cbac68d7921d1ecc6331040b9113c58bb7f93ace2fc4ab1e4d8 ./failed-health/transaction.json
9a64eb27f62e3dc78a4b999c2ede783ab6c14f5f79e5e82bf29ad08514736817 ./restart/retention.json
276fbe4b055dde9a4bc5b0a48970402de8e081d9454b27b5d5916c8699dd1eff ./restart/site-manifest.json
aabfbc4120c064a09efd118877de4078babf818fd69032bc44b7cbc1d6ad5b11 ./restart/transaction.json
10bf6a44f371d0f3011baae313b0c7e3d09c4103cd1c203508ba6a3e13bee7a1 ./run.txt
ae96bff16d7d97df4907fe2f66b6ef6e7d5262a6dd88112cf1349a44aead461d ./success/retention.json
d13f9f77480f4382d79f11f4253b94d9cf77867d3a6590c0493107c2128562c3 ./success/site-manifest.json
009710445b02b2bc8c6630fbc1a4f9b4bc9135d01eba50e15d6bf014784c426d ./success/transaction.json
a0287cef2d5c9885f69316d0e2dc2b2aff71ac6db430ae948803b20f03acf9a9 ./summary.json
70d851d982fe0ab06e99b74d37a2232c99986534e63028adbff4c3ca18768ea1 staging.py
5d9f58d4298aa2d36fea526262c4610a03ae3433cb9be8663775e8a22a81706e run.sh
992c07a95aec10c7da3d91f90994218d6ba8f8d3301b4132708c5b9000193555 images.json
b63f8af4b626efbb0659328242379fa117f468d57994309d8b3ce42bfe7658a7 SCOPE.md
@@ -1,39 +0,0 @@
{
"candidate": "2",
"checksum": "c78d50feb06e01d42a3d98cc905229a6a7a21edeb7ad9bd51e5e540f2dacc888",
"format_version": 1,
"history": [
{
"phase": "PREPARED",
"timestamp": "2026-11-30T11:29:16.881600+00:00"
},
{
"phase": "BACKED_UP",
"timestamp": "2026-11-30T11:29:17.450527+00:00"
},
{
"phase": "QUIESCED",
"timestamp": "2026-11-30T11:29:19.767392+00:00"
},
{
"phase": "ACTIVATING",
"timestamp": "2026-11-30T11:29:21.215933+00:00"
},
{
"phase": "ACTIVATED",
"timestamp": "2026-11-30T11:29:23.331784+00:00"
},
{
"phase": "FAILED",
"timestamp": "2026-11-30T11:29:30.089786+00:00"
}
],
"phase": "FAILED",
"previous": "1",
"previous_provenance": "9a1e407e3cdb6e0ddefcca6edc17c4c9bc898701c1ce020d3bd927438882bc5c",
"previous_revision": "e9c96e50e27ca9bd6b6d7988e3804d7b98908e76",
"provenance": "4422c8c95baa0145f9acbe1f9168baf28395f68ba852ba0f6f6dfa76e22298d9",
"revision": "fb45a83249aada5de4228cf3f439a411a0f53c5f",
"site": "stage-9ae3e8d380c4",
"transaction_id": "cc8346f78c0e438db5b87102c722eecf"
}
@@ -1,31 +0,0 @@
{
"candidate": "2",
"checksum": "f8e06557c07e23c4417c26337b893e1106fa0a37ae15acfe1d2282ecbba8685f",
"format_version": 1,
"history": [
{
"phase": "PREPARED",
"timestamp": "2026-11-30T11:30:08.802131+00:00"
},
{
"phase": "BACKED_UP",
"timestamp": "2026-11-30T11:30:09.484915+00:00"
},
{
"phase": "QUIESCED",
"timestamp": "2026-11-30T11:30:12.612220+00:00"
},
{
"phase": "ACTIVATING",
"timestamp": "2026-11-30T11:30:14.015278+00:00"
}
],
"phase": "ACTIVATING",
"previous": "1",
"previous_provenance": "0d22485dc0d4128990542c927ca78ba40d2b4735604e54c1dc2f4d295afc084b",
"previous_revision": "d40930e590334b2a76cac3dbd720beda577cb5e5",
"provenance": "49db1af53df47c39afd35077a7b4e597202e24a92151b3bc8877c93da2b7af87",
"revision": "428e6748d6221109eba60b0af4de12ddde35886a",
"site": "stage-49a050aa62fc",
"transaction_id": "e349dfb5da6e4bd0a696542a278d84bd"
}
@@ -1,39 +0,0 @@
{
"candidate": "2",
"checksum": "e8952df65bdf7d2643c65bf95d7635b55874514e9796c03531dde07640b7250d",
"format_version": 1,
"history": [
{
"phase": "PREPARED",
"timestamp": "2026-11-30T11:28:44.858553+00:00"
},
{
"phase": "BACKED_UP",
"timestamp": "2026-11-30T11:28:45.475657+00:00"
},
{
"phase": "QUIESCED",
"timestamp": "2026-11-30T11:28:47.854168+00:00"
},
{
"phase": "ACTIVATING",
"timestamp": "2026-11-30T11:28:49.262196+00:00"
},
{
"phase": "ACTIVATED",
"timestamp": "2026-11-30T11:28:51.238347+00:00"
},
{
"phase": "VERIFIED",
"timestamp": "2026-11-30T11:28:55.522151+00:00"
}
],
"phase": "VERIFIED",
"previous": "1",
"previous_provenance": "540bb6cce7163dd93de9df3931445901afd75b7bd9996fe1b736b859acf5809d",
"previous_revision": "2b7dd7f9e6983603c647cad4b55224fc6d22bdc4",
"provenance": "9add21fa7b2f2ebe7dfd0c26c9577a568120340d90f2502d4e47e371a40fe019",
"revision": "736d1ce04470f449a9ade83902c955ff2769c42e",
"site": "stage-1eb89391113a",
"transaction_id": "60242cb166e64575a0de276996fb89ae"
}
@@ -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
@@ -1,6 +1,8 @@
{"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": "321ae63659e12e28a4656f0590abd17846c1041d42b7c048029863f1794acae4", "execution_permitted": false, "fingerprint": "65f087190ad5348445cb333bf0d86e4a48488bed0b0d7e2dad551e458bd75dfe", "format_version": 1, "runtime_verified": false, "site": "stage-1eb89391113a", "static_policy_verified": true, "status": "VALID"}, "result": "PASS", "scenario": "success"}
{"check": "pinned PostgreSQL cluster and all three account identities verified", "detail": "7713924959634079786", "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"}
{"check": "release 1 initially served with active workers", "detail": null, "result": "PASS", "scenario": "success"}
{"check": "public HTTP sealed immediately before activation", "detail": {"response": "maintenance", "status": 503}, "result": "PASS", "scenario": "success"}
@@ -10,11 +12,13 @@
{"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-20261130T112845-ed7588711a744f9982d2fc9e7fafc1c1", "bytes": 7406, "container": "91dc568ea9ef8eabd1ac4ed0f1073a1e5c59957717af3f1694838157b5a7e1c2", "created_at": "2026-11-30T11:28:45.463732+00:00", "database": "fixture", "driver": "pgsql", "filename": "database.dump", "format_version": 1, "identity": "fixture|backup_user|7713924959634079786", "sha256": "f57c11507902aa7026ef93bb7f37ba57ac513fa12d4d35c753e093473bf07cf3", "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": "disposable project containers, volumes and networks removed", "detail": null, "result": "PASS", "scenario": "success"}
{"check": "canonical production-like staging manifest validated", "detail": {"configuration_fingerprint": "808d07e3534419e4ef4e4fd728c1f2cd2fa3efc5f639122eb4e4c2b8aba6593a", "execution_permitted": false, "fingerprint": "75bcaf2f23b72bef65450f7c8ca079554f39a45683332726f054d496b19564df", "format_version": 1, "runtime_verified": false, "site": "stage-9ae3e8d380c4", "static_policy_verified": true, "status": "VALID"}, "result": "PASS", "scenario": "failed-health"}
{"check": "pinned PostgreSQL cluster and all three account identities verified", "detail": "7713925099891159088", "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"}
{"check": "release 1 initially served with active workers", "detail": null, "result": "PASS", "scenario": "failed-health"}
{"check": "public HTTP sealed immediately before activation", "detail": {"response": "maintenance", "status": 503}, "result": "PASS", "scenario": "failed-health"}
@@ -23,11 +27,13 @@
{"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-20261130T112917-f9e1ba9ea25b42b8aad5928ed41847e1", "bytes": 7406, "container": "f762e6b8986b3643ac831362da601800b60a0ed9d9a747c9526256811859b26c", "created_at": "2026-11-30T11:29:17.438608+00:00", "database": "fixture", "driver": "pgsql", "filename": "database.dump", "format_version": 1, "identity": "fixture|backup_user|7713925099891159088", "sha256": "8c57c9228f6e6e442bbc6581f375eaf0af120b7ca658db26ef9d85415eca3276", "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": "disposable project containers, volumes and networks removed", "detail": null, "result": "PASS", "scenario": "failed-health"}
{"check": "canonical production-like staging manifest validated", "detail": {"configuration_fingerprint": "787cb7020eb89f59f65adf382991528f37ac4bd1d9acd71fb68ec7f89a9d25d3", "execution_permitted": false, "fingerprint": "9799ac05fafc4b1454c4f236656147b7ce8d1170d89c220124a427239bbe765b", "format_version": 1, "runtime_verified": false, "site": "stage-49a050aa62fc", "static_policy_verified": true, "status": "VALID"}, "result": "PASS", "scenario": "restart"}
{"check": "pinned PostgreSQL cluster and all three account identities verified", "detail": "7713925243992498223", "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"}
{"check": "release 1 initially served with active workers", "detail": null, "result": "PASS", "scenario": "restart"}
{"check": "public HTTP sealed immediately before activation", "detail": {"response": "maintenance", "status": 503}, "result": "PASS", "scenario": "restart"}
@@ -35,12 +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": "7730881d33573656b4f60ab0b4405277489ac4883c95d31c04c37bc7bc66a74a", "backup_id": "backup-20261130T113008-9b1186f53cd2465cb8f155d3fd5f073c", "backup_sha256": "ff71fdf250051f405039129baf875d92acf4761be307a4b5e1b92b5df7d73ff2", "candidate": "2", "candidate_provenance": "49db1af53df47c39afd35077a7b4e597202e24a92151b3bc8877c93da2b7af87", "compatibility_fingerprint": "3778111b94ae4774b88038715e53573e30668a80b566e3c1cd8cb5f615ecc9b7", "confirmation": "ROLLBACK-e349dfb5da6e4bd0a696542a278d84bd", "current": "2", "database_restore_allowed": false, "execution_permitted": false, "format_version": 1, "phase": "ACTIVATING", "plan_fingerprint": "c80c1a08f383e73f7a20e8e3967badd353f1efa00e2fbf12ff1898b2a28c38b2", "previous": "1", "previous_provenance": "0d22485dc0d4128990542c927ca78ba40d2b4735604e54c1dc2f4d295afc084b", "site": "stage-49a050aa62fc", "status": "ROLLBACK_REVIEW_READY", "target": "1", "transaction_checksum": "f8e06557c07e23c4417c26337b893e1106fa0a37ae15acfe1d2282ecbba8685f", "transaction_id": "e349dfb5da6e4bd0a696542a278d84bd"}, "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": "9fdb7e4909ec20eaa416851698e9254f96a7d7f9124b78cc036081444c56972c", "completed_at": "2026-11-30T11:30:37.652479+00:00", "database_restored": false, "format_version": 1, "health_verified": true, "intent_checksum": "864bb6760da1bc65fca75c23d787be34d270966966fad7b54a5f5d886f5a4d88", "plan_fingerprint": "c80c1a08f383e73f7a20e8e3967badd353f1efa00e2fbf12ff1898b2a28c38b2", "previous_active_release": "2", "site": "stage-49a050aa62fc", "status": "ROLLED_BACK", "transaction_id": "e349dfb5da6e4bd0a696542a278d84bd"}, "result": "PASS", "scenario": "restart"}
{"check": "transaction-bound PostgreSQL dump verified", "detail": {"backup_id": "backup-20261130T113008-9b1186f53cd2465cb8f155d3fd5f073c", "bytes": 7406, "container": "0b287e2703e567fc0face776be8179550db9badcf546b84366b526d275a6217d", "created_at": "2026-11-30T11:30:09.472799+00:00", "database": "fixture", "driver": "pgsql", "filename": "database.dump", "format_version": 1, "identity": "fixture|backup_user|7713925243992498223", "sha256": "ff71fdf250051f405039129baf875d92acf4761be307a4b5e1b92b5df7d73ff2", "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": "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"}
@@ -41,6 +41,6 @@
"automatic_deletion": false,
"execution_permitted": false,
"inventory_source": "site_runtime",
"journal_checksum": "c78d50feb06e01d42a3d98cc905229a6a7a21edeb7ad9bd51e5e540f2dacc888",
"fingerprint": "3e8e7f664a06286b9f9947d1466c72ec6f5873b34237a98c7b36db1e8c8e0518"
"journal_checksum": "70e6bed61d2a5b34b4ef1b19ffe72ab124e6637ed09ea94e201a2bd8a2b62017",
"fingerprint": "a61e392e535bd50ea250823e7cf0d5e085ff31cf1b6f881ef43f35a9117e48c7"
}
@@ -1,9 +1,9 @@
{
"schema_version": 1,
"site": {
"identifier": "stage-1eb89391113a",
"domain": "stage-1eb89391113a.example.invalid",
"root": "/var/tmp/absdev-manifest-staging.8Tc3EY/stage-1eb89391113a",
"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-1eb89391113a",
"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.
@@ -40,6 +40,6 @@
"automatic_deletion": false,
"execution_permitted": false,
"inventory_source": "site_runtime",
"journal_checksum": "f8e06557c07e23c4417c26337b893e1106fa0a37ae15acfe1d2282ecbba8685f",
"fingerprint": "441c818b5817f3032ff1f2b85b05643881cdf05e1bb0859c82951517e0b63fa5"
"journal_checksum": "b8f6275b880879e180b2e93d82b0d2639b1d3b36b1d511e152be8eec363c586c",
"fingerprint": "087e5cced68098ef10f5ec35cb1324afe5397af0bebb37fcd97bab73e0924f4e"
}
@@ -1,9 +1,9 @@
{
"schema_version": 1,
"site": {
"identifier": "stage-9ae3e8d380c4",
"domain": "stage-9ae3e8d380c4.example.invalid",
"root": "/var/tmp/absdev-manifest-staging.8Tc3EY/stage-9ae3e8d380c4",
"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-9ae3e8d380c4",
"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"
}
@@ -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-manifest-staging.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 2a001b1269804f997c3d76bbe030b4126745e51e
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"
@@ -1,6 +1,8 @@
PASS framework: production gates before
PASS success: canonical production-like staging manifest validated
PASS success: pinned PostgreSQL cluster and all three account identities verified
PASS success: live Compose service and network attachment matrix verified
PASS success: live PostgreSQL grants verified for application DML, migration DDL and read-only backup
PASS success: Docker isolates FPM and the protected health port from the edge
PASS success: release 1 initially served with active workers
PASS success: public HTTP sealed immediately before activation
@@ -15,6 +17,8 @@ PASS success: runtime retention checked against the live release tree and journa
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
PASS failed-health: live Compose service and network attachment matrix verified
PASS failed-health: live PostgreSQL grants verified for application DML, migration DDL and read-only backup
PASS failed-health: Docker isolates FPM and the protected health port from the edge
PASS failed-health: release 1 initially served with active workers
PASS failed-health: public HTTP sealed immediately before activation
@@ -28,6 +32,8 @@ PASS failed-health: runtime retention checked against the live release tree and
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
PASS restart: live Compose service and network attachment matrix verified
PASS restart: live PostgreSQL grants verified for application DML, migration DDL and read-only backup
PASS restart: Docker isolates FPM and the protected health port from the edge
PASS restart: release 1 initially served with active workers
PASS restart: public HTTP sealed immediately before activation
@@ -45,12 +51,12 @@ PASS restart: runtime retention checked against the live release tree and journa
PASS restart: disposable project containers, volumes and networks removed
PASS framework: production gates after
{
"source_commit": "2a001b1269804f997c3d76bbe030b4126745e51e",
"source_commit": "054c546c8fc24684779dbcc890c72c0bf3d344df",
"host": "ABSDEV-CI",
"production_execution_enabled": false,
"production_ready": false,
"result": "PASS",
"checks_passed": 46,
"checks_passed": 52,
"images": {
"nginx": "nginx@sha256:552e7481ca93ffccd046aa658dbbed22caefbc09c66fa7cd247cbb90b8a5c609",
"php": "sha256:cac70f6c4aa761a1c04c6813c03a7678b9a5c061cc67a413a12736253e7128ee",
@@ -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 = "2a001b1269804f997c3d76bbe030b4126745e51e"
REVISION = "054c546c8fc24684779dbcc890c72c0bf3d344df"
SECURITY_FIELDS = ("production_ready", "deployment_execution_enabled",
"migration_execution_enabled", "provisioning_execution_enabled",
"database_restore_enabled", "permanent_deletion_enabled")
@@ -432,6 +432,50 @@ GRANT EXECUTE ON FUNCTION pg_catalog.pg_control_system() TO app_user, migration_
and details["ReadonlyRootfs"] and any(opt in ("no-new-privileges", "no-new-privileges:true") for opt in details["SecurityOpt"])
and not any("/docker.sock" in entry for entry in (details["Binds"] or [])),
"Container isolation mismatch")
topology = {}
expected = {"web": {"edge", "private"}, "edgecheck": {"edge"},
"php": {"private"}, "queue": {"private"}, "scheduler": {"private"},
"postgres": {"private"}}
for service, networks in expected.items():
container_id=compose("ps","-q",service).stdout.strip()
metadata=json.loads(command((*DOCKER,"inspect",container_id)).stdout)[0]
attached=set(metadata["NetworkSettings"]["Networks"])
require(attached=={tag+"_"+network for network in networks},
"Unexpected live network membership")
require(metadata["Config"]["Labels"]["com.docker.compose.project"]==tag
and not metadata["HostConfig"].get("PortBindings"), "Wrong Compose owner or ports")
topology[service]=sorted(networks)
for name in ("edge","private"):
network=json.loads(command((*DOCKER,"network","inspect",tag+"_"+name)).stdout)[0]
require(network["Labels"]["com.docker.compose.project"]==tag
and network["Internal"] is True, "Network identity mismatch")
namespace=json.loads(command((*DOCKER,"inspect",compose("ps","-q","healthcheck").stdout.strip())).stdout)[0]
web=compose("ps","-q","web").stdout.strip()
require(namespace["HostConfig"]["NetworkMode"]=="container:"+web,
"Protected health probe is not in the Nginx namespace")
log(scenario,"live Compose service and network attachment matrix verified",topology)
# Direct authenticated SQL checks use rollback-only writes on this fixture.
def sql_expect(account, statement, allowed):
result=compose("exec","-T","postgres","env","PGPASSFILE=/run/secrets/absdev-pgpass",
"psql","-XqAt","-v","ON_ERROR_STOP=1","-U",account,
"-h","127.0.0.1","-d","fixture","--command",statement,check=False)
if allowed:
require(result.returncode==0,"Expected disposable role privilege denied")
else:
require(result.returncode!=0 and "permission denied" in result.stderr.lower(),
"Forbidden disposable role action was not explicitly denied")
sql_expect("backup_user","SELECT count(*) FROM work.jobs",True)
sql_expect("backup_user","BEGIN; DELETE FROM work.jobs WHERE false; ROLLBACK",False)
sql_expect("app_user","BEGIN; DELETE FROM work.jobs WHERE false; ROLLBACK",True)
sql_expect("app_user","BEGIN; CREATE TABLE work.stage_denied(i int); ROLLBACK",False)
sql_expect("migration_user","BEGIN; CREATE TABLE work.stage_probe(i int); ROLLBACK",True)
require(sql("SELECT to_regclass('work.stage_probe') IS NULL")=="t",
"Temporary DDL probe escaped rollback")
require(sql("SELECT count(*) FROM pg_roles WHERE rolname IN ('app_user','backup_user','migration_user') "
"AND (rolsuper OR rolcreaterole OR rolcreatedb OR rolreplication OR rolbypassrls)")=="0",
"A staging database role has elevated cluster attributes")
log(scenario,"live PostgreSQL grants verified for application DML, migration DDL and read-only backup")
compose("exec","-T","edgecheck","python","-c",ISOLATION)
log(scenario, "Docker isolates FPM and the protected health port from the edge")
eventually(http, lambda row: row == (200, "1"), "Baseline HTTP failed")
@@ -34,6 +34,6 @@
"automatic_deletion": false,
"execution_permitted": false,
"inventory_source": "site_runtime",
"journal_checksum": "e8952df65bdf7d2643c65bf95d7635b55874514e9796c03531dde07640b7250d",
"fingerprint": "8ff9409b2b865a7a548f3395187991f6340851f2bfcb684130ec226e278a818a"
"journal_checksum": "0d371cfdbf00bb0aa2c0dfaceffcd79bcead1f300ab387cf2aa1ea1dd3c4e9fb",
"fingerprint": "613d3a387129f36ae8a4ea65f312d88fb216d299a5a36c76adfd63dcd22a4344"
}
@@ -1,9 +1,9 @@
{
"schema_version": 1,
"site": {
"identifier": "stage-49a050aa62fc",
"domain": "stage-49a050aa62fc.example.invalid",
"root": "/var/tmp/absdev-manifest-staging.8Tc3EY/stage-49a050aa62fc",
"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-49a050aa62fc",
"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"
}
@@ -1,10 +1,10 @@
{
"source_commit": "2a001b1269804f997c3d76bbe030b4126745e51e",
"source_commit": "054c546c8fc24684779dbcc890c72c0bf3d344df",
"host": "ABSDEV-CI",
"production_execution_enabled": false,
"production_ready": false,
"result": "PASS",
"checks_passed": 46,
"checks_passed": 52,
"images": {
"nginx": "nginx@sha256:552e7481ca93ffccd046aa658dbbed22caefbc09c66fa7cd247cbb90b8a5c609",
"php": "sha256:cac70f6c4aa761a1c04c6813c03a7678b9a5c061cc67a413a12736253e7128ee",
+10 -1
View File
@@ -63,9 +63,10 @@ class ApprovalStoreTests(unittest.TestCase):
},
}
self.rehearsal_key = os.urandom(32)
self.trusted_rehearsal = TrustedRehearsal(
"fixture-runner", lambda _context: self.execution,
key=os.urandom(32), clock=lambda: self.now,
key_loader=lambda: self.rehearsal_key, clock=lambda: self.now,
)
self.rehearsal = self.trusted_rehearsal.run(self.base)
self.context = self.trusted_rehearsal.approval_context(
@@ -572,5 +573,13 @@ class ApprovalStoreTests(unittest.TestCase):
self.assertFalse(self.store.approval_path(self.approval["approval_id"]).exists())
def test_running_store_rejects_retired_rehearsal_key(self):
self.save()
self.rehearsal_key = os.urandom(32)
with self.assertRaises(ApprovalStoreError):
self.consume()
self.assertFalse(self.store.consumed_path(self.identifier).exists())
if __name__ == "__main__":
unittest.main()