PrivateCACertificateTemplate
Property | Value |
---|---|
Google Cloud Service Name | Private CA |
Google Cloud Service Documentation | /certificate-authority-service/docs/ |
Google Cloud REST Resource Name |
v1.projects.locations.certificateTemplates |
Google Cloud REST Resource Documentation |
/certificate-authority-service/docs/reference/rest/v1/projects.locations.certificateTemplates |
Config Connector Resource Short Names | gcpprivatecacertificatetemplate gcpprivatecacertificatetemplates privatecacertificatetemplate |
Config Connector Service Name | privateca.googleapis.com |
Config Connector Resource Fully Qualified Name | privatecacertificatetemplates.privateca.cnrm.cloud.google.com |
Can Be Referenced by IAMPolicy/IAMPolicyMember | No |
Config Connector Default Average Reconcile Interval In Seconds | 600 |
Custom Resource Definition Properties
Spec
Schema
description: string
identityConstraints:
allowSubjectAltNamesPassthrough: boolean
allowSubjectPassthrough: boolean
celExpression:
description: string
expression: string
location: string
title: string
location: string
passthroughExtensions:
additionalExtensions:
- objectIdPath:
- integer
knownExtensions:
- string
predefinedValues:
additionalExtensions:
- critical: boolean
objectId:
objectIdPath:
- integer
value: string
aiaOcspServers:
- string
caOptions:
isCa: boolean
maxIssuerPathLength: integer
keyUsage:
baseKeyUsage:
certSign: boolean
contentCommitment: boolean
crlSign: boolean
dataEncipherment: boolean
decipherOnly: boolean
digitalSignature: boolean
encipherOnly: boolean
keyAgreement: boolean
keyEncipherment: boolean
extendedKeyUsage:
clientAuth: boolean
codeSigning: boolean
emailProtection: boolean
ocspSigning: boolean
serverAuth: boolean
timeStamping: boolean
unknownExtendedKeyUsages:
- objectIdPath:
- integer
policyIds:
- objectIdPath:
- integer
projectRef:
external: string
name: string
namespace: string
resourceID: string
Fields | |
---|---|
Optional |
Optional. A human-readable description of scenarios this template is intended for. |
Optional |
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. |
Required* |
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. |
Required* |
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. |
Optional |
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 |
Optional |
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. |
Optional |
Textual representation of an expression in Common Expression Language syntax. |
Optional |
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. |
Optional |
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. |
Required |
Immutable. The location for the resource |
Optional |
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. |
Optional |
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. |
Optional |
|
Required* |
Required. The parts of an OID path. The most significant parts of the path come first. |
Required* |
|
Optional |
Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions. |
Optional |
|
Optional |
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. |
Optional |
Optional. Describes custom X.509 extensions. |
Optional |
|
Optional |
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). |
Required* |
Required. The OID for this X.509 extension. |
Required* |
Required. The parts of an OID path. The most significant parts of the path come first. |
Required* |
|
Required* |
Required. The value of this X.509 extension. |
Optional |
Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. |
Optional |
|
Optional |
Optional. Describes options in this X509Parameters that are relevant in a CA certificate. |
Optional |
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. |
Optional |
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. |
Optional |
Optional. Indicates the intended use for keys that correspond to a certificate. |
Optional |
Describes high-level ways in which a key may be used. |
Optional |
The key may be used to sign certificates. |
Optional |
The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". |
Optional |
The key may be used sign certificate revocation lists. |
Optional |
The key may be used to encipher data. |
Optional |
The key may be used to decipher only. |
Optional |
The key may be used for digital signatures. |
Optional |
The key may be used to encipher only. |
Optional |
The key may be used in a key agreement protocol. |
Optional |
The key may be used to encipher other keys. |
Optional |
Detailed scenarios in which a key may be used. |
Optional |
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. |
Optional |
Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". |
Optional |
Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". |
Optional |
Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". |
Optional |
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. |
Optional |
Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". |
Optional |
Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. |
Optional |
|
Required* |
Required. The parts of an OID path. The most significant parts of the path come first. |
Required* |
|
Optional |
Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. |
Optional |
|
Required* |
Required. The parts of an OID path. The most significant parts of the path come first. |
Required* |
|
Required |
Immutable. The Project that this resource belongs to. |
Optional |
The project for the resource Allowed value: The Google Cloud resource name of a `Project` resource (format: `projects/{{name}}`). |
Optional |
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
Optional |
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ |
Optional |
Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. |
* Field is required when parent field is specified
Status
Schema
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
createTime: string
observedGeneration: integer
updateTime: string
Fields | |
---|---|
conditions |
Conditions represent the latest available observation of the resource's current state. |
conditions[] |
|
conditions[].lastTransitionTime |
Last time the condition transitioned from one status to another. |
conditions[].message |
Human-readable message indicating details about last transition. |
conditions[].reason |
Unique, one-word, CamelCase reason for the condition's last transition. |
conditions[].status |
Status is the status of the condition. Can be True, False, Unknown. |
conditions[].type |
Type is the type of the condition. |
createTime |
Output only. The time at which this CertificateTemplate was created. |
observedGeneration |
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. |
updateTime |
Output only. The time at which this CertificateTemplate was updated. |
Sample YAML(s)
Typical Use Case
# Copyright 2021 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: privateca.cnrm.cloud.google.com/v1beta1
kind: PrivateCACertificateTemplate
metadata:
labels:
label-two: "value-two"
name: privatecacertificatetemplate-sample
spec:
projectRef:
# Replace ${PROJECT_ID?} with your project ID
external: "projects/${PROJECT_ID?}"
location: "us-central1"
predefinedValues:
keyUsage:
baseKeyUsage:
digitalSignature: true
contentCommitment: true
keyEncipherment: true
dataEncipherment: true
keyAgreement: true
certSign: false
crlSign: false
encipherOnly: true
decipherOnly: true
extendedKeyUsage:
serverAuth: true
clientAuth: true
codeSigning: true
emailProtection: true
timeStamping: true
ocspSigning: true
unknownExtendedKeyUsages:
- objectIdPath:
- 1
- 6
caOptions:
isCa: false
maxIssuerPathLength: 6
policyIds:
- objectIdPath:
- 1
- 6
aiaOcspServers:
- string
additionalExtensions:
- objectId:
objectIdPath:
- 1
- 6
critical: true
value: c3RyaW5nCg==
identityConstraints:
celExpression:
title: Sample expression
description: Always true
expression: 'true'
location: any.file.anywhere
allowSubjectPassthrough: true
allowSubjectAltNamesPassthrough: true
passthroughExtensions:
knownExtensions:
- EXTENDED_KEY_USAGE
additionalExtensions:
- objectIdPath:
- 1
- 6
description: An basic sample certificate template