# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: cnrm.cloud.google.com/version: 1.106.0 creationTimestamp: null labels: cnrm.cloud.google.com/dcl2crd: "true" cnrm.cloud.google.com/managed-by-kcc: "true" cnrm.cloud.google.com/stability-level: stable cnrm.cloud.google.com/system: "true" name: privatecacertificatetemplates.privateca.cnrm.cloud.google.com spec: group: privateca.cnrm.cloud.google.com names: categories: - gcp kind: PrivateCACertificateTemplate plural: privatecacertificatetemplates shortNames: - gcpprivatecacertificatetemplate - gcpprivatecacertificatetemplates singular: privatecacertificatetemplate scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .metadata.creationTimestamp name: Age type: date - description: When 'True', the most recent reconcile of the resource succeeded jsonPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - description: The reason for the value in 'Ready' jsonPath: .status.conditions[?(@.type=='Ready')].reason name: Status type: string - description: The last transition time for the value in 'Status' jsonPath: .status.conditions[?(@.type=='Ready')].lastTransitionTime name: Status Age type: date name: v1beta1 schema: openAPIV3Schema: 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/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/api-conventions.md#types-kinds' type: string metadata: type: object spec: properties: description: description: Optional. A human-readable description of scenarios this template is intended for. type: string identityConstraints: description: Optional. Describes constraints on identities that may be appear in Certificates issued using this template. If this is omitted, then this template will not add restrictions on a certificate's identity. properties: allowSubjectAltNamesPassthrough: description: Required. If this is true, the SubjectAltNames extension may be copied from a certificate request into the signed certificate. Otherwise, the requested SubjectAltNames will be discarded. type: boolean allowSubjectPassthrough: description: Required. If this is true, the Subject field may be copied from a certificate request into the signed certificate. Otherwise, the requested Subject will be discarded. type: boolean celExpression: description: Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel properties: description: description: Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. type: string expression: description: Textual representation of an expression in Common Expression Language syntax. type: string location: description: Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. type: string title: description: Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. type: string type: object required: - allowSubjectAltNamesPassthrough - allowSubjectPassthrough type: object location: description: Immutable. The location for the resource type: string passthroughExtensions: description: Optional. Describes the set of X.509 extensions that may appear in a Certificate issued using this CertificateTemplate. If a certificate request sets extensions that don't appear in the passthrough_extensions, those extensions will be dropped. If the issuing CaPool's IssuancePolicy defines baseline_values that don't appear here, the certificate issuance request will fail. If this is omitted, then this template will not add restrictions on a certificate's X.509 extensions. These constraints do not apply to X.509 extensions set in this CertificateTemplate's predefined_values. properties: additionalExtensions: description: Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions. items: properties: objectIdPath: description: Required. The parts of an OID path. The most significant parts of the path come first. items: format: int64 type: integer type: array required: - objectIdPath type: object type: array knownExtensions: description: Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions. items: type: string type: array type: object predefinedValues: description: Optional. A set of X.509 values that will be applied to all issued certificates that use this template. If the certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If the issuing CaPool's IssuancePolicy defines conflicting baseline_values for the same properties, the certificate issuance request will fail. properties: additionalExtensions: description: Optional. Describes custom X.509 extensions. items: properties: critical: description: Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). type: boolean objectId: description: Required. The OID for this X.509 extension. properties: objectIdPath: description: Required. The parts of an OID path. The most significant parts of the path come first. items: format: int64 type: integer type: array required: - objectIdPath type: object value: description: Required. The value of this X.509 extension. type: string required: - objectId - value type: object type: array aiaOcspServers: description: Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. items: type: string type: array caOptions: description: Optional. Describes options in this X509Parameters that are relevant in a CA certificate. properties: isCa: description: Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. type: boolean maxIssuerPathLength: description: Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. format: int64 type: integer type: object keyUsage: description: Optional. Indicates the intended use for keys that correspond to a certificate. properties: baseKeyUsage: description: Describes high-level ways in which a key may be used. properties: certSign: description: The key may be used to sign certificates. type: boolean contentCommitment: description: The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". type: boolean crlSign: description: The key may be used sign certificate revocation lists. type: boolean dataEncipherment: description: The key may be used to encipher data. type: boolean decipherOnly: description: The key may be used to decipher only. type: boolean digitalSignature: description: The key may be used for digital signatures. type: boolean encipherOnly: description: The key may be used to encipher only. type: boolean keyAgreement: description: The key may be used in a key agreement protocol. type: boolean keyEncipherment: description: The key may be used to encipher other keys. type: boolean type: object extendedKeyUsage: description: Detailed scenarios in which a key may be used. properties: clientAuth: description: Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. type: boolean codeSigning: description: Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". type: boolean emailProtection: description: Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". type: boolean ocspSigning: description: Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". type: boolean serverAuth: description: Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. type: boolean timeStamping: description: Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". type: boolean type: object unknownExtendedKeyUsages: description: Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. items: properties: objectIdPath: description: Required. The parts of an OID path. The most significant parts of the path come first. items: format: int64 type: integer type: array required: - objectIdPath type: object type: array type: object policyIds: description: Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. items: properties: objectIdPath: description: Required. The parts of an OID path. The most significant parts of the path come first. items: format: int64 type: integer type: array required: - objectIdPath type: object type: array type: object projectRef: description: Immutable. The Project that this resource belongs to. oneOf: - not: required: - external required: - name - not: anyOf: - required: - name - required: - namespace required: - external properties: external: description: |- The project for the resource Allowed value: The Google Cloud resource name of a `Project` resource (format: `projects/{{name}}`). type: string name: description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string namespace: description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' type: string type: object resourceID: description: Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. type: string required: - location - projectRef type: object status: properties: conditions: description: Conditions represent the latest available observation of the resource's current state. items: properties: lastTransitionTime: description: Last time the condition transitioned from one status to another. type: string message: description: Human-readable message indicating details about last transition. type: string reason: description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: Status is the status of the condition. Can be True, False, Unknown. type: string type: description: Type is the type of the condition. type: string type: object type: array createTime: description: Output only. The time at which this CertificateTemplate was created. format: date-time type: string observedGeneration: description: ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. type: integer updateTime: description: Output only. The time at which this CertificateTemplate was updated. format: date-time type: string type: object required: - spec type: object served: true storage: true subresources: status: {} status: acceptedNames: kind: "" plural: "" conditions: [] storedVersions: []