fix: retain the original Loki container during S3 adoption #1553

Merged
PlasticDigits merged 3 commits from fix/loki-s3-adoption-1544 into main 2026-10-18 13:44:14 +00:00
Owner

The first live Loki credential replacement failed its strict runtime comparison, and Compose-based rollback also failed that comparison. Keep those failures in evidence. A read-only recovery observation confirmed that Loki again uses the old credentials and is ready; Grafana and fresh Loki queries remain healthy. Generated config_files metadata changed to -, so recovery attestation uses the original verified canonical source path with unchanged symlink/path checks.

Replace runtime Compose recreation with local Docker Engine cloning. Retain the stopped original container until the replacement passes identity, exact effective settings, readiness, historical readback and actual storage-write checks. Rollback restarts that same original container ID and separately checks identity, old credentials and readiness. Remove a successful rollback copy without deleting its volumes.

A disabled manual diagnostic task uses pinned, SHA256-verified public source within the installed platform's 255-character command limit. Resetting an attempt requires its verified recovery receipt, unchanged candidate and configuration, archived failure, and a new image/state-volume nonce. Preserve old latches and reject stale receipts. Only the owned maintenance Service restarts; DEX, Grafana, proxy and collectors do not.

Validation: make verify-issue-1544 passed 177 focused unit controls and all config/rule checks; every process has a 55-second cap. A disposable local Docker rehearsal passed exact clone projection, replacement credentials and rollback to the original container ID/projection, then removed its owned fixtures. Hooks pass. Live adoption still follows publication. Old-key revocation and ingestion rotation remain pending; #1544 remains open.

The first live Loki credential replacement failed its strict runtime comparison, and Compose-based rollback also failed that comparison. Keep those failures in evidence. A read-only recovery observation confirmed that Loki again uses the old credentials and is ready; Grafana and fresh Loki queries remain healthy. Generated `config_files` metadata changed to `-`, so recovery attestation uses the original verified canonical source path with unchanged symlink/path checks. Replace runtime Compose recreation with local Docker Engine cloning. Retain the stopped original container until the replacement passes identity, exact effective settings, readiness, historical readback and actual storage-write checks. Rollback restarts that same original container ID and separately checks identity, old credentials and readiness. Remove a successful rollback copy without deleting its volumes. A disabled manual diagnostic task uses pinned, SHA256-verified public source within the installed platform's 255-character command limit. Resetting an attempt requires its verified recovery receipt, unchanged candidate and configuration, archived failure, and a new image/state-volume nonce. Preserve old latches and reject stale receipts. Only the owned maintenance Service restarts; DEX, Grafana, proxy and collectors do not. Validation: `make verify-issue-1544` passed 177 focused unit controls and all config/rule checks; every process has a 55-second cap. A disposable local Docker rehearsal passed exact clone projection, replacement credentials and rollback to the original container ID/projection, then removed its owned fixtures. Hooks pass. Live adoption still follows publication. Old-key revocation and ingestion rotation remain pending; #1544 remains open.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/cl8y-dex-terraclassic!1553
No description provided.