--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: helm.sh/resource-policy: keep operatorframework.io/installed-alongside-67e6332fe113d20: cert-manager-operator/cert-manager-operator.v1.21.0 creationTimestamp: "2026-12-04T06:31:49Z" generation: 1 labels: app.kubernetes.io/instance: cert-manager-approver-policy app.kubernetes.io/managed-by: cert-manager-operator app.kubernetes.io/name: cert-manager-approver-policy app.kubernetes.io/part-of: cert-manager-operator app.kubernetes.io/version: v0.29.0 olm.managed: "true" operators.coreos.com/openshift-cert-manager-operator.cert-manager-operator: "" managedFields: - apiVersion: apiextensions.k8s.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: .: {} f:helm.sh/resource-policy: {} f:operatorframework.io/installed-alongside-67e6332fe113d20: {} f:labels: .: {} f:app.kubernetes.io/instance: {} f:app.kubernetes.io/managed-by: {} f:app.kubernetes.io/name: {} f:app.kubernetes.io/part-of: {} f:app.kubernetes.io/version: {} f:olm.managed: {} f:spec: f:conversion: .: {} f:strategy: {} f:group: {} f:names: f:categories: {} f:kind: {} f:listKind: {} f:plural: {} f:shortNames: {} f:singular: {} f:scope: {} f:versions: {} manager: catalog operation: Update time: "2026-12-04T06:31:49Z" - apiVersion: apiextensions.k8s.io/v1 fieldsType: FieldsV1 fieldsV1: f:status: f:acceptedNames: f:categories: {} f:kind: {} f:listKind: {} f:plural: {} f:shortNames: {} f:singular: {} f:conditions: k:{"type":"Established"}: .: {} f:lastTransitionTime: {} f:message: {} f:reason: {} f:status: {} f:type: {} k:{"type":"NamesAccepted"}: .: {} f:lastTransitionTime: {} f:message: {} f:reason: {} f:status: {} f:type: {} manager: kube-apiserver operation: Update subresource: status time: "2026-12-04T06:31:49Z" - apiVersion: apiextensions.k8s.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:labels: f:operators.coreos.com/openshift-cert-manager-operator.cert-manager-operator: {} manager: olm operation: Update time: "2026-12-04T06:32:03Z" name: certificaterequestpolicies.policy.cert-manager.io resourceVersion: "10433" uid: 38bec280-7d79-427f-8c66-19edf8487c22 spec: conversion: strategy: None group: policy.cert-manager.io names: categories: - cert-manager kind: CertificateRequestPolicy listKind: CertificateRequestPolicyList plural: certificaterequestpolicies shortNames: - crp singular: certificaterequestpolicy scope: Cluster versions: - additionalPrinterColumns: - description: CertificateRequestPolicy is ready for evaluation jsonPath: .status.conditions[?(@.type == "Ready")].status name: Ready type: string - description: Timestamp CertificateRequestPolicy was created jsonPath: .metadata.creationTimestamp name: Age type: date name: v1alpha1 schema: openAPIV3Schema: description: |- CertificateRequestPolicy is an object for describing a "policy profile" that makes decisions on whether applicable CertificateRequests should be approved or denied. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: description: spec is the desired state of the CertificateRequestPolicy. properties: allowed: description: |- allowed defines the allowed attributes for a CertificateRequest. A CertificateRequest can request _less_ than what is allowed, but _not more_, i.e. a CertificateRequest can request a subset of what is declared as allowed by the policy. Omitted fields declare that the equivalent CertificateRequest field _must_ be omitted or have an empty value for the request to be permitted. properties: commonName: description: commonName defines the X.509 Common Name that may be requested. properties: required: description: |- required marks that the related field must be provided and not be an empty string. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute value present on request beyond what is possible to express using value/required. An attribute value on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map value: description: |- value defines the allowed attribute value on the related CertificateRequest field. Accepts wildcards "*". If set, the related field must match the specified pattern. NOTE:`value: ""` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. type: string type: object dnsNames: description: dnsNames defines the X.509 DNS SANs that may be requested. properties: required: description: |- required controls whether the related field must have at least one value. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute values present on request beyond what is possible to express using values/required. ALL attribute values on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines allowed attribute values on the related CertificateRequest field. Accepts wildcards "*". If set, the related field can only include items contained in the allowed values. NOTE:`values: []` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. items: type: string type: array type: object emailAddresses: description: emailAddresses defines the X.509 Email SANs that may be requested. properties: required: description: |- required controls whether the related field must have at least one value. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute values present on request beyond what is possible to express using values/required. ALL attribute values on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines allowed attribute values on the related CertificateRequest field. Accepts wildcards "*". If set, the related field can only include items contained in the allowed values. NOTE:`values: []` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. items: type: string type: array type: object ipAddresses: description: ipAddresses defines the X.509 IP SANs that may be requested. properties: required: description: |- required controls whether the related field must have at least one value. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute values present on request beyond what is possible to express using values/required. ALL attribute values on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines allowed attribute values on the related CertificateRequest field. Accepts wildcards "*". If set, the related field can only include items contained in the allowed values. NOTE:`values: []` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. items: type: string type: array type: object isCA: description: |- isCA defines if a CertificateRequest is allowed to set the `spec.isCA` field set to `true`. If `true`, the `spec.isCA` field can be `true` or `false`. If `false` or unset, the `spec.isCA` field must be `false`. type: boolean otherNames: description: |- otherNames defines the additional SAN GeneralName otherName entries (context tag 0) that may be present in a CertificateRequest. Each entry pins a dotted ASN.1 OID (e.g. "1.3.6.1.4.1.311.20.2.3" for the Microsoft User Principal Name) and constrains the allowed values for that OID. Any otherName entry whose OID is not listed here is denied. SAN GeneralName types other than rfc822Name/dNSName/uniformResourceIdentifier/ iPAddress/otherName (i.e. x400Address, directoryName, ediPartyName, registeredID) are always denied. An omitted or empty field denies any otherName SAN entry. items: description: |- CertificateRequestPolicyAllowedOtherName declares the allowed values for a single SAN otherName GeneralName OID. If neither Values nor Validations are specified, the related otherName entry must be absent from the request. properties: oid: description: |- oid is the dotted ASN.1 object identifier that the otherName entry must carry, e.g. "1.3.6.1.4.1.311.20.2.3" for the Microsoft User Principal Name. type: string required: description: |- required marks that at least one otherName entry with this OID must be present on the request. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate every otherName value with the matching OID present on the request beyond what is possible to express using values/required. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines the allowed values for otherName entries with this OID. Accepts wildcards "*". If set, every otherName entry with the matching OID present in the request must be a member of this list. items: type: string type: array required: - oid type: object type: array x-kubernetes-list-map-keys: - oid x-kubernetes-list-type: map subject: description: |- subject declares the X.509 Subject attributes allowed in a CertificateRequest. An omitted field forbids any Subject attributes from being requested. A CertificateRequest can request a subset of the allowed X.509 Subject attributes. properties: countries: description: countries define the X.509 Subject Countries that may be requested. properties: required: description: |- required controls whether the related field must have at least one value. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute values present on request beyond what is possible to express using values/required. ALL attribute values on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines allowed attribute values on the related CertificateRequest field. Accepts wildcards "*". If set, the related field can only include items contained in the allowed values. NOTE:`values: []` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. items: type: string type: array type: object localities: description: localities defines the X.509 Subject Localities that may be requested. properties: required: description: |- required controls whether the related field must have at least one value. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute values present on request beyond what is possible to express using values/required. ALL attribute values on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines allowed attribute values on the related CertificateRequest field. Accepts wildcards "*". If set, the related field can only include items contained in the allowed values. NOTE:`values: []` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. items: type: string type: array type: object organizationalUnits: description: |- organizationalUnits defines the X.509 Subject Organizational Units that may be requested. properties: required: description: |- required controls whether the related field must have at least one value. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute values present on request beyond what is possible to express using values/required. ALL attribute values on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines allowed attribute values on the related CertificateRequest field. Accepts wildcards "*". If set, the related field can only include items contained in the allowed values. NOTE:`values: []` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. items: type: string type: array type: object organizations: description: |- organizations define the X.509 Subject Organizations that may be requested. properties: required: description: |- required controls whether the related field must have at least one value. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute values present on request beyond what is possible to express using values/required. ALL attribute values on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines allowed attribute values on the related CertificateRequest field. Accepts wildcards "*". If set, the related field can only include items contained in the allowed values. NOTE:`values: []` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. items: type: string type: array type: object otherAttributes: description: |- otherAttributes defines additional Subject RDN attribute OIDs that may be present in a CertificateRequest beyond the named fields above. Each entry pins a dotted ASN.1 OID (e.g. "1.2.840.113549.1.9.1" for emailAddress, "0.9.2342.19200300.100.1.25" for domainComponent) and constrains the allowed values for that OID. Subject RDN attributes whose OID is neither covered by one of the named fields above nor listed here are denied. An omitted or empty field denies any unrecognised Subject RDN attribute. items: description: |- CertificateRequestPolicyAllowedSubjectOtherAttribute declares the allowed values for a single Subject RDN attribute OID not covered by the named fields of CertificateRequestPolicyAllowedX509Subject. If neither Values nor Validations are specified, the related Subject RDN attribute must be absent from the request. properties: oid: description: |- oid is the dotted ASN.1 object identifier of the Subject RDN attribute, e.g. "1.2.840.113549.1.9.1" for emailAddress. type: string required: description: |- required marks that at least one Subject RDN attribute with this OID must be present on the request. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate every Subject RDN attribute value with the matching OID present on the request beyond what is possible to express using values/required. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines the allowed values for Subject RDN attributes with this OID. Accepts wildcards "*". If set, every Subject RDN attribute with the matching OID present in the request must be a member of this list. items: type: string type: array required: - oid type: object type: array x-kubernetes-list-map-keys: - oid x-kubernetes-list-type: map postalCodes: description: postalCodes defines the X.509 Subject Postal Codes that may be requested. properties: required: description: |- required controls whether the related field must have at least one value. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute values present on request beyond what is possible to express using values/required. ALL attribute values on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines allowed attribute values on the related CertificateRequest field. Accepts wildcards "*". If set, the related field can only include items contained in the allowed values. NOTE:`values: []` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. items: type: string type: array type: object provinces: description: provinces defines the X.509 Subject Provinces that may be requested. properties: required: description: |- required controls whether the related field must have at least one value. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute values present on request beyond what is possible to express using values/required. ALL attribute values on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines allowed attribute values on the related CertificateRequest field. Accepts wildcards "*". If set, the related field can only include items contained in the allowed values. NOTE:`values: []` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. items: type: string type: array type: object serialNumber: description: |- serialNumber defines the X.509 Subject Serial Number that may be requested. properties: required: description: |- required marks that the related field must be provided and not be an empty string. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute value present on request beyond what is possible to express using value/required. An attribute value on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map value: description: |- value defines the allowed attribute value on the related CertificateRequest field. Accepts wildcards "*". If set, the related field must match the specified pattern. NOTE:`value: ""` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. type: string type: object streetAddresses: description: |- streetAddresses defines the X.509 Subject Street Addresses that may be requested. properties: required: description: |- required controls whether the related field must have at least one value. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute values present on request beyond what is possible to express using values/required. ALL attribute values on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines allowed attribute values on the related CertificateRequest field. Accepts wildcards "*". If set, the related field can only include items contained in the allowed values. NOTE:`values: []` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. items: type: string type: array type: object type: object uris: description: uris defines the X.509 URI SANs that may be requested. properties: required: description: |- required controls whether the related field must have at least one value. Defaults to `false`. type: boolean validations: description: |- validations applies rules using Common Expression Language (CEL) to validate attribute values present on request beyond what is possible to express using values/required. ALL attribute values on the related CertificateRequest field must pass ALL validations for the request to be granted by this policy. items: description: ValidationRule describes a validation rule expressed in CEL. properties: message: description: |- message is the message to display when validation fails. Message is required if the Rule contains line breaks. Note that Message must not contain line breaks. If unset, a fallback message is used: "failed rule: ``". e.g. "must be a URL with the host matching spec.host" type: string rule: description: |- rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the validations in the schema. The `self` variable in the CEL expression is bound to the scoped value. To enable more advanced validation rules, approver-policy provides the `cr` (map) variable to the CEL expression containing `namespace` and `name` of the `CertificateRequest` resource. Example (rule for namespaced DNSNames): ``` rule: self.endsWith(cr.namespace + '.svc.cluster.local') ``` type: string required: - rule type: object type: array x-kubernetes-list-map-keys: - rule x-kubernetes-list-type: map values: description: |- values defines allowed attribute values on the related CertificateRequest field. Accepts wildcards "*". If set, the related field can only include items contained in the allowed values. NOTE:`values: []` paired with `required: true` establishes a policy that will never grant a `CertificateRequest`, but other policies may. items: type: string type: array type: object usages: description: |- usages defines the key usages that may be included in a CertificateRequest `spec.keyUsages` field. If set, `spec.keyUsages` in a CertificateRequest must be a subset of the specified values. If `[]` or unset, no `spec.keyUsages` are allowed. items: description: |- KeyUsage specifies valid usage contexts for keys. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 Valid KeyUsage values are as follows: "signing", "digital signature", "content commitment", "key encipherment", "key agreement", "data encipherment", "cert sign", "crl sign", "encipher only", "decipher only", "any", "server auth", "client auth", "code signing", "email protection", "s/mime", "ipsec end system", "ipsec tunnel", "ipsec user", "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" enum: - signing - digital signature - content commitment - key encipherment - key agreement - data encipherment - cert sign - crl sign - encipher only - decipher only - any - server auth - client auth - code signing - email protection - s/mime - ipsec end system - ipsec tunnel - ipsec user - timestamping - ocsp signing - microsoft sgc - netscape sgc type: string type: array type: object constraints: description: |- constraints define fields that _must_ be satisfied by a CertificateRequest for the request to be allowed by this policy. Omitted fields place no restrictions on the corresponding attribute in a request. properties: maxDuration: description: |- maxDuration defines the maximum duration for a certificate request. Values are inclusive (i.e. a value of `1h` will accept a duration of `1h`). MinDuration and MaxDuration may be the same value. If set, a duration _must_ be requested in the CertificateRequest. An omitted field applies no maximum constraint for duration. type: string minDuration: description: |- minDuration defines the minimum duration for a certificate request. Values are inclusive (i.e. a value of `1h` will accept a duration of `1h`). MinDuration and MaxDuration may be the same value. If set, a duration _must_ be requested in the CertificateRequest. An omitted field applies no minimum constraint for duration. type: string privateKey: description: |- privateKey defines constraints on the shape of private key allowed for a CertificateRequest. An omitted field applies no private key shape constraints. properties: algorithm: description: |- algorithm defines the allowed crypto algorithm for the private key in a request. An omitted field permits any algorithm. enum: - RSA - ECDSA - Ed25519 type: string maxSize: description: |- maxSize defines the maximum key size for a private key. Values are inclusive (i.e. a min value of `2048` will accept a size of `2048`). MaxSize and MinSize may be the same value. An omitted field applies no maximum constraint on size. type: integer minSize: description: |- minSize defines the minimum key size for a private key. Values are inclusive (i.e. a min value of `2048` will accept a size of `2048`). MinSize and MaxSize may be the same value. An omitted field applies no minimum constraint on size. type: integer type: object type: object plugins: additionalProperties: description: |- CertificateRequestPolicyPluginData is configuration needed by the plugin approver to evaluate a CertificateRequest on this policy. properties: values: additionalProperties: type: string description: |- values define a set of well-known, to the plugin, key value pairs that are required for the plugin to successfully evaluate a request based on this policy. type: object type: object description: |- plugins are approvers that are built into approver-policy at compile-time. This is an advanced feature typically used to extend approver-policy core features. This field defines plugins and their configuration that should be executed when this policy is evaluated against a CertificateRequest. type: object selector: description: |- selector is used for selecting over which CertificateRequests this CertificateRequestPolicy is appropriate for and so will be used for its approval evaluation. properties: issuerRef: description: |- issuerRef is used to match by issuer, meaning the CertificateRequestPolicy will only evaluate CertificateRequests referring to matching issuers. CertificateRequests will not be processed if the issuer does not match, regardless of whether the requestor is bound by RBAC. The following value will match _all_ issuers: ``` issuerRef: {} ``` properties: group: description: |- group is the wildcard selector to match the `spec.issuerRef.group` field on requests. Accepts wildcards "*". An omitted field matches all groups. type: string kind: description: |- kind is the wildcard selector to match the `spec.issuerRef.kind` field on requests. Accepts wildcards "*". An omitted field matches all kinds. type: string name: description: |- name is a wildcard enabled selector that matches the `spec.issuerRef.name` field of requests. Accepts wildcards "*". An omitted field matches all names. type: string type: object namespace: description: |- namespace is used to match by namespace, meaning the CertificateRequestPolicy will only match CertificateRequests created in matching namespaces. If this field is omitted, resources in all namespaces are checked. properties: matchLabels: additionalProperties: type: string description: |- matchLabels is the set of Namespace labels that select on CertificateRequests which have been created in a namespace matching the selector. type: object matchNames: description: |- matchNames is the set of namespace names that select on CertificateRequests that have been created in a matching namespace. Accepts wildcards "*". items: type: string type: array type: object type: object required: - selector type: object status: description: status is the observed state of the CertificateRequestPolicy. properties: conditions: description: |- conditions is a list of status conditions to indicate the status of the CertificateRequestPolicy. Known condition types are `Ready`. items: description: Condition contains details for one aspect of the current state of this API Resource. properties: lastTransitionTime: description: |- lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. format: date-time type: string message: description: |- message is a human readable message indicating details about the transition. This may be an empty string. maxLength: 32768 type: string observedGeneration: description: |- observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. format: int64 minimum: 0 type: integer reason: description: |- reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. maxLength: 1024 minLength: 1 pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ type: string status: description: status of the condition, one of True, False, Unknown. enum: - "True" - "False" - Unknown type: string type: description: type of condition in CamelCase or in foo.example.com/CamelCase. maxLength: 316 pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ type: string required: - lastTransitionTime - message - reason - status - type type: object type: array x-kubernetes-list-map-keys: - type x-kubernetes-list-type: map type: object required: - spec type: object served: true storage: true subresources: status: {} status: acceptedNames: categories: - cert-manager kind: CertificateRequestPolicy listKind: CertificateRequestPolicyList plural: certificaterequestpolicies shortNames: - crp singular: certificaterequestpolicy conditions: - lastTransitionTime: "2026-12-04T06:31:49Z" message: no conflicts found reason: NoConflicts status: "True" type: NamesAccepted - lastTransitionTime: "2026-12-04T06:31:49Z" message: the initial names have been accepted reason: InitialNamesAccepted status: "True" type: Established storedVersions: - v1alpha1