Repository navigation
fix(id): redact subscriber keys from subscription Debug output (#13452) - #13486
Merged
Merged
Conversation
BoardSubscription and SubscriptionStore derived Debug, which rendered
the subscriber's canonical Ed25519 key — and for the store, the entire
keyed map: every subscriber with every board they follow. That is the
enumeration surface the module's privacy invariant (oracle invariant 4,
design id5862 Decision 1) forbids by API shape; one {:?} in a log line
would leak the follower graph.
Both types now have manual Debug impls: BoardSubscription renders
"<redacted>" for the subscriber, SubscriptionStore renders only a
subscription count. Serialization is unchanged. Adds the regression
test oracle_debug_output_never_renders_subscriber_keys asserting no
subscriber key appears in either rendered form.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 12 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 23, 2026
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.
What
BoardSubscriptionandSubscriptionStoreinpkgs/id/src/boards/subscription.rsderivedDebug, rendering subscriber Ed25519 keys — for the store, the entire keyed map (every subscriber with every board they follow). That is exactly the enumeration surface the module's privacy invariant (oracle invariant 4, design id5862 Decision 1) forbids by API shape; one{:?}on a log path would leak the follower graph (issue #13452).Change
BoardSubscription: manualDebugimpl rendering"<redacted>"forsubscriber; board, created_at, notify_mode and muted still render.SubscriptionStore: manualDebugimpl rendering onlysubscription_count.oracle_debug_output_never_renders_subscriber_keysasserts neither rendered form contains a subscriber key (the issue's probe, made permanent).Verification (laptop, nix develop in pkgs/id)
idlib suite (--all-features): 572 passed; the only 4 failures are the pre-existinghosted_exportfailures already tracked in id: 4 hosted_export tests fail on main (BlobCitationMismatch/MissingBlob) #13444, identical on pristine main.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.