mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 05:25:14 +09:00
Adversarial review flag: the previous rewording implied the cozy realm has `email` in its client-scope defaults, which is misleading — the per-cluster client my chart creates lists only `groups` and the per-cluster audience scope as defaults. The `email` claim reaches the token because the chart-generated `kubectl oidc-login` block passes `--oidc-extra-scope=email` explicitly, not because of realm-side default-scope hygiene. State the actual mechanic: `email` is a built-in OIDC scope available in every conformant issuer, requested by the client at auth time via the kubeconfig's exec block. No realm-side configuration required. For `CustomConfig`, note that the operator should verify their BYO issuer emits `email` when the client requests the `email` scope (every conformant provider does). Signed-off-by: Ivan Okhotnikov <ivan.okhotnikov@aenix.io>