Repository navigation
docs(issues): [#3004] spec for masking the tracker key in tracker_client output - #3005
Conversation
… in tracker_client output Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
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 24 seconds. 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. |
[Low impact] This documentation-only PR appears safe to merge; the actual key-masking fix remains separate work. SummaryThis documentation-only PR defines how
Both previous Greptile concerns are addressed: the plan includes a keyed checker test, and the manual commands preserve the client's exit code. No new actionable issues found. Reviews (4) · Last reviewed commit: "docs(pr-reviews): [#3005] record review ..." · Reviewed by Greptile |
|
ACK cb24b60 |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at cb24b60bb1d772e81090a6269127b90a72898f7a. Recomputed from the bytes at this head, against the merge base ff3600f10; git merge-tree against develop ff3600f10 merges cleanly, and the merged tree is the head's own tree (develop is the merge base).
Process: a bug specification, governed by the repository skills create-issue and fix-bug, with open-pull-request for the PR. Every section of docs/templates/ISSUE.md, the bug sections included, is present, and the evidence file follows its template in substance.
The change against its claim: two new files, as the description says. Every path named exists. The quoted {err:?} and {response:?} texts are at http/client/mod.rs:19,21,23, clients/http/mod.rs:11,15 and health.rs:15,17,19, bytes().await? is at unified/http.rs:187,215, and udp.rs:107 is the unwrap. Both package names match their Cargo.toml, Cargo.lock pins reqwest 0.13.5, and R0's percent-encoded info-hash recomputes. The build commit the evidence names is on develop, and no tracker-client code changed between it and ff3600f10. The reqwest source line numbers could not be checked offline.
Consistency: spec-path, status, branch and every related artifact resolve; the files carry no Markdown links and add no dictionary words. The parent EPIC is not updated (F4).
Hygiene: one commit, with a Conventional subject in the [#N] form the repository uses and no body; author = committer; one attribution footer line (no rule in the tree on it). The description carries one attribution footer line too. git diff --check is clean, the commit-id check prints nothing, and the closing-keyword scan matches nothing in the title, the description or the commit.
Verdict: COMMENT. No finding blocks, but the two open review threads on ISSUE.md lines 165 and 246 have no reply and no audit record; F2 and F3 agree with them.
Findings (inline): F1 to F5 Minor (wrong struct named as the check source; no check or scrape regression test; M1's pipe hides the exit code; the EPIC #2758 table lacks this issue; no maintainer stop after the last test increment), F6 to F9 Nit, F10 Suggestion.
Checked, no finding: the SI-A (#2999) scope and its *** marker; ADR section 7; the #2768 leftover; the e2e runner logging the checker output; the NEXTEST_BIN_EXE_tracker_client lookup order; usage and configuration errors do not echo the URL; the branch name matches the frontmatter.
Checks
On the loop's compute node at this head, against the merge base ff3600f10 (receipt server-gates-kranich-1353): the repository's pre-commit gate and lint roster exit 0 (96 s wall). This pull request has no audit record yet, so there was nothing for the audit validator to check. The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: CheckerOutput is declared at console/tracker-client/src/console/clients/checker/checks/structs.rs:9 and named nowhere else in the Rust sources, while Checks in checks/http.rs:17 holds the url: Url field that line 37 fills from the checked URL, as F1 says. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: completed/success; CodeRabbit: completed/neutral; Greptile Review: completed/success". At posting, develop is ff3600f10.
There was a problem hiding this comment.
🟡 Changes recommended
The issue plan leaves known leak paths without regression coverage and omits required resource-cleanup, review-recording, and reliable exit-status verification procedures.
5 open issues
Specify regression-test resource ownership and cleanup · New Cover all identified leak paths in regression tests · New Record the test-design review and checkpoint each increment · New Capture the client exit status correctly in M1 and M2 · New Define and record the completion-review procedure · New
What changed in this PR
This documentation-only PR specifies issue #3004 under EPIC #2758: preventing tracker_client from exposing private HTTP tracker keys in diagnostics and results. Implementation is deferred to a separate PR.
Changes:
- Defines key masking, affected output paths, acceptance criteria, and regression-test plans.
- Records pre-fix reproductions for
http announce,http scrape, andcheck. - Establishes manual verification scenarios for failed and successful requests.
| File | Description |
|---|---|
docs/issues/open/3004-2758-tracker-client-mask-tracker-key/manual-verification-evidence.md |
Records commands and output demonstrating the existing key leaks. |
docs/issues/open/3004-2758-tracker-client-mask-tracker-key/ISSUE.md |
Defines the fix’s scope, implementation plan, and verification requirements. |
Review effort: Balanced
Name Checks.url as the check source, add black-box tests for http scrape and check, keep the exit status in M1, spell out the progressive test loop and the maintainer stop, name torrust#2984 and torrust#3006, record the e2e runner configuration log as out of scope, state the public-issue decision, and mark the reproduction outcome. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…k-path tests to the spec Define the ownership and deadlines of the regression-test resources, add library-seam tests for a non-2xx reply and a failed body read, and say how the implementation completion review is recorded. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 0cb4c9cca794290418898529ca4585d83a1ed57c. Recomputed from the bytes at this head, against the merge base ff3600f10; git merge-tree against develop ff3600f10 merges cleanly, and the merged tree is the head's own tree.
Process: as in round 1 (create-issue, fix-bug, open-pull-request), with process-pr-review for the new audit record.
The change against its claim: the three new commits fast-forward cb24b60bb, and each body matches its own diff. Round-1 findings at this head: F1 to F3 and F5 to F10 are fixed. Checks.url is at checks/http.rs:17,37 and health.rs:31, and CheckerOutput is still unused. The black-box scrape and check tests, M1's redirect, the test loop, T5 and the Out of Scope notes are all in place. F4 is deferred to PR #3007, with a reply and an audit row; the EPIC table here is unchanged by design. Newly checked: build_announce_url and build_scrape_url exist (http/client/mod.rs:202,208), DEFAULT_NETWORK_TIMEOUT bounds the black-box children, and existing tests run the binary with .output().
Audit record: the validator's own logic, run offline on the captured comments, reports 17 rows, 3 log entries and 0 failures. Every reply sits on its own thread, all 17 threads are resolved, and no review postdates the audit commit.
Hygiene: three commits, each with a Conventional subject in the [#N] form; author = committer; one attribution footer line each (no rule in the tree on it). The description carries one attribution footer line too, and now has a Validation section. git diff --check is clean, the commit-id check prints nothing, and the closing-keyword scan matches nothing in the title, the description or the commits.
Verdict: APPROVE. No finding blocks.
Findings (inline): F11 Nit (two places for the body-read test), F12 Nit (the log's reply window), F13 Suggestion (confirm that a body-read error carries the URL).
Checked, no finding: the closed-port, responder, child-process and deadline rules against the existing tests; the new cspell:ignore words; both last-updated-utc values against the commit times.
Checks
On the loop's compute node at this head, against the merge base ff3600f10 (receipt server-gates-kranich-1359): the repository's pre-commit gate and lint roster exit 0 (142 s wall), and the audit validator passes on this PR's record (17 rows, 3 log entries, 0 failures). The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: the specification now names Checks.url (checks/http.rs:17, filled at :37) as the field that carries the key in check output and records that CheckerOutput is not used anywhere, so F1 is fixed. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "CodeRabbit: completed/neutral; Greptile Review: completed/success". At posting, develop is ff3600f10.
|
ACK 0cb4c9c — round-1 fixes, the spec's code references and the 17-row audit record with its replies recomputed at this head |
…client The body-read error is built where bytes() is called, in the console client, so its regression test is a black-box test against the existing fake HTTP tracker. Cite the reqwest 0.13.5 line that adds the URL to a body-read error. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 4b74ca24086238526e7c3bd8e35068448990a541. Recomputed from the bytes at this head, against the merge base ff3600f10; git merge-tree against develop ff3600f10 merges cleanly, and the merged tree is the head's own tree.
Process: as before (create-issue, fix-bug, open-pull-request, process-pr-review).
The change against its claim: two commits fast-forward 0cb4c9cca, and each body matches its own diff. Round-2 findings (audit F18 to F20) are fixed. The local responder now covers only the non-2xx case, and the body-read case is a black-box test against the existing fake HTTP tracker. The log has an append-only correction, and the spec cites the reqwest line that attaches the URL to a body-read error. That cites a crate source outside this lane, which was not recomputed here, and it answers my round-2 question. F4 is still deferred to PR #3007. All other rows are unchanged.
Audit record: the validator's own logic, run offline on the captured comments, reports 20 rows, 5 log entries and 0 failures. Every reply sits on its own thread, all 20 threads are resolved, and no review postdates the audit commit.
Hygiene: both commits carry a Conventional subject in the [#N] form; author = committer; one attribution footer line each (no rule in the tree on it). The description is unchanged and carries one attribution footer line. git diff --check is clean, and the closing-keyword scan matches nothing. The commit-id check prints PR-branch commit id: 0cb4c9cca (F18).
Verdict: APPROVE. No finding blocks. The merge tool merges with --no-ff, so F18's cited id stays reachable unless the branch is rebased.
Findings (inline): F18 Minor (a PR-branch commit id in the audit), F19 Nit (an AC2 red case that the planned test does not run), F20 Nit (log entries stamped before the commits they report).
Checked, no finding: last-updated-utc against the commit time; the bytes() sites cited; the reply times against the correction entry.
Checks
On the loop's compute node at this head, against the merge base ff3600f10 (receipt server-gates-kranich-1363): the repository's pre-commit gate and lint roster exit 0 (92 s wall), and the audit validator passes on this PR's record (20 rows, 5 log entries, 0 failures). The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: the round-2 entry of the Processing Log at docs/pr-reviews/pr-3005-review/PR-REVIEW.md:336 names the branch commit 0cb4c9cca by id, as F18 says. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "CodeRabbit: completed/neutral; Greptile Review: completed/success". At posting, develop is ff3600f10.
|
ACK 4b74ca2 — round-2 fixes and the 20-row audit record with its replies recomputed at this head |
…AC2 red case Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 22aa758b53be256225502820b212ebc75eda90de. Recomputed from the bytes at this head, against the merge base ff3600f10; git merge-tree against develop ff3600f10 merges cleanly, and the merged tree is the head's own tree.
Process: as before (create-issue, fix-bug, open-pull-request, process-pr-review).
The change against its claim: two commits fast-forward 4b74ca240, and each body matches its own diff. The round-3 findings (audit F21 to F23) are fixed. The body-read test now also runs check against the same fake, the only command that reaches checks/http.rs:76,94, and asserts no Debug text. The round-2 log entry names the reviewed head by its subject. The one-line in-place change swaps only the id, and a correction entry records it; restoring the entry would bring the forbidden id back, so this is the right trade. A second correction entry gives the real commit times. F4 is still deferred to PR #3007. All other rows are unchanged.
Audit record: the validator's own logic, run offline on the captured comments, reports 23 rows, 7 log entries and 0 failures. Every reply sits on its own thread, all 23 threads are resolved, and the round-3 review (14:54:34Z) predates the audit commit (14:57:26Z).
Hygiene: both commits carry a Conventional subject in the [#N] form; author = committer; one attribution footer line each (no rule in the tree on it). The description is unchanged and carries one attribution footer line. git diff --check is clean, the commit-id check now prints nothing, and the closing-keyword scan matches nothing.
Verdict: APPROVE. No finding blocks.
Findings: none.
Checked, no finding: last-updated-utc against the commit time; checks/http.rs:34 clearing the path; the new log entries against the reply and commit times; the corrected entry against its old text.
Checks
On the loop's compute node at this head, against the merge base ff3600f10 (receipt server-gates-kranich-1366): the repository's pre-commit gate and lint roster exit 0, and the audit validator passes on this PR's record (23 rows, 7 log entries, 0 failures). The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: the body-read test in the specification now also runs tracker_client check against the same fake tracker, the only command that reaches the checker's bytes() calls, and states that this run can be red only on AC2, so F19 is fixed. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "CodeRabbit: completed/neutral; Greptile Review: completed/success". At posting, develop is ff3600f10.
|
ACK 22aa758 — round-3 fixes and the 23-row audit record with its replies recomputed at this head |
|
ACK 22aa758 |
…d the #2770 scope 744076d docs(pr-reviews): [#2758] record round 6 in the PR 3007 review audit (josecelano-bot) 8044ba1 docs(issues): [#2758] clarify three EPIC and #2770 wordings from Copilot's PR 3007 review (josecelano-bot) 4475b0f docs(pr-reviews): [#2758] record round 5 in the PR 3007 review audit (josecelano-bot) 1b20072 docs(pr-reviews): [#2758] cite the F18 commit by subject in the PR 3007 audit (josecelano-bot) 0308d0c docs(pr-reviews): [#2758] record Copilot's review of the round 4 fix head (josecelano-bot) 2913274 docs(pr-reviews): [#2758] record round 4 in the PR 3007 review audit (josecelano-bot) e5aa757 docs(issues): [#2758] update the EPIC total in the open child specs to 13 (josecelano-bot) e9ac8f6 docs(pr-reviews): [#2758] record round 3 in the PR 3007 review audit (josecelano-bot) d638d9a docs(issues): [#2758] say the EPIC Order column is a row number, not the schedule (josecelano-bot) b273c14 docs(pr-reviews): [#2758] record round 2 in the PR 3007 review audit (josecelano-bot) a8f7936 docs(issues): [#2758] address round 2 of the PR 3007 review (josecelano-bot) 72acdbe docs(pr-reviews): [#2758] add the PR 3007 review audit (josecelano-bot) 48c289d docs(issues): [#2758] address da2ce7's review 6023338079 of PR 3007 (josecelano-bot) a46d164 docs(issues): [#2758] add #3004 and #3006 to the EPIC and the #2770 scope (josecelano-bot) Pull request description: Spec-only bookkeeping for EPIC #2758 after two sub-issues were created from the #2768 leftovers. - **EPIC table:** adds row 12, #3004 (bug: `tracker_client` writes the private tracker key in diagnostics and results; spec PR #3005), and row 13, #3006 (the schema version rule for `stdout-result-data` results). - **Order:** the maintainer set #3004 first (bugs and security fixes before other work), then #2766, #2769, #3006, then #2763 and #2767, and #2770 last. #3006 amends the global contract ADR text, which #2770 also edits, so it merges before #2770; the EPIC's ADR note says so. - **#2770 scope:** now accounts for #3004 and #3006. Related to #2758, #3004 and #3006. No code changes; `linter all` and the pre-commit checks pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Documentation** * Updated the CLI output contract migration plan with two additional work items, revised delivery sequencing, and clarified prerequisites for closing the plan. * Updated issue tracking to reflect the expanded scope, revised ordering, and current issue count. * Added a review record documenting findings, resolutions, verification results, review history, and thread completion rules. <!-- end of auto-generated comment: release notes by coderabbit.ai --> ACKs for top commit: josecelano: ACK 744076d Tree-SHA512: 3f455e4be06f8db3a371927c66547012f996ad317dda3992043e2f492ad7baac6ecb5150420b9b73f1e3984a0fb80586e839c2dc635ee336303e2ba87ecc1b49

Related to #3004
Spec-only PR. It adds the issue specification for #3004 (sub-issue of EPIC #2758):
tracker_clientwrites the key of a private HTTP tracker (/announce/<key>,/scrape/<key>) to stderr inruntime_failurerecords and to stdout incheckresults. The fix will mask only the key segment as****(section 7 of the CLI output contract) and stop writingreqwest::Errortext that carries the URL.Changes
docs/issues/open/3004-2758-tracker-client-mask-tracker-key/ISSUE.md: the bug specification (scope, output paths to audit, regression test strategy, manual scenarios M1 to M4, acceptance criteria).docs/issues/open/3004-2758-tracker-client-mask-tracker-key/manual-verification-evidence.md: the reproduction ondevelop(R0ahttp announce, R0bhttp scrape, R0ccheck).Re-checked against
developff3600f10before opening: theDisplaytext ofreqwest::Erroralso carries the URL (reqwest 0.13.5 appendsfor url (<url>)), andUnsuccessfulResponseprints the URL through theDebugofreqwest::Response; both are in the spec. No file overlap with EPIC #2993 / #2999.Validation
linter allexits 0 (run before the first commit).run-pre-commit-checks: frontmatter, skill layout,cargo machete,cargo deny check bans, nightlyrustfmt,linter all, doc tests) passed on each commit of this PR.developff3600f10; review round 1 findings are recorded indocs/pr-reviews/pr-3005-review/PR-REVIEW.md.No code changes; implementation follows in a separate PR after this one is merged.
🤖 Generated with Claude Code