mirror of
https://github.com/luxfi/kms.git
synced 2026-07-27 05:54:18 +00:00
KMS_EXPECTED_ISSUER now takes a comma-separated allowlist so one KMS can serve several white-label brands that share IAM signing keys. The Lux-brand KMS (kms.lux.network) must accept lux.id tokens — lux.cloud users carry iss=https://lux.id — while still honoring hanzo.id. JWKS is unchanged (fetched in-cluster; both brands sign with the same keys), so this is a pure issuer-string allowlist: parse+dedupe, then validate membership after the signature/expiry check. Backward compatible: a single-value KMS_EXPECTED_ISSUER behaves exactly as before. Deploy: KMS_EXPECTED_ISSUER=https://hanzo.id,https://lux.id on the Lux KMS. Co-authored-by: Hanzo Dev <dev@hanzo.ai>