fix patch gateway feat/kn-auth-lane-d-propose-path-fix #2 / 2
aaronrene · 9 days ago · Aug 24, 2026 · Diff

fix(gateway): agent propose auth uses effectiveRequestPath

getUserId passed req.path suffix (/proposals) to agentScopesPermitMethod while the allowlist expects api/v1/proposals. GET reads worked; POST /api/v1/proposals returned 401 for valid agent_access tokens. Align with effectiveRequestPath used by proxyToCanister. Regression test added.

sha256:9625657f940a27139461a0a024f60df0d378b5d16fb5ddcd345cb5efbca98b4b sha
~1 symbols
sha256:06b6a547c0647893776127cff362352bc4f7f5ac1fe6191b0ee0d98b87da28a6 snapshot
~1
symbol modified
0
dead code introduced
Semantic Changes 1 symbol
~ hub/gateway/server.mjs .mjs 1 symbol modified

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:9625657f940a27139461a0a024f60df0d378b5d16fb5ddcd345cb5efbca98b4b --body "your comment"