Repository navigation
fix(store): redact blocklist reasons before persistence - #303
Merged
abogartz merged 1 commit intoNov 4, 2026
Merged
Conversation
|
🎉 This PR is included in version 0.15.34 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #298. A viewer block reason containing a recognized credential currently persists that credential in
blocklist.logfmt, even though the corresponding tombstone reason is already redacted. ApplyredactSecretsinsideaddBlockbefore serialization so every caller uses the same write boundary.Two regressions cover direct writes with a token and multiline private key, plus the viewer mutation path. They check persisted bytes, parsed reasons, clean reason preservation, and successful/no-op unblock behavior. Both new tests fail against main
7405dc6because the raw token is written, and pass with this change. This fixes new blocklist writes; it does not rewrite existing files.Validation on Windows, Bun 1.4.4:
bun run test: 996 pass, 32 skip, 0 fail (28.29s).bun run test:e2e: 30 pass, 0 fail (17.14s).bun run typecheckandbun run lint: pass.Taking this at WhollyMindless's request, following the architect's draft scope. Please feel free to defer or reject this PR if you would prefer a different direction. No agent labels were changed.