Skip to content

chore(release): promote mpass edge-secret header trust to foss-main (FOSS-776) - #59

Merged
UsamaSadiq merged 6 commits into
foss-mainfrom
foss-sandbox
Nov 13, 2026
Merged

UsamaSadiq merged 6 commits into
foss-mainfrom
foss-sandbox

Conversation

@UsamaSadiq

Copy link
Copy Markdown
Collaborator

Description

  • Promotes foss-sandbox to foss-main for production.
  • fix(auth): trust mpass identity headers only from the edge and verify the token #58: Closes FOSS-776. Plane trusts mPass identity headers only with the Traefik edge secret and verifies the forwarded token's signature (RS256, issuer, audience, JWKS cache with 24h stale grace) for the corporate-ID check. The edge secret and access token are redacted in API activity logs.
  • Part of one platform-wide train: foss-server-bundle main promotion plus the plane, outline, outline-mcp-server, zammad, zammad-mcp-server, twenty, chatwoot, penpot and mautic promotions.
  • Deploy order on prod: bundle main first, with the new .env keys in place (openssl rand -hex 32, one line each, checked with grep -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.
  • Prod prerequisites tracked in FOSS-786 (GKE), FOSS-787 (Moneta prod VM .env) and FOSS-788 (askii).

Testing

  • Staging VM (foss.arbisoft.com), image 13d7268 (tag v26.11.1-rc.1), bundle dcd478e9d2:
    • Forged 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.
    • Public URL still redirects to mPass login; no startup edge-secret errors; no users created.
    • Browser SSO sign-in checked by hand.

… 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).
fix(auth): trust mpass identity headers only from the edge and verify the token
@UsamaSadiq
UsamaSadiq merged commit 8fcb677 into foss-main Nov 13, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant