Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions api/policies.kyverno.io/v1alpha1/imagevalidating_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,9 @@ type Certificate struct {
// log.
// Issuer/Subject uses a strict match, while IssuerRegExp and SubjectRegExp
// apply a regexp for matching.
// For a dynamic subject, use SubjectExpression which accepts a CEL expression
// evaluated at admission time. The result is used as a regexp match against the
// certificate SAN URI, so it can be either a literal string or a regexp pattern.
type Identity struct {
// Issuer defines the issuer for this identity.
// +optional
Expand All @@ -486,6 +489,10 @@ type Identity struct {
// SubjectRegExp specifies a regular expression to match the subject for this identity.
// +optional
SubjectRegExp string `json:"subjectRegExp,omitempty"`
// SubjectExpression defines a CEL expression that evaluates to the subject string,
// matched as a regexp against the certificate SAN URI. Mutually exclusive with SubjectRegExp.
// +optional
SubjectExpression string `json:"subjectExpression,omitempty"`
}

// Attestation defines the identification details of the metadata that has to be verified
Expand Down
Loading