Skip to content

scrub-baseline: skip already-redacted Secret markers (#70) - #73

Merged
max06 merged 1 commit into
mainfrom
fix/scrub-idempotency
Aug 12, 2026
Merged

max06 merged 1 commit into
mainfrom
fix/scrub-idempotency

Conversation

@max06

@max06 max06 commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Fixes the review-pipeline ghost diff from #70: the baseline scrub re-hashed already-present REDACTED:sha256: markers into sha256("REDACTED:sha256:<hash>"), flagging every Secret as changed on unrelated PRs (verified exactly on the #69 review diff).

Marker-form values are now excluded in both the collection and replacement expressions of the structural pass — replay over an already-redacted (post-#59) baseline is a no-op, while pre-redaction baselines still get the full leak-closing scrub. The map replay pass needed no change (it only rewrites exact map-key matches).

Two new tests: marker passthrough (mixed marker/raw Secret) and full run-twice idempotency. Replay suite 11/11.

After merge, the standing deployment47 ghost in self-reviews disappears.

🤖 Generated with Claude Code

Baselines rendered by a post-#59 ATLAS already carry REDACTED:sha256:
markers; the structural pass re-hashed them into sha256("REDACTED:...")
so every Secret showed as changed in review comments — ghost diffs on
PRs touching nothing render-relevant. Values already in marker form are
now left untouched in both the collection and replacement expressions,
making replay over an already-redacted tree a no-op while keeping the
leak-closing behavior for pre-redaction baselines.

Fixes #70

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ATLAS Review

Changes detected in 1 resource(s) across 1 release(s).
Please review before merging.

Affected releases

cluster1 / deployment47 / secret-app (1 resources)
Secret/secret-app-secret (15 lines)
@@ data.generatedCert @@
! ± value change
- REDACTED:sha256:64c2cc8965eb
+ REDACTED:sha256:0531e6a12023

@@ stringData.fromSops @@
! ± value change
- REDACTED:sha256:9dacb914694b
+ REDACTED:sha256:9fab3a1ed1c3

@@ stringData.note @@
! ± value change
- REDACTED:sha256:be359b14f3f4
+ REDACTED:sha256:531854cef641

Generated by ATLAS Review — Re-run

@max06
max06 merged commit 24fd8c0 into main Aug 12, 2026
26 of 27 checks passed
@max06
max06 deleted the fix/scrub-idempotency branch August 12, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant