IdentityProvider

IdentityProvider configures an OpenID Provider without storing credentials.

API versionkudurru.io/v1alpha1
KindIdentityProvider
ScopeCluster
Resourceidentityproviders.kudurru.io
Short namesidp
Subresourcesstatus

Spec

IdentityProviderSpec is one OpenID Provider (§8.2-8.4); the object name is the provider id used in URLs.

FieldTypeDescription
spec.allowedDomains[]stringAllowedDomains, when set, restricts logins to verified emails in these domains (reserved).
Items: at most 64
spec.audiences[]stringAudiences are extra aud values accepted for bearer ID tokens.
Items: at most 64
spec.claimMappingsobjectClaimMappings turns claims into a username and groups (§8.4).
spec.claimMappings.displayNameobjectClaimRef maps a claim or string expression; empty selects the default claim.
Validation: claim and expression are mutually exclusive (!(has(self.claim) && has(self.expression)))
spec.claimMappings.displayName.claimstringLength: 1 to 256
spec.claimMappings.displayName.expressionstringLength: 1 to 4096
spec.claimMappings.emailobjectClaimRef maps a claim or string expression; empty selects the default claim.
Validation: claim and expression are mutually exclusive (!(has(self.claim) && has(self.expression)))
spec.claimMappings.email.claimstringLength: 1 to 256
spec.claimMappings.email.expressionstringLength: 1 to 4096
spec.claimMappings.groupsobjectPrefixedClaim maps a claim or expression and prepends a prefix. An empty mapping selects the provider's default claim behavior.
Validation: claim and expression are mutually exclusive (!(has(self.claim) && has(self.expression)))
spec.claimMappings.groups.claimstringLength: 1 to 256
spec.claimMappings.groups.expressionstringLength: 1 to 4096
spec.claimMappings.groups.prefixstringLength: at most 256
spec.claimMappings.usernameobjectPrefixedClaim maps a claim or expression and prepends a prefix. An empty mapping selects the provider's default claim behavior.
Validation: claim and expression are mutually exclusive (!(has(self.claim) && has(self.expression)))
spec.claimMappings.username.claimstringLength: 1 to 256
spec.claimMappings.username.expressionstringLength: 1 to 4096
spec.claimMappings.username.prefixstringLength: at most 256
spec.claimValidationRules[]objectItems: at most 64
spec.claimValidationRules[].claimstringLength: 1 to 256
spec.claimValidationRules[].expressionstringExpression evaluates signed claims and must produce a boolean.
Length: 1 to 4096
spec.claimValidationRules[].requiredValuestringRequiredValue defaults to the empty string for scalar equality.
Length: at most 2048
spec.cliClientIDstringCLIClientID is the public client of kudurru login (v0.2); bearer ID tokens may carry it as their audience.
Length: at most 256
spec.clientIDstringRequired.
Length: 1 to 256
spec.clientSecretRefobjectRequired. ClientSecretRef selects an operator-granted credential capability.
Validation: exactly one credential reference is required ([has(self.secretRef), has(self.file), has(self.env)].filter(x, x).size() == 1)
spec.clientSecretRef.envstringPattern: ^[A-Za-z_][A-Za-z0-9_]*$
Length: at most 128
spec.clientSecretRef.filestringLength: 1 to 4096
spec.clientSecretRef.secretRefobjectCredentialSecretRef names a key in the operator's credential namespace. Namespace selection belongs to host configuration, never to this reference.
spec.clientSecretRef.secretRef.keystringRequired.
Length: 1 to 253
spec.clientSecretRef.secretRef.namestringRequired.
Length: 1 to 253
spec.displayNamestringLength: at most 256
spec.issuerstringRequired.
Length: 1 to 2048
spec.provisioningobjectProvisioning is the first-login policy (§8.4).
spec.provisioning.autoProvisionstringAutoProvision is mapped-only (default), always or never.
One of: mapped-only, always, never
spec.provisioning.defaultRolestringLength: at most 63
spec.provisioning.syncGroupsboolean
spec.redirectURLstringRedirectURL is the absolute callback URL registered at the IdP.
Length: at most 2048
spec.scopes[]stringItems: at most 64

Status

IdentityProviderStatus reports discovery.

FieldTypeDescription
status.conditions[]ConditionItems: at most 16
List type: map, keyed by type

Example

deploy/kustomize/samples/kudurru.io_v1alpha1_identityprovider.yaml:

apiVersion: kudurru.io/v1alpha1
kind: IdentityProvider
metadata:
  name: corp
spec:
  issuer: https://sso.example.com/realms/home
  clientID: kudurru
  clientSecretRef:
    secretRef:
      name: oidc-client
      key: secret
  redirectURL: https://dns.example.com/api/v1/auth/oidc/corp/callback

Source: docs-site/content/reference/crds/identityprovider.md