Repository navigation
docs(issues): [#2993] spec for keeping secrets out of errors, logs and client replies - #2994
josecelano-bot wants to merge 13 commits into
Conversation
…logs and client replies Adds the EPIC specification: an inventory of the secrets held by errors and written to logs, of what each protocol sends a client, and of the skills, ADRs and documents about handling secrets, plus the maintainer's decisions and two sub-issues (secrets, and the client error text policy). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
7 open issues
The inventory numbering is inconsistent: A10 and A11 are introduced later but not included in the… · New The inventory numbering is inconsistent: A10 and A11 are introduced later but not included in the… · New The inventory numbering is inconsistent: A10 and A11 are introduced later but not included in the… · New This excerpt includes the phrase 'Key must be have 32 chars', which reads like a grammatical error.… · New Terminology is inconsistent between 'Subissues', 'sub-issue', and 'subissue'. Recommend… · New Terminology is inconsistent between 'Subissues', 'sub-issue', and 'subissue'. Recommend… · New Terminology is inconsistent between 'Subissues', 'sub-issue', and 'subissue'. Recommend… · New
What changed in this PR
Adds an EPIC specification for #2993 to prevent secrets from leaking via errors/logs/client responses and to define a policy for safe client-facing error text.
Changes:
- Introduces a new EPIC spec documenting current leak inventory and reproduction evidence.
- Defines scope split into SI-A (secrets leak fixes) and SI-B (client error text policy via ADR).
- Records maintainer decisions, risks, and delivery strategy for the EPIC.
| File | Description |
|---|---|
| docs/issues/open/2993-secrets-and-client-error-text/EPIC.md | New EPIC spec documenting leak inventory, scope, and plan for sub-issues to remove secrets from outputs and standardize safe client error text. |
Review effort: Lite
…f the EPIC Adds drafts for SI-A (keep secrets out of errors, logs and output) and SI-B (define and apply the client error text policy), links them from the EPIC table, and corrects the inventory: the health-check API server has the same request trace layer, though its routes carry no secret. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…and state what was reproduced Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…rbatim Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Round 1: review 6012624473 by Copilot, seven inline comments (F1 to F7). F1 and F4 are fixed by earlier commits of this branch, F5 needs no change (template text), and F2, F3, F6 and F7 repeat F1 or F5. All seven threads have a reply and are resolved. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
ACK 82008cf |
|
ACK 226ab9c |
There was a problem hiding this comment.
🟡 Changes recommended
The plans do not adequately cover sanitization of secret-bearing database errors and contain gaps in protocol regression scenarios, reproduction evidence, and required incremental test-review checkpoints.
5 open issues
Sanitize secret-bearing database errors and update scope references · New Require incremental test-design reviews and maintainer checkpoint · New Test tracker errors with failing persisted-download reads · New Add progressive test-development reviews and maintainer checkpoint · New Record and link reproducible manual verification evidence · New
7 resolved since last review
The inventory numbering is inconsistent: A10 and A11 are introduced later but not included in the… The inventory numbering is inconsistent: A10 and A11 are introduced later but not included in the… The inventory numbering is inconsistent: A10 and A11 are introduced later but not included in the… Terminology is inconsistent between 'Subissues', 'sub-issue', and 'subissue'. Recommend… Terminology is inconsistent between 'Subissues', 'sub-issue', and 'subissue'. Recommend… Terminology is inconsistent between 'Subissues', 'sub-issue', and 'subissue'. Recommend… This excerpt includes the phrase 'Key must be have 32 chars', which reads like a grammatical error.…
Review effort: Balanced
…entory as manual verification evidence Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… a failing persisted-downloads read in SI-B Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…t to SI-A as inventory item A12 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ew and maintainer checkpoint in both sub-issue drafts Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…eview round 2) Conflict in cspell.json: both evidence ignore paths are kept (torrust#2916 from develop, torrust#2993 from this branch).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…orrust#2912 merged SI-4 (torrust#2916) removed the source locations from the tracker-core errors. Updates the tracker-core line references, records a re-run on a build that includes it (evidence V9), and drops the wait-for-SI-4 notes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>


Related to #2993
Adds the specification of EPIC #2993, which keeps secrets out of errors, logs and client replies and makes client error text safe. It is spec-only: no code changes. The EPIC is standalone and linked to EPIC #2912; it is not a sub-issue of it.
The spec holds an inventory verified against the tree and reproduced on a running tracker: the peer key in the HTTP
failure reason, in the request logs of both servers and in a DEBUG line; the admin token in the REST request log and in the REST client's transport errors; configuration errors that print a numeric password or token; and the text each protocol sends a client for each error family, including database driver text, the server clock in UDP cookie errors and a Rust type name in UDP parse errors. It also inventories the skills, ADRs and documents about handling secrets, and records the maintainer's decisions of 2026-11-22: an EPIC with two sub-issues, request-URI logging in scope, standalone from #2912, database text for clients decided in the ADR of the second sub-issue, and the principle to help the legitimate user as much as possible without revealing the secret.Review focus: whether the scope split (secrets versus client text) and the proposed peer-key messages match what you want, and whether the SI-5 (#2917) interaction noted in the spec should be resolved by SI-5 or by the secrets sub-issue.
Checks run: the repo pre-commit gate (
linter all, frontmatter validator, cspell and the rest), all passing, and the commit-id check, empty.🤖 Generated with Claude Code