fix: make S3 staging resumable and correct collector inventory #1549

Merged
PlasticDigits merged 1 commit from fix/monitoring-credential-recovery-1544 into main 2026-10-18 11:36:08 +00:00
Owner

The S3 staging helper discarded new key input whenever verification failed and reported only a generic error. It now checks configuration and authority before prompting, CAS-saves a private unverified candidate before the bucket probe, returns fixed phase/HTTP status diagnostics, and supports no-prompt resume. Only HEAD200 plus readback promotes a candidate; verified pending state is downgraded before rechecking, and explicit replacement preserves CAS and accurate input-retention reporting.

Also fixes the collector inventory parser, which excluded digits and missed CL8Y_* assignments. Records the completed inventory card and failed S3 card without claiming credential rotation or guessing the original staging failure cause.

Validation: 16 synthetic S3 signing/workflow controls and two collector parser/privacy controls pass; the focused make verify-issue-1544 suite passes with 67 unit controls plus config/rule checks. Every test process is under 60 seconds. Live read-only configuration/staging-authority preflight passes, the existing S3 key HEAD returns HTTP200, and no replacement is currently staged. No DEX/logging service restarted and no runtime credential changed. Independent privacy review completed.

Tracks #1544. Deployment for this change is the operator helper in the updated main checkout; the monitoring containers are unchanged. S3/ingestion adoption remains incomplete.

The S3 staging helper discarded new key input whenever verification failed and reported only a generic error. It now checks configuration and authority before prompting, CAS-saves a private unverified candidate before the bucket probe, returns fixed phase/HTTP status diagnostics, and supports no-prompt resume. Only HEAD200 plus readback promotes a candidate; verified pending state is downgraded before rechecking, and explicit replacement preserves CAS and accurate input-retention reporting. Also fixes the collector inventory parser, which excluded digits and missed CL8Y_* assignments. Records the completed inventory card and failed S3 card without claiming credential rotation or guessing the original staging failure cause. Validation: 16 synthetic S3 signing/workflow controls and two collector parser/privacy controls pass; the focused make verify-issue-1544 suite passes with 67 unit controls plus config/rule checks. Every test process is under 60 seconds. Live read-only configuration/staging-authority preflight passes, the existing S3 key HEAD returns HTTP200, and no replacement is currently staged. No DEX/logging service restarted and no runtime credential changed. Independent privacy review completed. Tracks #1544. Deployment for this change is the operator helper in the updated main checkout; the monitoring containers are unchanged. S3/ingestion adoption remains incomplete.
fix: retain S3 recovery candidates and report safe staging failures
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
8b0ef96dd8
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!1549
No description provided.