IdentityProvider
IdentityProvider configures an OpenID Provider without storing credentials.
| API version | kudurru.io/v1alpha1 |
| Kind | IdentityProvider |
| Scope | Cluster |
| Resource | identityproviders.kudurru.io |
| Short names | idp |
| Subresources | status |
Spec
IdentityProviderSpec is one OpenID Provider (§8.2-8.4); the object name is the provider id used in URLs.
| Field | Type | Description |
|---|---|---|
spec.allowedDomains | []string | AllowedDomains, when set, restricts logins to verified emails in these domains (reserved). Items: at most 64 |
spec.audiences | []string | Audiences are extra aud values accepted for bearer ID tokens. Items: at most 64 |
spec.claimMappings | object | ClaimMappings turns claims into a username and groups (§8.4). |
spec.claimMappings.displayName | object | ClaimRef 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.claim | string | Length: 1 to 256 |
spec.claimMappings.displayName.expression | string | Length: 1 to 4096 |
spec.claimMappings.email | object | ClaimRef 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.claim | string | Length: 1 to 256 |
spec.claimMappings.email.expression | string | Length: 1 to 4096 |
spec.claimMappings.groups | object | PrefixedClaim 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.claim | string | Length: 1 to 256 |
spec.claimMappings.groups.expression | string | Length: 1 to 4096 |
spec.claimMappings.groups.prefix | string | Length: at most 256 |
spec.claimMappings.username | object | PrefixedClaim 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.claim | string | Length: 1 to 256 |
spec.claimMappings.username.expression | string | Length: 1 to 4096 |
spec.claimMappings.username.prefix | string | Length: at most 256 |
spec.claimValidationRules | []object | Items: at most 64 |
spec.claimValidationRules[].claim | string | Length: 1 to 256 |
spec.claimValidationRules[].expression | string | Expression evaluates signed claims and must produce a boolean. Length: 1 to 4096 |
spec.claimValidationRules[].requiredValue | string | RequiredValue defaults to the empty string for scalar equality. Length: at most 2048 |
spec.cliClientID | string | CLIClientID is the public client of kudurru login (v0.2); bearer ID tokens may carry it as their audience.Length: at most 256 |
spec.clientID | string | Required. Length: 1 to 256 |
spec.clientSecretRef | object | Required. 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.env | string | Pattern: ^[A-Za-z_][A-Za-z0-9_]*$Length: at most 128 |
spec.clientSecretRef.file | string | Length: 1 to 4096 |
spec.clientSecretRef.secretRef | object | CredentialSecretRef names a key in the operator's credential namespace. Namespace selection belongs to host configuration, never to this reference. |
spec.clientSecretRef.secretRef.key | string | Required. Length: 1 to 253 |
spec.clientSecretRef.secretRef.name | string | Required. Length: 1 to 253 |
spec.displayName | string | Length: at most 256 |
spec.issuer | string | Required. Length: 1 to 2048 |
spec.provisioning | object | Provisioning is the first-login policy (§8.4). |
spec.provisioning.autoProvision | string | AutoProvision is mapped-only (default), always or never. One of: mapped-only, always, never |
spec.provisioning.defaultRole | string | Length: at most 63 |
spec.provisioning.syncGroups | boolean | |
spec.redirectURL | string | RedirectURL is the absolute callback URL registered at the IdP. Length: at most 2048 |
spec.scopes | []string | Items: at most 64 |
Status
IdentityProviderStatus reports discovery.
| Field | Type | Description |
|---|---|---|
status.conditions | []Condition | Items: 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