Repository navigation
chore(release): promote mpass edge-secret header trust to foss-main (FOSS-776) - #59
Merged
Merged
Conversation
… the token ProxyAuthMiddleware now ignores X-Auth-Request-* unless the request carries MPASS_EDGE_SECRET in X-Mpass-Edge-Secret, which Traefik injects on the SSO router. With SMB_CORPORATE_ID set, the forwarded token is verified against the Cognito and mpass-auth-proxy JWKS (issuer, expiry, audience) instead of being decoded unverified (FOSS-776).
…ty logs Requests through Traefik carry X-Mpass-Edge-Secret and X-Auth-Request-Access-Token; API-key calls (plane-mcp) would otherwise persist both in api_activity_logs (FOSS-776).
…s errors Adds MPASS_COGNITO_ISSUER_URL (region and pool id are the fallback), ignores CHANGE_ME_ placeholders, logs an error when the corporate gate has no issuer or client id, maps non-JSON or reset JWKS fetches to a 403, and backs off 30s per issuer after a failed fetch with a 2s timeout (FOSS-776).
…ion refresh wait for in-flight jwks
fix(auth): trust mpass identity headers only from the edge and verify the token
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
.envkeys in place (openssl rand -hex 32, one line each, checked withgrep -c '^KEY=.'), then MCP images, then app images. This image ignores every mPass identity header without its edge secret, so a missing key turns SSO off for this app..env) and FOSS-788 (askii).Testing
13d7268(tag v26.11.1-rc.1), bundledcd478e9d2:X-Auth-Request-*sent straight to the app on the Docker network: refused with no secret and with a wrong one, accepted with the correct one.