Go client: typed Unauthenticated vs PermissionDenied errors (R21-O22 / CLI-09) #198

Open
opened 2026-11-06 15:25:06 -05:00 by dohertj2 · 0 comments
Owner

Go wraps every RPC failure in GatewayError; there is no typed Unauthenticated vs PermissionDenied mapping, though docs/ClientLibrariesDesign.md requires one.

Source: archreview/2026-10-21/remediation/00-tracking.md row R21-O22 (cycle-1 CLI-09)

Next step (from the tracker): Add sentinel or typed errors usable with errors.Is; keep credential redaction.

Current-state evidence: the row is still Open/Deferred in the latest (2026-10-21) tracker, and a code check on local main @ 8c0a51d (2026-11-06) found it still present unless noted below.

Go wraps every RPC failure in `GatewayError`; there is no typed `Unauthenticated` vs `PermissionDenied` mapping, though `docs/ClientLibrariesDesign.md` requires one. Source: `archreview/2026-10-21/remediation/00-tracking.md` row R21-O22 (cycle-1 CLI-09) Next step (from the tracker): Add sentinel or typed errors usable with `errors.Is`; keep credential redaction. Current-state evidence: the row is still `Open`/`Deferred` in the latest (2026-10-21) tracker, and a code check on local `main` @ `8c0a51d` (2026-11-06) found it still present unless noted below.
dohertj2 added the area:client-gopriority:p2type:review-findingmigrated labels 2026-11-06 15:25:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#198