Heimdall start refusal: log the HTTP status and Heimdall's error code #79
Loading…
Reference in a new issue
No description provided.
Delete branch "heimdall/start-refusal-status"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
HeimdallAuthService.StartAsyncthrewHeimdall rejected the auth start.with nothing to tell a wrong app secret (401app_auth_required) from a Heimdall fault. The exception, and so theHeimdall start refused:journal line, now readsHeimdall rejected the auth start (HTTP 401, app_auth_required).The error code is shown only when Heimdall's body has a string
errorthat is 1-64 chars of[a-z0-9_]; any other body text (detail, non-JSON, nested, hostile) is never echoed, and the app secret is never involved.Test first:
A_refused_start_logs_the_status_and_a_well_formed_error_code_and_nothing_else_from_the_body(5 cases) failed before the change; the existing refusal theory now expects(HTTP 500). Heimdall-filtered suite: 155 pass. Not deployed.🤖 Generated with Claude Code