Skip to content

fix(id): redact subscriber keys from subscription Debug output (#13452) - #13486

Merged
dezren39 merged 1 commit into
mainfrom
lane-aaf-13452
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-aaf-13452

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What

BoardSubscription and SubscriptionStore in pkgs/id/src/boards/subscription.rs derived Debug, 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: manual Debug impl rendering "<redacted>" for subscriber; board, created_at, notify_mode and muted still render.
  • SubscriptionStore: manual Debug impl rendering only subscription_count.
  • Serialization and all behavior unchanged; no callers exist yet (slice 1), so nothing downstream is affected.
  • Regression test oracle_debug_output_never_renders_subscriber_keys asserts neither rendered form contains a subscriber key (the issue's probe, made permanent).

Verification (laptop, nix develop in pkgs/id)

  • Module suite: 10/10 pass, including the new regression test.
  • Full id lib suite (--all-features): 572 passed; the only 4 failures are the pre-existing hosted_export failures already tracked in id: 4 hosted_export tests fail on main (BlobCitationMismatch/MissingBlob) #13444, identical on pristine main.
  • rustfmt: no new diffs from this change (the file's two flagged hunks pre-date it on main).
  • Clippy: no findings in the touched file.

Get evidence
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

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.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 03ca989e-9b36-4fc7-bfdc-a4944a401281
Commits

Reviewing files that changed from the base of the PR and between c5bf676 and 3a06e60.

Files selected for processing: 1

  • pkgs/id/src/boards/subscription.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T17:07:35.045782Z 3a06e60 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 2d65edd into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-aaf-13452 branch November 23, 2026 17:06
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