Repository navigation
Keep the oMLX master API key server-side in browser admin flows #5743
NikolayGusev-astra
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Context
The admin settings and stats endpoints no longer return the master API key after #5496, but two authenticated browser flows still copy the long-lived credential out of the server:
localStorage;/admin/auto-loginwith the key in the URL query.Earlier reports #924 and #929 describe the same trust-boundary problem. The remaining question is the preferred browser-auth contract, not whether settings GETs should reveal the key.
Proposed contract
auto|always|neverSecure policy.autouses the ASGI request scheme only.Proposed review split
To keep each change below the large-PR threshold, the implementation is split into two independent PRs:
The two PRs are based independently on
main. Each part has focused negative tests; together they preserve the current management API contract while keeping the master credential server-side.Compatibility
All reactions