Skip to main content

ProkrustAccessBinding

Defines which authenticated users are eligible to use a service account in this namespace.

platform.prokrust.ai/v1beta1 · Namespaced · prokrustaccessbindings

Status​

This resource has no status subresource. To check a binding, inspect the identity provider in spec.providerRef, the match expression in spec.rule, and the same-namespace service account in spec.serviceAccountRef.name. Check the service account's permissions for the requested operation.

Specification​

A namespace-owned eligibility rule within the platform's approved target ceiling. Kubernetes validates structure; the Web API compiles and evaluates the CEL rule against validated subject, email, groups and approved claims. Only boolean true grants a context, and providerRef is always matched outside the expression.

This resource requires providerRef, rule, serviceAccountRef.

displayName​

Optional name shown when a user selects an access context. Supply it when the service account name does not distinguish the user's role.

providerRef​

Selects the configured identity provider whose sign-ins may match this binding. Use the provider ID for the intended users.

rule​

CEL expression evaluated against the authenticated user's claims. Require a matching subject or group to restrict who can select this account.

serviceAccountRef​

Select the workspace service account for eligible users. The platform must also approve the account for impersonation.

FieldWhen to use it
spec.serviceAccountRef.nameKubernetes name of the referenced object in the same namespace. Use its metadata.name.
Kubernetes schema for spec

Required applies when the parent is present. A dash in the default column means the CRD declares no default.

FieldTypeRequiredDefaultSchema constraints and descriptions
specobjectyes—A namespace-owned eligibility rule within the platform's approved target ceiling. Kubernetes validates structure; the Web API compiles and evaluates the CEL rule against validated subject, email, groups and approved claims. Only boolean true grants a context, and providerRef is always matched outside the expression. · maxProperties 1024
spec.displayNamestringno—Optional name shown when a user selects an access context. Supply it when the service account name does not distinguish the user's role. · maxLength 256 · minLength 1 · nullable true
spec.providerRefstringyes—Selects the configured identity provider whose sign-ins may match this binding. Use the provider ID for the intended users. · maxLength 253 · minLength 1
spec.rulestringyes—CEL expression evaluated against the authenticated user's claims. Require a matching subject or group to restrict who can select this account. · maxLength 4096 · minLength 1
spec.serviceAccountRefobjectyes—Select the workspace service account for eligible users. The platform must also approve the account for impersonation. · maxProperties 1024
spec.serviceAccountRef.namestringyes—Kubernetes name of the referenced object in the same namespace. Use its metadata.name. · maxLength 253

The validation schema matches prokrust-crds 0.23.0-rc.1.