@@ -251,21 +251,21 @@ message CaPool {
251251 // [Certificates][google.cloud.security.privateca.v1.Certificate]. The options set here apply to certificates
252252 // issued by any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the [CaPool][google.cloud.security.privateca.v1.CaPool].
253253 message PublishingOptions {
254- // Required . When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and
254+ // Optional . When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and
255255 // includes its URL in the "Authority Information Access" X.509 extension
256256 // in all issued [Certificates][google.cloud.security.privateca.v1.Certificate]. If this is false, the CA
257257 // certificate will not be published and the corresponding X.509 extension
258258 // will not be written in issued certificates.
259- bool publish_ca_cert = 1 [(google.api.field_behavior ) = REQUIRED ];
259+ bool publish_ca_cert = 1 [(google.api.field_behavior ) = OPTIONAL ];
260260
261- // Required . When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its
261+ // Optional . When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its
262262 // URL in the "CRL Distribution Points" X.509 extension in all issued
263263 // [Certificates][google.cloud.security.privateca.v1.Certificate]. If this is false, CRLs will not be published
264264 // and the corresponding X.509 extension will not be written in issued
265265 // certificates.
266266 // CRLs will expire 7 days from their creation. However, we will rebuild
267267 // daily. CRLs are also rebuilt shortly after a certificate is revoked.
268- bool publish_crl = 2 [(google.api.field_behavior ) = REQUIRED ];
268+ bool publish_crl = 2 [(google.api.field_behavior ) = OPTIONAL ];
269269 }
270270
271271 // Defines controls over all certificate issuance within a [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -330,13 +330,13 @@ message CaPool {
330330 // [Certificates][google.cloud.security.privateca.v1.Certificate] may be requested from this
331331 // [CaPool][google.cloud.security.privateca.v1.CaPool].
332332 message IssuanceModes {
333- // Required . When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
333+ // Optional . When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
334334 // specifying a CSR.
335- bool allow_csr_based_issuance = 1 [(google.api.field_behavior ) = REQUIRED ];
335+ bool allow_csr_based_issuance = 1 [(google.api.field_behavior ) = OPTIONAL ];
336336
337- // Required . When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
337+ // Optional . When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
338338 // specifying a [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig].
339- bool allow_config_based_issuance = 2 [(google.api.field_behavior ) = REQUIRED ];
339+ bool allow_config_based_issuance = 2 [(google.api.field_behavior ) = OPTIONAL ];
340340 }
341341
342342 // Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
@@ -786,13 +786,15 @@ message CertificateDescription {
786786 string hex_serial_number = 3 ;
787787
788788 // For convenience, the actual lifetime of an issued certificate.
789- // Corresponds to 'not_after_time' - 'not_before_time'.
790789 google.protobuf.Duration lifetime = 4 ;
791790
792791 // The time at which the certificate becomes valid.
793792 google.protobuf.Timestamp not_before_time = 5 ;
794793
795- // The time at which the certificate expires.
794+ // The time after which the certificate is expired.
795+ // Per RFC 5280, the validity period for a certificate is the period of time
796+ // from not_before_time through not_after_time, inclusive.
797+ // Corresponds to 'not_before_time' + 'lifetime' - 1 second.
796798 google.protobuf.Timestamp not_after_time = 6 ;
797799 }
798800
@@ -855,10 +857,10 @@ message X509Extension {
855857 // Required. The OID for this X.509 extension.
856858 ObjectId object_id = 1 [(google.api.field_behavior ) = REQUIRED ];
857859
858- // Required . Indicates whether or not this extension is critical (i.e., if the client
860+ // Optional . Indicates whether or not this extension is critical (i.e., if the client
859861 // does not know how to handle this extension, the client should consider this
860862 // to be an error).
861- bool critical = 2 [(google.api.field_behavior ) = REQUIRED ];
863+ bool critical = 2 [(google.api.field_behavior ) = OPTIONAL ];
862864
863865 // Required. The value of this X.509 extension.
864866 bytes value = 3 [(google.api.field_behavior ) = REQUIRED ];
@@ -992,18 +994,17 @@ message CertificateIdentityConstraints {
992994 // Optional. A CEL expression that may be used to validate the resolved X.509 Subject
993995 // and/or Subject Alternative Name before a certificate is signed.
994996 // To see the full allowed syntax and some examples, see
995- // https://cloud.google.com/certificate-authority-service/docs/cel-guide
997+ // https://cloud.google.com/certificate-authority-service/docs/using-cel
996998 google.type.Expr cel_expression = 1 [(google.api.field_behavior ) = OPTIONAL ];
997999
9981000 // Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
9991001 // request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
1000- // will be discarded. The bool is optional to indicate an unset field, which suggests a forgotten value that needs to be set by the caller.
1002+ // will be discarded.
10011003 optional bool allow_subject_passthrough = 2 [(google.api.field_behavior ) = REQUIRED ];
10021004
10031005 // Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
10041006 // certificate request into the signed certificate. Otherwise, the requested
10051007 // [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
1006- // The bool is optional to indicate an unset field, which suggests a forgotten value that needs to be set by the caller.
10071008 optional bool allow_subject_alt_names_passthrough = 3 [(google.api.field_behavior ) = REQUIRED ];
10081009}
10091010
0 commit comments