Repository navigation
Description
Part of EPIC #2993. SI-A, order 1 of 2. A bug: SI-4 of EPIC #2912 (#2916) has merged, so it can start once its specification is merged.
Goal
No error value keeps a peer authentication key or a REST API admin token, no error message prints one, and no log line written for a real request or a configuration failure holds one. A legitimate user still gets a message that tells them what to fix (for example the length of the key they sent).
Background
The inventory of the EPIC (items A1 to A12) lists every case found in the tree, reproduced on a running tracker. The cases that are secrets: the peer key echoed by the "not registered" failure and by the REST key errors (A1, A2), the request-URI logs of the HTTP tracker, the REST API and the health-check API (A3, A4), the generated key in a debug log (A5), the REST client (A6, A8), the Key type formatting in the clear (A7), configuration errors that print a numeric secret (A10), a MySQL duplicate-entry message that holds the peer key (A12), and the documentation that teaches ?token= (A9).
Scope
- Remove the secret from the errors and the REST responses that keep or print it, with messages that state facts about the client's own input and the credential state, never the secret (the proposal is in the EPIC).
- Redact the request URI in the request log of the three servers with one shared, tested function and a custom span builder.
- Remove the generated-key debug lines, give
Keya redactingDebug, fix the REST client, make configuration and database errors that hold a secret print none, and update the documentation and thehandle-secretsskill. - Out of scope: wording of client text for non-secret errors (SI-B), source locations (EPIC EPIC: Remove source locations from errors #2912), authentication behaviour.
Specification
docs/issues/open/2999-2993-si-a-keep-secrets-out-of-errors-and-logs/ISSUE.md (added by the spec-only PR of #2993, #2994).
Activity
docs(issues): [torrust#2993] move the SI-A and SI-B specifications to…
Merge #2994: docs(issues): [#2993] spec for keeping secrets out of er…
Merge #3005: docs(issues): [#3004] spec for masking the tracker key i…
docs(issues): [torrust#2993] recheck the EPIC and sub-issue specs aga…
docs(issues): [torrust#2999] cover the POST path rejection, malformed…
docs(issues): [torrust#2999] name A12 once in the SI-A ownership sent…
Merge #3012: fix(tracker-client): [#3004] do not write the tracker ke…
Merge #3014: docs(issues): [#2993] recheck the EPIC and sub-issue spe…
docs(issues): [#2387] record order B′ and recheck the EPIC specs agai…
Merge #3024: docs(issues): [#2387] record order B′ and recheck the EP…
Merge #3025: docs(issues): [#2993] record the overlap with EPIC #2387
fix(axum-server): [torrust#2999] decode query and path names before r…
docs(pr-reviews): [torrust#2999] add the PR 3042 review audit
13 remaining items
fix(rest-api-client): [#2999] keep the token and the key out of clien…
fix(configuration): [#2999] do not print the value of a secret option…
fix(tracker-core): [#2999] keep the database server message out of ke…
docs(secrets): [#2999] teach the Authorization header and the peer-ke…
docs(issues): [#2999] record the final recheck and the acceptance evi…
Merge torrust#3042: fix(secrets): [torrust#2999] keep secrets out of …
docs(issues): [torrust#2999] answer the review of the close-out pull …
docs(pr-reviews): [torrust#2999] add the PR 3050 review audit
docs(pr-reviews): [torrust#2999] correct three statements of the revi…
docs(pr-reviews): [torrust#2999] record the second review of the clos…
chore(issues): [#2999] archive closed issue #2999 spec to docs/issues…
Merge #3050: chore(issues): archive closed issue #2999 spec to docs/i…
docs(adrs): [torrust#3000] keep the v1 status of a duplicate key and …
docs(adrs): [torrust#3000] keep the v1 status of a duplicate key and …