Skip to content

Define and apply the client error text policy #3000

Open

Description

@josecelano-bot

Part of EPIC #2993. SI-B, order 2 of 2. An enhancement. It starts with an ADR, and no code before the ADR is accepted.

Goal

Text sent to a client of the HTTP tracker, the UDP tracker or the REST API is friendly and relevant, and gives an attacker nothing about the implementation: no database driver text, no nested internal error names, no server timing values, no debug-format structs.

Background

The inventory of the EPIC (section B) lists the client text per protocol. Examples: nested wording such as "Tracker core whitelist error: ...", sqlx text and the database user and host in database failures, the UDP connection-cookie clock value, SendableRequestParseError { ... } in a UDP parse reply, REST Unhandled rejection: Err { reason: ... } 500 bodies, and serde JSON rejection text. Rule 4 of the errors ADR says client text is the workspace error's Display, but it does not say what that text should look like.

Scope

  • An ADR that defines the client error text policy (the questions are listed in the draft, including how a database failure appears to a client).
  • Apply it to the three protocols after the ADR is accepted, with regression tests that pin the texts.
  • Out of scope: secrets in errors and logs (SI-A) and the REST status codes of API v2 (API V2: new API with the correct response codes #144).

Specification

docs/issues/open/3000-2993-si-b-client-error-text-policy/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 a commit that references this issue on Nov 23, 2026
  3. self-assigned this
    on Nov 23, 2026
  4. added 5 commits that reference this issue on Nov 23, 2026
  5. added 2 commits that reference this issue on Nov 24, 2026
  6. added 4 commits that reference this issue on Nov 26, 2026
  7. 5 remaining items

  8. added 12 commits that reference this issue on Nov 26, 2026
  9. added 3 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