Skip to content

Keep secrets out of errors, logs and output #2999

Done

Description

@josecelano-bot

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 Key a redacting Debug, fix the REST client, make configuration and database errors that hold a secret print none, and update the documentation and the handle-secrets skill.
  • 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

  1. added a commit that references this issue on Nov 23, 2026
  2. added 2 commits that reference this issue on Nov 23, 2026
  3. self-assigned this
    on Nov 23, 2026
  4. added 3 commits that reference this issue on Nov 23, 2026
  5. added 5 commits that reference this issue on Nov 24, 2026
  6. added 2 commits that reference this issue on Nov 24, 2026
  7. 13 remaining items

  8. added 5 commits that reference this issue on Nov 25, 2026
  9. added a commit that references this issue on Nov 25, 2026
  10. added 4 commits that reference this issue on Nov 25, 2026
  11. added 2 commits that reference this issue on Nov 25, 2026
  12. added 2 commits that reference this issue on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions