-
Notifications
You must be signed in to change notification settings - Fork 4
fix(server): static 400s and opt-in identifier scrub (alt to #77) #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
0864640
fix(api): static validation rejection messages
ravidsrk d63fa0f
docs(error): state the conflict interception rule
ravidsrk eddb5df
feat(server): opt-in access log identifier scrub
ravidsrk e67623e
test(http): drop narrating test comments
ravidsrk 2a37dd0
test(config): pin scrub env default off
ravidsrk adad913
test(api): cover optional body static rejection
ravidsrk 292ce85
test(server): prove scrub across the log boundary
ravidsrk db703e0
fix(server): scrub admin subscriber path in logs
ravidsrk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scrub_pathonly covers the/v1/subscribers/prefix. The admin route/admin/api/environments/{env_id}/subscribers/{subscriber_id}(served byadmin::get_subscriber) will log the raw subscriber ID in the path field even whenlog_scrub_identifiers = true. The doc comment inConfigexplicitly limits coverage to "the /v1/subscribers/{id} path segment", so this is documented behaviour, but an operator enabling the flag to keep subscriber PII out of their log pipeline would still see subscriber IDs leaked through admin-plane access logs without any indication of the gap.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in db703e0.
scrub_pathnow hashes the path segment that follows anysubscriberssegment instead of matching the/v1/subscribers/prefix, so/admin/api/environments/{env_id}/subscribers/{subscriber_id}scrubs the subscriber id the same way the public route does (unit-tested both flag states, failing-first). TheConfigdoc comment now says the coverage spans the public and admin planes. The admin{env_id}segment stays raw deliberately: it is an instance-minted UUID, unlike theenvironmentquery param, which is the customer-chosen slug and is why the query scrub hashes it.