Return not-ready for invalid Gitea current-user payload #77

Closed
opened 2026-08-06 05:46:45 +00:00 by rockachopa · 0 comments
Member

Evidence: readiness() indexes user["login"] after current_user() without validating the response shape. A successful upstream JSON null or non-object payload therefore raises after the guarded request and becomes an unhandled 500 instead of the documented 503 not-ready response.

Acceptance criteria:

  • /readyz returns 503 when Gitea current-user payload is not an object with a usable login.
  • Response does not expose an internal traceback.
  • Add a behavioral regression test.
Evidence: `readiness()` indexes `user["login"]` after `current_user()` without validating the response shape. A successful upstream JSON `null` or non-object payload therefore raises after the guarded request and becomes an unhandled 500 instead of the documented 503 not-ready response. Acceptance criteria: - `/readyz` returns 503 when Gitea current-user payload is not an object with a usable login. - Response does not expose an internal traceback. - Add a behavioral regression test.
timmy was assigned by rockachopa 2026-08-06 05:46:45 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#77
No description provided.