You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Define and apply the client error text policy #3000
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.
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…
docs(issues): [torrust#2993] recheck the EPIC and sub-issue specs aga…
docs(issues): [torrust#3000] split the health-check reply statuses an…
docs(issues): [torrust#3000] limit the driver-text criterion to the s…
docs(issues): [torrust#3000] add the UDP health-check failure texts
docs(issues): [torrust#3000] tell the UDP parse-error reply and event…
Merge #3014: docs(issues): [#2993] recheck the EPIC and sub-issue spe…
Merge #3042: fix(secrets): [#2999] keep secrets out of errors, logs a…
docs(adrs): [torrust#3000] keep the v1 status of a duplicate key and …
docs(adrs): [torrust#3000] add the client error text policy ADR
docs(issues): [torrust#3000] record the ADR draft (T1) in the SI-B sp…
docs(adrs): [torrust#3000] keep the v1 status of a duplicate key and …
5 remaining items
docs(pr-reviews): [torrust#3000] record the CodeRabbit review round o…
docs(pr-reviews): [torrust#3000] record the reply that preceded the a…
docs(pr-reviews): [torrust#3000] name the source review of finding F1…
docs(adrs): [torrust#3000] require the request span to declare reques…
docs(pr-reviews): [torrust#3000] record the third review round of da2…
docs(pr-reviews): [torrust#3000] record the three CodeRabbit follow-u…
docs(issues): [torrust#3000] record the decision on secrets in copied…
docs(adrs): [torrust#3000] list the issues as quoted issue entries in…
docs(pr-reviews): [torrust#3000] record the fourth review round of da…
docs(pr-reviews): [torrust#3000] cite the approved head by commit sub…
docs(pr-reviews): [torrust#3000] record finding F21 of the fourth rev…
docs(issues): [torrust#144] address da2ce7 review: state today's v1 b…
Merge #3063: docs(adrs): [#3000] add the client error text policy ADR
docs(issues): [#144] record EPIC state and inputs reported by SI-B
Merge #3075: docs(issues): [#144] record EPIC state and inputs report…