Record deployed release recovery and receipt-bound worker rotation

This commit is contained in:
2026-11-17 16:50:01 +01:00
parent beb3485838
commit 9fac50a8d1
3 changed files with 114 additions and 2 deletions
@@ -0,0 +1,110 @@
{
"environment": "development",
"server": "discovery.ease-technologies.de",
"tenant_id": "11111111-1111-4111-8111-111111111111",
"platform": "x86_64-pc-windows-gnu",
"worker_rotation": {
"method": "Receipt-bound PE upload via catalog API, independent SHA-256 and size check of stored tenant object, compare-and-swap from prior tenant pin",
"previous": {
"sha256": "333cf84c1594ac0d44951aa4141635afdd9b3f1bdb5f2d8b701d384c0abc93e3",
"bytes": 26965924
},
"current": {
"sha256": "de75510b9b2971658dcadd197364c4135b629448bd6f47bf187033c189e349f7",
"bytes": 27024082
},
"previous_download_grace_until_utc": "2026-11-17T16:00:00+00:00",
"platform_default_worker": {
"sha256": "ed21b27da69147db8f25ceb6ceb915c8f807ab55bffccddcd0b472e222930f51",
"bytes": 26872723
},
"build_receipt_sha256": "6a13eb387f4e37e98effa5765243dd34a66d1fc4ea5df7a12e1aa23b1a8ef7fe",
"native_verification": {
"os": "Windows 11",
"candidate_sha256": "de75510b9b2971658dcadd197364c4135b629448bd6f47bf187033c189e349f7",
"signed_versions_verified": [
"0.1.2",
"0.1.3"
]
},
"signed_pairs": [
{
"sequence": 3,
"version": "0.1.2",
"release_id": "6b695fec-69c6-4f87-b5ab-e405b93a1a7f",
"manifest_sha256_at_original_publication": "243ba0a9301e0c7ec79f24ba23291fe2dc4531990c117ef6958325c74eac49f8",
"manifest_sha256_after_worker_rotation": "243ba0a9301e0c7ec79f24ba23291fe2dc4531990c117ef6958325c74eac49f8",
"manifest_sha256_after_E_publication": "243ba0a9301e0c7ec79f24ba23291fe2dc4531990c117ef6958325c74eac49f8"
},
{
"sequence": 4,
"version": "0.1.3",
"release_id": "1023b63b-08fe-409a-bf9b-9cfe3cd769d6",
"manifest_sha256_at_original_publication": "b03e576103fcc0a2d04870fb32fdf4528b783937bfb668d93376ad49b9904670",
"manifest_sha256_after_worker_rotation": "b03e576103fcc0a2d04870fb32fdf4528b783937bfb668d93376ad49b9904670",
"manifest_sha256_after_E_publication": "b03e576103fcc0a2d04870fb32fdf4528b783937bfb668d93376ad49b9904670"
}
],
"catalog_readback_after_worker_rotation_utc": "2026-11-17T15:48:03.393127+00:00"
},
"release_publication": {
"channel": "Windows GNU development",
"sequence": 5,
"source_commit": "863dcb04b1df315f38087533ab3691d4a3995bb4",
"source_snapshot_sha256": "a03b3d94e29593c68cf5af4582bbd0164738dfda0fe52bf41389523a08fe087d",
"build_receipt_sha256": "2dbf18238caf55cb243d23599df1f267ce405c90c2d4a92d97090741131f7193",
"version_overrides": [
"Cargo.toml",
"Cargo.lock"
],
"published": {
"release_id": "3dcb2484-fb2d-418d-84f0-aa54f5c4c209",
"version": "0.1.4",
"manifest_sha256": "5e8cc9c96f280458f96d81cff3087004a0062db6951ceb4dcc47e2814df9169d",
"published_at_unix": 1794930513,
"minimum_updater_version": 2,
"artifacts": [
{
"artifact_id": "71b9503b-d8c8-5995-a2f7-ccb02de28bad",
"bytes": 31413527,
"role": "agent",
"sha256": "f30ffac8b9f674c4933d50645bf93f6ee89442608ff73f597cedef3a42172292"
},
{
"artifact_id": "05d3e340-ce80-580d-a1d7-b73a51c80e8d",
"bytes": 27017145,
"role": "helper",
"sha256": "eeb81736a3ddf297230d808b81f4fbf29f5ebe29723fc298455746f3e4b8f2b7"
}
]
},
"bootstrap_worker_after_publication": {
"sha256": "de75510b9b2971658dcadd197364c4135b629448bd6f47bf187033c189e349f7",
"bytes": 27024082
},
"readback": {
"checked_at_utc": "2026-11-17T15:48:51.062035+00:00",
"management_api": "GET /api/v1/tenants/{tenant}/agent-releases",
"checks": [
"API reported a valid signature and validity period",
"Decoded envelope matches returned manifest",
"Manifest SHA-256 matches signed payload bytes",
"Agent and helper sizes and SHA-256 match immutable tenant objects",
"Bootstrap worker bytes and SHA-256 match protected tenant pin"
]
}
},
"isolated_regression": {
"command": "python3 tests/release_bootstrap_gateway.py --server-binary <rmm-server>",
"setup": "Temporary PostgreSQL 17.6, all 25 migrations applied by a NOSUPERUSER NOBYPASSRLS owner, fresh loopback TLS endpoint",
"passed": [
"Worker upload through the management API with a worker-only build receipt",
"Missing worker object and stale predecessor rejected",
"Idempotent worker rotation preserves existing release records, envelopes and signature status",
"In-flight enrollment downloads the previous pin; default worker download and unknown-hash rejection verified",
"Second tenant downloads its original default worker and rejects another tenant’s new digest",
"Incomplete release uploads preserve previous release; completed retry publishes the new release",
"Invalid or consumed enrollment token denied; device-trust endpoint requires mTLS"
]
}
}