feat(auth,foundation): Wave 2 flag-gated Zitadel JWT verify + validation + eslint + tests
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
844220d9f5
commit
1d76d50f3d
@@ -32,6 +32,23 @@ GRANT_ENC_KEY=change-me-32-byte-key
|
||||
# Shared token for internal/service-to-service calls.
|
||||
INTERNAL_TOKEN=change-me-internal-token
|
||||
|
||||
# ---- Zitadel / OIDC Bearer verification (Wave 2 hardening) ------------------
|
||||
# 0pt verifies inbound Bearer tokens against the fleet Zitadel IdP
|
||||
# (src/auth/zitadel.ts, wired via middleware.ts). JWKS are discovered from
|
||||
# <issuer>/.well-known/openid-configuration, falling back to <issuer>/oauth/v2/keys.
|
||||
#
|
||||
# Fleet Zitadel issuer (OIDC). Default when unset: https://id-customers.siax.io
|
||||
ZITADEL_ISSUER=https://id-customers.siax.io
|
||||
# Flag-gated enforcement. When != "true" (DEFAULT) auth is non-breaking:
|
||||
# a present Bearer token is best-effort verified and attached, but never
|
||||
# rejected. Set to "true" to REQUIRE a valid token on /api/0pt/* (401 on
|
||||
# missing/invalid, 403 when X-Tenant-Id disagrees with the token tenant).
|
||||
AUTH_ENFORCE=false
|
||||
# Optional override for the claim key that carries the SIAX tenant id. When
|
||||
# unset, tenant derivation uses the documented precedence:
|
||||
# urn:zitadel:iam:org:id -> urn:zitadel:iam:user:resourceowner:id -> tenant_id -> tenant.
|
||||
ZITADEL_TENANT_CLAIM=
|
||||
|
||||
# ---- Payments (Stripe) ------------------------------------------------------
|
||||
STRIPE_SECRET_KEY=sk_test_xxx
|
||||
STRIPE_WEBHOOK_SECRET=whsec_xxx
|
||||
|
||||
Reference in New Issue
Block a user