Skip to content

docs(issues): [#2993] spec for keeping secrets out of errors, logs and client replies - #2994

Open
josecelano-bot wants to merge 13 commits into
torrust:developfrom
josecelano-bot:2993-secrets-and-client-error-text-spec
Open

josecelano-bot wants to merge 13 commits into
torrust:developfrom
josecelano-bot:2993-secrets-and-client-error-text-spec

Conversation

@josecelano-bot

Copy link
Copy Markdown
Contributor

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

josecelano-bot and others added 2 commits November 22, 2026 13:25
…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>
@josecelano josecelano self-assigned this Nov 22, 2026
@josecelano
josecelano requested review from da2ce7 and a balanced review from Copilot November 22, 2026 13:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
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

josecelano-bot and others added 4 commits November 22, 2026 14:07
…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>
@josecelano

Copy link
Copy Markdown
Member

ACK 82008cf

@josecelano

Copy link
Copy Markdown
Member

ACK 226ab9c

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

josecelano-bot and others added 7 commits November 22, 2026 14:47
…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>

This branch has not been deployed

No deployments
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.

3 participants