Repository navigation
fix(sharing,mcp): drop or pseudonymize pull request rows in redacted payloads - #1365
Closed
ozymandiashh wants to merge 1 commit into
Closed
ozymandiashh wants to merge 1 commit into
ozymandiashh wants to merge 1 commit into
Conversation
…payloads current.pullRequests survived both sanitizeForSharing and redactProjectNames(include_project_names: false) verbatim, so each row's full GitHub url and owner/repo#123 label named the repository to a paired peer device and to a name-redacted MCP client — the same class of leak getagentseal#1337 closed for branch names. Sharing drops the block like it drops the project, session and per-branch rows. The MCP pass pseudonymizes url and label from the url (the aggregation key) with the same salted, domain-separated hash as the other pseudonyms, so rows referring to the same PR still line up and every number stays untouched. Closes getagentseal#1346
Member
|
Merged as #1431 (your commit rebased onto main, authorship unchanged). Thanks. |
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 #1346. Follow-up to #1337, same shape as #1321/#1325: one field group (
current.pullRequests), one test per pass.What leaked
current.pullRequestssurvived bothsanitizeForSharingandredactProjectNames(include_project_names: false)verbatim. EachPrRowcarries the full PRurl(the aggregation key) and anowner/repo#123label, so the repository owner and name reached a paired peer device and a name-redacted MCP client.Fix
urlandlabelwithpr-<6hex>, derived from the url via the same salted hash the project/branch/session pseudonyms use, domain-separated (pr:prefix) so a PR and a project sharing a name never collide; rows referring to the same PR still line up across calls, and every number (cost, calls, sessions, totals) stays untouched.include_project_names: trueis unchanged: real urls and labels.Tests
One per pass, mirroring the #1337 pattern: sharing asserts the block is gone and neither the url nor the label appears anywhere in the serialized payload; the MCP pass asserts the
pr-shape, label === url pseudonym, preserved numbers, no raw url anywhere, stability across calls, and verbatim pass-through wheninclude=true. 21/21 green in the two suites.