fix patch gateway feat/phase-2g-bundle
AI Agent git-import/068377df · 92 days ago · Apr 25, 2026 · Diff

fix(gateway): send X-Gateway-Auth on hosted proposal enrich and review-hints

Phase-0 canister gateway auth requires X-Gateway-Auth on all HTTP requests when gateway_auth_secret is set. The main proxy already merged canisterAuthHeaders(); direct canister fetches in proposal-enrich-hosted and proposal-review-hints-async did not, causing 403 GATEWAY_AUTH_REQUIRED surfaced as upstream/502.

- Add hub/gateway/canister-auth-headers.mjs and reuse from server + proposal jobs - Include canister error body snippets on failed proposal GET for diagnostics - Tests: canister auth helper; stored LLM prefs vs env override

sha256:86ff51d37c9c102a52c3bf4247faefa2dc48e00641a9c8ce8633a355f0905e56 sha
sha256:52c73332c9bb07af86d30071ba214b494764072ca79b41e87eb0a26d7d9672b5 snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:86ff51d37c9c102a52c3bf4247faefa2dc48e00641a9c8ce8633a355f0905e56 --body "your comment"