resources.proto 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902
  1. // Copyright 2020 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.security.privateca.v1beta1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/duration.proto";
  19. import "google/protobuf/timestamp.proto";
  20. import "google/protobuf/wrappers.proto";
  21. option cc_enable_arenas = true;
  22. option csharp_namespace = "Google.Cloud.Security.PrivateCA.V1Beta1";
  23. option go_package = "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1;privateca";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "PrivateCaResourcesProto";
  26. option java_package = "com.google.cloud.security.privateca.v1beta1";
  27. option php_namespace = "Google\\Cloud\\Security\\PrivateCA\\V1beta1";
  28. option ruby_package = "Google::Cloud::Security::PrivateCA::V1beta1";
  29. // A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] represents an individual Certificate Authority.
  30. // A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] can be used to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
  31. message CertificateAuthority {
  32. option (google.api.resource) = {
  33. type: "privateca.googleapis.com/CertificateAuthority"
  34. pattern: "projects/{project}/locations/{location}/certificateAuthorities/{certificate_authority}"
  35. };
  36. // Options that affect all certificates issued by a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
  37. message IssuingOptions {
  38. // Required. When true, includes a URL to the issuing CA certificate in the
  39. // "authority information access" X.509 extension.
  40. bool include_ca_cert_url = 1 [(google.api.field_behavior) = REQUIRED];
  41. // Required. When true, includes a URL to the CRL corresponding to certificates
  42. // issued from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
  43. // CRLs will expire 7 days from their creation. However, we will rebuild
  44. // daily. CRLs are also rebuilt shortly after a certificate is revoked.
  45. bool include_crl_access_url = 2 [(google.api.field_behavior) = REQUIRED];
  46. }
  47. // The issuing policy for a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
  48. // [Certificates][google.cloud.security.privateca.v1beta1.Certificate] will not be successfully issued from this
  49. // [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] if they violate the policy.
  50. message CertificateAuthorityPolicy {
  51. message AllowedConfigList {
  52. // Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
  53. // must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
  54. // [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] has an empty field, any value will be
  55. // allowed for that field.
  56. repeated ReusableConfigWrapper allowed_config_values = 1 [(google.api.field_behavior) = REQUIRED];
  57. }
  58. // [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] specifies the allowed values for
  59. // [SubjectAltNames][google.cloud.security.privateca.v1beta1.SubjectAltNames] by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] when issuing
  60. // [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
  61. message AllowedSubjectAltNames {
  62. // Optional. Contains valid, fully-qualified host names. Glob patterns are also
  63. // supported. To allow an explicit wildcard certificate, escape with
  64. // backlash (i.e. `\*`).
  65. // E.g. for globbed entries: `*bar.com` will allow `foo.bar.com`, but not
  66. // `*.bar.com`, unless the [allow_globbing_dns_wildcards][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.allow_globbing_dns_wildcards] field is set.
  67. // E.g. for wildcard entries: `\*.bar.com` will allow `*.bar.com`, but not
  68. // `foo.bar.com`.
  69. repeated string allowed_dns_names = 1 [(google.api.field_behavior) = OPTIONAL];
  70. // Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
  71. // match across path seperators (i.e. '/') use the double star glob
  72. // pattern (i.e. '**').
  73. repeated string allowed_uris = 2 [(google.api.field_behavior) = OPTIONAL];
  74. // Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
  75. // supported.
  76. repeated string allowed_email_addresses = 3 [(google.api.field_behavior) = OPTIONAL];
  77. // Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
  78. // addresses and subnet ranges. Subnet ranges are specified using the
  79. // '/' notation (e.g. 10.0.0.0/8, 2001:700:300:1800::/64). Glob patterns
  80. // are supported only for ip address entries (i.e. not for subnet ranges).
  81. repeated string allowed_ips = 4 [(google.api.field_behavior) = OPTIONAL];
  82. // Optional. Specifies if glob patterns used for [allowed_dns_names][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.allowed_dns_names] allows
  83. // wildcard certificates.
  84. bool allow_globbing_dns_wildcards = 5 [(google.api.field_behavior) = OPTIONAL];
  85. // Optional. Specifies if to allow custom X509Extension values.
  86. bool allow_custom_sans = 6 [(google.api.field_behavior) = OPTIONAL];
  87. }
  88. // [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] specifies the allowed ways in which
  89. // [Certificates][google.cloud.security.privateca.v1beta1.Certificate] may be requested from this
  90. // [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
  91. message IssuanceModes {
  92. // Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
  93. // specifying a CSR.
  94. bool allow_csr_based_issuance = 1 [(google.api.field_behavior) = REQUIRED];
  95. // Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
  96. // specifying a [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig].
  97. bool allow_config_based_issuance = 2 [(google.api.field_behavior) = REQUIRED];
  98. }
  99. // Allowed configurations or a single configuration for all issued
  100. // certificates.
  101. oneof config_policy {
  102. // Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
  103. // must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
  104. AllowedConfigList allowed_config_list = 1 [(google.api.field_behavior) = OPTIONAL];
  105. // Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
  106. // will use the provided configuration values, overwriting any requested
  107. // configuration values.
  108. ReusableConfigWrapper overwrite_config_values = 2 [(google.api.field_behavior) = OPTIONAL];
  109. }
  110. // Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
  111. // [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
  112. // match at least one listed [Subject][google.cloud.security.privateca.v1beta1.Subject]. If a [Subject][google.cloud.security.privateca.v1beta1.Subject] has an empty
  113. // field, any value will be allowed for that field.
  114. repeated Subject allowed_locations_and_organizations = 3 [(google.api.field_behavior) = OPTIONAL];
  115. // Optional. If any value is specified here, then all
  116. // [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
  117. // match at least one listed value. If no value is specified, all values
  118. // will be allowed for this fied. Glob patterns are also supported.
  119. repeated string allowed_common_names = 4 [(google.api.field_behavior) = OPTIONAL];
  120. // Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
  121. // [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
  122. // match [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames]. If no value or an empty value
  123. // is specified, any value will be allowed for the [SubjectAltNames][google.cloud.security.privateca.v1beta1.SubjectAltNames]
  124. // field.
  125. AllowedSubjectAltNames allowed_sans = 5 [(google.api.field_behavior) = OPTIONAL];
  126. // Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
  127. // if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
  128. // requested maximum_lifetime, the effective lifetime will be explicitly
  129. // truncated.
  130. google.protobuf.Duration maximum_lifetime = 6 [(google.api.field_behavior) = OPTIONAL];
  131. // Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
  132. // used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
  133. IssuanceModes allowed_issuance_modes = 8 [(google.api.field_behavior) = OPTIONAL];
  134. }
  135. // URLs where a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will publish content.
  136. message AccessUrls {
  137. // The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
  138. // published. This will only be set for CAs that have been activated.
  139. string ca_certificate_access_url = 1;
  140. // The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
  141. // will only be set for CAs that have been activated.
  142. string crl_access_url = 2;
  143. }
  144. // A Cloud KMS key configuration that a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will use.
  145. message KeyVersionSpec {
  146. oneof KeyVersion {
  147. // Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
  148. // format
  149. // `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
  150. // This option enables full flexibility in the key's capabilities and
  151. // properties.
  152. string cloud_kms_key_version = 1 [(google.api.field_behavior) = REQUIRED];
  153. // Required. The algorithm to use for creating a managed Cloud KMS key for a for a
  154. // simplified experience. All managed keys will be have their
  155. // [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
  156. SignHashAlgorithm algorithm = 2 [(google.api.field_behavior) = REQUIRED];
  157. }
  158. }
  159. // The type of a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], indicating its issuing chain.
  160. enum Type {
  161. // Not specified.
  162. TYPE_UNSPECIFIED = 0;
  163. // Self-signed CA.
  164. SELF_SIGNED = 1;
  165. // Subordinate CA. Could be issued by a Private CA [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
  166. // or an unmanaged CA.
  167. SUBORDINATE = 2;
  168. }
  169. // The tier of a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], indicating its supported
  170. // functionality and/or billing SKU.
  171. enum Tier {
  172. // Not specified.
  173. TIER_UNSPECIFIED = 0;
  174. // Enterprise tier.
  175. ENTERPRISE = 1;
  176. // DevOps tier.
  177. DEVOPS = 2;
  178. }
  179. // The state of a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], indicating if it can be used.
  180. enum State {
  181. // Not specified.
  182. STATE_UNSPECIFIED = 0;
  183. // Certificates can be issued from this CA. CRLs will be generated for this
  184. // CA.
  185. ENABLED = 1;
  186. // Certificates cannot be issued from this CA. CRLs will still be generated.
  187. DISABLED = 2;
  188. // Certificates cannot be issued from this CA. CRLs will not be generated.
  189. PENDING_ACTIVATION = 3;
  190. // Certificates cannot be issued from this CA. CRLs will not be generated.
  191. PENDING_DELETION = 4;
  192. }
  193. // The algorithm of a Cloud KMS CryptoKeyVersion of a
  194. // [CryptoKey][google.cloud.kms.v1.CryptoKey] with the
  195. // [CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] value
  196. // `ASYMMETRIC_SIGN`. These values correspond to the
  197. // [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
  198. // values. For RSA signing algorithms, the PSS algorithms should be preferred,
  199. // use PKCS1 algorithms if required for compatibility. For further
  200. // recommandations, see
  201. // https://cloud.google.com/kms/docs/algorithms#algorithm_recommendations.
  202. enum SignHashAlgorithm {
  203. // Not specified.
  204. SIGN_HASH_ALGORITHM_UNSPECIFIED = 0;
  205. // maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256
  206. RSA_PSS_2048_SHA256 = 1;
  207. // maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256
  208. RSA_PSS_3072_SHA256 = 2;
  209. // maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256
  210. RSA_PSS_4096_SHA256 = 3;
  211. // maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256
  212. RSA_PKCS1_2048_SHA256 = 6;
  213. // maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256
  214. RSA_PKCS1_3072_SHA256 = 7;
  215. // maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256
  216. RSA_PKCS1_4096_SHA256 = 8;
  217. // maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256
  218. EC_P256_SHA256 = 4;
  219. // maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384
  220. EC_P384_SHA384 = 5;
  221. }
  222. // Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
  223. // format `projects/*/locations/*/certificateAuthorities/*`.
  224. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  225. // Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
  226. Type type = 2 [
  227. (google.api.field_behavior) = REQUIRED,
  228. (google.api.field_behavior) = IMMUTABLE
  229. ];
  230. // Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
  231. Tier tier = 3 [
  232. (google.api.field_behavior) = REQUIRED,
  233. (google.api.field_behavior) = IMMUTABLE
  234. ];
  235. // Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
  236. CertificateConfig config = 4 [
  237. (google.api.field_behavior) = REQUIRED,
  238. (google.api.field_behavior) = IMMUTABLE
  239. ];
  240. // Required. The desired lifetime of the CA certificate. Used to create the
  241. // "not_before_time" and "not_after_time" fields inside an X.509
  242. // certificate.
  243. google.protobuf.Duration lifetime = 5 [(google.api.field_behavior) = REQUIRED];
  244. // Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
  245. // [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
  246. // is also used to sign the self-signed CA certificate. Otherwise, it
  247. // is used to sign a CSR.
  248. KeyVersionSpec key_spec = 6 [
  249. (google.api.field_behavior) = REQUIRED,
  250. (google.api.field_behavior) = IMMUTABLE
  251. ];
  252. // Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
  253. // [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
  254. CertificateAuthorityPolicy certificate_policy = 7 [(google.api.field_behavior) = OPTIONAL];
  255. // Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
  256. // from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
  257. IssuingOptions issuing_options = 8 [(google.api.field_behavior) = OPTIONAL];
  258. // Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
  259. // with the subordinate configuration, which describes its issuers. This may
  260. // be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
  261. SubordinateConfig subordinate_config = 19 [(google.api.field_behavior) = OPTIONAL];
  262. // Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
  263. State state = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  264. // Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
  265. // [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
  266. // is the final element (consistent with RFC 5246). For a self-signed CA, this
  267. // will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
  268. repeated string pem_ca_certificates = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  269. // Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
  270. // and its issuers. Ordered as self-to-root.
  271. repeated CertificateDescription ca_certificate_descriptions = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  272. // Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
  273. // publish content, such as the CA certificate and CRLs. This must be a bucket
  274. // name, without any prefixes (such as `gs://`) or suffixes (such as
  275. // `.googleapis.com`). For example, to use a bucket named `my-bucket`, you
  276. // would simply specify `my-bucket`. If not specified, a managed bucket will
  277. // be created.
  278. string gcs_bucket = 13 [(google.api.field_behavior) = IMMUTABLE];
  279. // Output only. URLs for accessing content published by this CA, such as the CA certificate
  280. // and CRLs.
  281. AccessUrls access_urls = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  282. // Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
  283. google.protobuf.Timestamp create_time = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
  284. // Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
  285. google.protobuf.Timestamp update_time = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
  286. // Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
  287. // scheduled for deletion.
  288. google.protobuf.Timestamp delete_time = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
  289. // Optional. Labels with user-defined metadata.
  290. map<string, string> labels = 18 [(google.api.field_behavior) = OPTIONAL];
  291. }
  292. // A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] corresponds to a signed X.509 certificate
  293. // Revocation List (CRL). A CRL contains the serial numbers of certificates that
  294. // should no longer be trusted.
  295. message CertificateRevocationList {
  296. option (google.api.resource) = {
  297. type: "privateca.googleapis.com/CertificateRevocationList"
  298. pattern: "projects/{project}/locations/{location}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list}"
  299. };
  300. // Describes a revoked [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
  301. message RevokedCertificate {
  302. // The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
  303. // `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
  304. string certificate = 1;
  305. // The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
  306. string hex_serial_number = 2;
  307. // The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
  308. RevocationReason revocation_reason = 3;
  309. }
  310. // The state of a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], indicating if it is current.
  311. enum State {
  312. // Not specified.
  313. STATE_UNSPECIFIED = 0;
  314. // The [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] is up to date.
  315. ACTIVE = 1;
  316. // The [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] is no longer current.
  317. SUPERSEDED = 2;
  318. }
  319. // Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
  320. // the format
  321. // `projects/*/locations/*/certificateAuthorities/*/
  322. // certificateRevocationLists/*`.
  323. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  324. // Output only. The CRL sequence number that appears in pem_crl.
  325. int64 sequence_number = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  326. // Output only. The revoked serial numbers that appear in pem_crl.
  327. repeated RevokedCertificate revoked_certificates = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  328. // Output only. The PEM-encoded X.509 CRL.
  329. string pem_crl = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  330. // Output only. The location where 'pem_crl' can be accessed.
  331. string access_url = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  332. // Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
  333. State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  334. // Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
  335. google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  336. // Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
  337. google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  338. // Optional. Labels with user-defined metadata.
  339. map<string, string> labels = 9 [(google.api.field_behavior) = OPTIONAL];
  340. }
  341. // A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] corresponds to a signed X.509 certificate issued by a
  342. // [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
  343. message Certificate {
  344. option (google.api.resource) = {
  345. type: "privateca.googleapis.com/Certificate"
  346. pattern: "projects/{project}/locations/{location}/certificateAuthorities/{certificate_authority}/certificates/{certificate}"
  347. };
  348. // Describes fields that are relavent to the revocation of a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
  349. message RevocationDetails {
  350. // Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
  351. RevocationReason revocation_state = 1;
  352. // The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
  353. google.protobuf.Timestamp revocation_time = 2;
  354. }
  355. // Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
  356. // `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
  357. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  358. // The config used to create a signed X.509 certificate.
  359. oneof certificate_config {
  360. // Immutable. A pem-encoded X.509 certificate signing request (CSR).
  361. string pem_csr = 2 [(google.api.field_behavior) = IMMUTABLE];
  362. // Immutable. A description of the certificate and key that does not require X.509 or
  363. // ASN.1.
  364. CertificateConfig config = 3 [(google.api.field_behavior) = IMMUTABLE];
  365. }
  366. // Required. Immutable. The desired lifetime of a certificate. Used to create the
  367. // "not_before_time" and "not_after_time" fields inside an X.509
  368. // certificate. Note that the lifetime may be truncated if it would extend
  369. // past the life of any certificate authority in the issuing chain.
  370. google.protobuf.Duration lifetime = 4 [
  371. (google.api.field_behavior) = REQUIRED,
  372. (google.api.field_behavior) = IMMUTABLE
  373. ];
  374. // Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
  375. // [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
  376. RevocationDetails revocation_details = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  377. // Output only. The pem-encoded, signed X.509 certificate.
  378. string pem_certificate = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  379. // Output only. A structured description of the issued X.509 certificate.
  380. CertificateDescription certificate_description = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  381. // Output only. The chain that may be used to verify the X.509 certificate. Expected to be
  382. // in issuer-to-root order according to RFC 5246.
  383. repeated string pem_certificate_chain = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  384. // Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
  385. google.protobuf.Timestamp create_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  386. // Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
  387. google.protobuf.Timestamp update_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  388. // Optional. Labels with user-defined metadata.
  389. map<string, string> labels = 11 [(google.api.field_behavior) = OPTIONAL];
  390. }
  391. // A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] refers to a managed [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues]. Those, in
  392. // turn, are used to describe certain fields of an X.509 certificate, such as
  393. // the key usage fields, fields specific to CA certificates, certificate policy
  394. // extensions and custom extensions.
  395. message ReusableConfig {
  396. option (google.api.resource) = {
  397. type: "privateca.googleapis.com/ReusableConfig"
  398. pattern: "projects/{project}/locations/{location}/reusableConfigs/{reusable_config}"
  399. };
  400. // Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
  401. // `projects/*/locations/*/reusableConfigs/*`.
  402. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  403. // Required. The config values.
  404. ReusableConfigValues values = 2 [(google.api.field_behavior) = REQUIRED];
  405. // Optional. A human-readable description of scenarios these ReusableConfigValues may be
  406. // compatible with.
  407. string description = 3 [(google.api.field_behavior) = OPTIONAL];
  408. // Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was created.
  409. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  410. // Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
  411. google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  412. // Optional. Labels with user-defined metadata.
  413. map<string, string> labels = 6 [(google.api.field_behavior) = OPTIONAL];
  414. }
  415. // A [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] is used to describe certain fields of an
  416. // X.509 certificate, such as the key usage fields, fields specific to CA
  417. // certificates, certificate policy extensions and custom extensions.
  418. message ReusableConfigValues {
  419. // Describes values that are relevant in a CA certificate.
  420. message CaOptions {
  421. // Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
  422. // value is missing, the extension will be omitted from the CA certificate.
  423. google.protobuf.BoolValue is_ca = 1 [(google.api.field_behavior) = OPTIONAL];
  424. // Optional. Refers to the path length restriction X.509 extension. For a CA
  425. // certificate, this value describes the depth of subordinate CA
  426. // certificates that are allowed.
  427. // If this value is less than 0, the request will fail.
  428. // If this value is missing, the max path length will be omitted from the
  429. // CA certificate.
  430. google.protobuf.Int32Value max_issuer_path_length = 2 [(google.api.field_behavior) = OPTIONAL];
  431. }
  432. // Optional. Indicates the intended use for keys that correspond to a certificate.
  433. KeyUsage key_usage = 1 [(google.api.field_behavior) = OPTIONAL];
  434. // Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
  435. // relevant in a CA certificate.
  436. CaOptions ca_options = 2 [(google.api.field_behavior) = OPTIONAL];
  437. // Optional. Describes the X.509 certificate policy object identifiers, per
  438. // https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
  439. repeated ObjectId policy_ids = 3 [(google.api.field_behavior) = OPTIONAL];
  440. // Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
  441. // that appear in the "Authority Information Access" extension in the
  442. // certificate.
  443. repeated string aia_ocsp_servers = 4 [(google.api.field_behavior) = OPTIONAL];
  444. // Optional. Describes custom X.509 extensions.
  445. repeated X509Extension additional_extensions = 5 [(google.api.field_behavior) = OPTIONAL];
  446. }
  447. // A [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] describes values that may assist in creating an
  448. // X.509 certificate, or a reference to a pre-defined set of values.
  449. message ReusableConfigWrapper {
  450. // Reusable or inline config values.
  451. oneof config_values {
  452. // Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
  453. // `projects/*/locations/*/reusableConfigs/*`.
  454. string reusable_config = 1 [(google.api.field_behavior) = REQUIRED];
  455. // Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
  456. ReusableConfigValues reusable_config_values = 2 [(google.api.field_behavior) = REQUIRED];
  457. }
  458. }
  459. // Describes a subordinate CA's issuers. This is either a resource path to a
  460. // known issuing [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], or a PEM issuer certificate chain.
  461. message SubordinateConfig {
  462. // This message describes a subordinate CA's issuer certificate chain. This
  463. // wrapper exists for compatibility reasons.
  464. message SubordinateConfigChain {
  465. // Required. Expected to be in leaf-to-root order according to RFC 5246.
  466. repeated string pem_certificates = 1 [(google.api.field_behavior) = REQUIRED];
  467. }
  468. oneof subordinate_config {
  469. // Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
  470. // was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
  471. // is used for information and usability purposes only. The resource name
  472. // is in the format `projects/*/locations/*/certificateAuthorities/*`.
  473. string certificate_authority = 1 [(google.api.field_behavior) = REQUIRED];
  474. // Required. Contains the PEM certificate chain for the issuers of this
  475. // [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
  476. SubordinateConfigChain pem_issuer_chain = 2 [(google.api.field_behavior) = REQUIRED];
  477. }
  478. }
  479. // A [PublicKey][google.cloud.security.privateca.v1beta1.PublicKey] describes a public key.
  480. message PublicKey {
  481. // Types of public keys that are supported.
  482. // At a minimum, we support RSA and ECDSA, for the key sizes or curves listed:
  483. // https://cloud.google.com/kms/docs/algorithms#asymmetric_signing_algorithms
  484. enum KeyType {
  485. // Default unspecified value.
  486. KEY_TYPE_UNSPECIFIED = 0;
  487. // A PEM-encoded PKCS#1/RFC 3447 RSAPrivateKey structure.
  488. PEM_RSA_KEY = 1;
  489. // A PEM-encoded compressed NIST P-256/secp256r1/prime256v1 or P-384 key.
  490. PEM_EC_KEY = 2;
  491. }
  492. // Required. The type of public key.
  493. KeyType type = 1 [(google.api.field_behavior) = REQUIRED];
  494. // Required. A public key. Padding and encoding varies by 'KeyType' and is described
  495. // along with the KeyType values.
  496. bytes key = 2 [(google.api.field_behavior) = REQUIRED];
  497. }
  498. // A [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig] describes an X.509 certificate or CSR that is to be
  499. // created, as an alternative to using ASN.1.
  500. message CertificateConfig {
  501. // These values are used to create the distinguished name and subject
  502. // alternative name fields in an X.509 certificate.
  503. message SubjectConfig {
  504. // Required. Contains distinguished name fields such as the location and organization.
  505. Subject subject = 1 [(google.api.field_behavior) = REQUIRED];
  506. // Optional. The "common name" of the distinguished name.
  507. string common_name = 2 [(google.api.field_behavior) = OPTIONAL];
  508. // Optional. The subject alternative name fields.
  509. SubjectAltNames subject_alt_name = 3 [(google.api.field_behavior) = OPTIONAL];
  510. }
  511. // Required. Specifies some of the values in a certificate that are related to the
  512. // subject.
  513. SubjectConfig subject_config = 1 [(google.api.field_behavior) = REQUIRED];
  514. // Required. Describes how some of the technical fields in a certificate should be
  515. // populated.
  516. ReusableConfigWrapper reusable_config = 2 [(google.api.field_behavior) = REQUIRED];
  517. // Optional. The public key that corresponds to this config. This is, for example, used
  518. // when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
  519. // self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
  520. PublicKey public_key = 3 [(google.api.field_behavior) = OPTIONAL];
  521. }
  522. // A [CertificateDescription][google.cloud.security.privateca.v1beta1.CertificateDescription] describes an X.509 certificate or CSR that has
  523. // been issued, as an alternative to using ASN.1 / X.509.
  524. message CertificateDescription {
  525. // These values describe fields in an issued X.509 certificate such as the
  526. // distinguished name, subject alternative names, serial number, and lifetime.
  527. message SubjectDescription {
  528. // Contains distinguished name fields such as the location and organization.
  529. Subject subject = 1;
  530. // The "common name" of the distinguished name.
  531. string common_name = 2;
  532. // The subject alternative name fields.
  533. SubjectAltNames subject_alt_name = 3;
  534. // The serial number encoded in lowercase hexadecimal.
  535. string hex_serial_number = 4;
  536. // For convenience, the actual lifetime of an issued certificate.
  537. // Corresponds to 'not_after_time' - 'not_before_time'.
  538. google.protobuf.Duration lifetime = 5;
  539. // The time at which the certificate becomes valid.
  540. google.protobuf.Timestamp not_before_time = 6;
  541. // The time at which the certificate expires.
  542. google.protobuf.Timestamp not_after_time = 7;
  543. }
  544. // A KeyId identifies a specific public key, usually by hashing the public
  545. // key.
  546. message KeyId {
  547. // Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
  548. // likely the 160 bit SHA-1 hash of the public key.
  549. string key_id = 1 [(google.api.field_behavior) = OPTIONAL];
  550. }
  551. // A group of fingerprints for the x509 certificate.
  552. message CertificateFingerprint {
  553. // The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
  554. string sha256_hash = 1;
  555. }
  556. // Describes some of the values in a certificate that are related to the
  557. // subject and lifetime.
  558. SubjectDescription subject_description = 1;
  559. // Describes some of the technical fields in a certificate.
  560. ReusableConfigValues config_values = 2;
  561. // The public key that corresponds to an issued certificate.
  562. PublicKey public_key = 3;
  563. // Provides a means of identifiying certificates that contain a particular
  564. // public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
  565. KeyId subject_key_id = 4;
  566. // Identifies the subject_key_id of the parent certificate, per
  567. // https://tools.ietf.org/html/rfc5280#section-4.2.1.1
  568. KeyId authority_key_id = 5;
  569. // Describes a list of locations to obtain CRL information, i.e.
  570. // the DistributionPoint.fullName described by
  571. // https://tools.ietf.org/html/rfc5280#section-4.2.1.13
  572. repeated string crl_distribution_points = 6;
  573. // Describes lists of issuer CA certificate URLs that appear in the
  574. // "Authority Information Access" extension in the certificate.
  575. repeated string aia_issuing_certificate_urls = 7;
  576. // The hash of the x.509 certificate.
  577. CertificateFingerprint cert_fingerprint = 8;
  578. }
  579. // An [ObjectId][google.cloud.security.privateca.v1beta1.ObjectId] specifies an object identifier (OID). These provide context
  580. // and describe types in ASN.1 messages.
  581. message ObjectId {
  582. // Required. The parts of an OID path. The most significant parts of the path come
  583. // first.
  584. repeated int32 object_id_path = 1 [(google.api.field_behavior) = REQUIRED];
  585. }
  586. // An [X509Extension][google.cloud.security.privateca.v1beta1.X509Extension] specifies an X.509 extension, which may be used in
  587. // different parts of X.509 objects like certificates, CSRs, and CRLs.
  588. message X509Extension {
  589. // Required. The OID for this X.509 extension.
  590. ObjectId object_id = 1 [(google.api.field_behavior) = REQUIRED];
  591. // Required. Indicates whether or not this extension is critical (i.e., if the client
  592. // does not know how to handle this extension, the client should consider this
  593. // to be an error).
  594. bool critical = 2 [(google.api.field_behavior) = REQUIRED];
  595. // Required. The value of this X.509 extension.
  596. bytes value = 3 [(google.api.field_behavior) = REQUIRED];
  597. }
  598. // A [KeyUsage][google.cloud.security.privateca.v1beta1.KeyUsage] describes key usage values that may appear in an X.509
  599. // certificate.
  600. message KeyUsage {
  601. // [KeyUsage.KeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions] corresponds to the key usage values
  602. // described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
  603. message KeyUsageOptions {
  604. // The key may be used for digital signatures.
  605. bool digital_signature = 1;
  606. // The key may be used for cryptographic commitments. Note that this may
  607. // also be referred to as "non-repudiation".
  608. bool content_commitment = 2;
  609. // The key may be used to encipher other keys.
  610. bool key_encipherment = 3;
  611. // The key may be used to encipher data.
  612. bool data_encipherment = 4;
  613. // The key may be used in a key agreement protocol.
  614. bool key_agreement = 5;
  615. // The key may be used to sign certificates.
  616. bool cert_sign = 6;
  617. // The key may be used sign certificate revocation lists.
  618. bool crl_sign = 7;
  619. // The key may be used to encipher only.
  620. bool encipher_only = 8;
  621. // The key may be used to decipher only.
  622. bool decipher_only = 9;
  623. }
  624. // [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] has fields that correspond to
  625. // certain common OIDs that could be specified as an extended key usage value.
  626. message ExtendedKeyUsageOptions {
  627. // Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
  628. // server authentication", though regularly used for non-WWW TLS.
  629. bool server_auth = 1;
  630. // Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
  631. // client authentication", though regularly used for non-WWW TLS.
  632. bool client_auth = 2;
  633. // Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
  634. // downloadable executable code client authentication".
  635. bool code_signing = 3;
  636. // Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
  637. // protection".
  638. bool email_protection = 4;
  639. // Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
  640. // the hash of an object to a time".
  641. bool time_stamping = 5;
  642. // Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
  643. // OCSP responses".
  644. bool ocsp_signing = 6;
  645. }
  646. // Describes high-level ways in which a key may be used.
  647. KeyUsageOptions base_key_usage = 1;
  648. // Detailed scenarios in which a key may be used.
  649. ExtendedKeyUsageOptions extended_key_usage = 2;
  650. // Used to describe extended key usages that are not listed in the
  651. // [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
  652. repeated ObjectId unknown_extended_key_usages = 3;
  653. }
  654. // [Subject][google.cloud.security.privateca.v1beta1.Subject] describes parts of a distinguished name that, in turn,
  655. // describes the subject of the certificate.
  656. message Subject {
  657. // The country code of the subject.
  658. string country_code = 1;
  659. // The organization of the subject.
  660. string organization = 2;
  661. // The organizational_unit of the subject.
  662. string organizational_unit = 3;
  663. // The locality or city of the subject.
  664. string locality = 4;
  665. // The province, territory, or regional state of the subject.
  666. string province = 5;
  667. // The street address of the subject.
  668. string street_address = 6;
  669. // The postal code of the subject.
  670. string postal_code = 7;
  671. }
  672. // [SubjectAltNames][google.cloud.security.privateca.v1beta1.SubjectAltNames] corresponds to a more modern way of listing what
  673. // the asserted identity is in a certificate (i.e., compared to the "common
  674. // name" in the distinguished name).
  675. message SubjectAltNames {
  676. // Contains only valid, fully-qualified host names.
  677. repeated string dns_names = 1;
  678. // Contains only valid RFC 3986 URIs.
  679. repeated string uris = 2;
  680. // Contains only valid RFC 2822 E-mail addresses.
  681. repeated string email_addresses = 3;
  682. // Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
  683. repeated string ip_addresses = 4;
  684. // Contains additional subject alternative name values.
  685. repeated X509Extension custom_sans = 5;
  686. }
  687. // A [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] indicates whether a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been revoked,
  688. // and the reason for revocation. These correspond to standard revocation
  689. // reasons from RFC 5280. Note that the enum labels and values in this
  690. // definition are not the same ASN.1 values defined in RFC 5280. These values
  691. // will be translated to the correct ASN.1 values when a CRL is created.
  692. enum RevocationReason {
  693. // Default unspecified value. This value does indicate that a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]
  694. // has been revoked, but that a reason has not been recorded.
  695. REVOCATION_REASON_UNSPECIFIED = 0;
  696. // Key material for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] may have leaked.
  697. KEY_COMPROMISE = 1;
  698. // The key material for a certificate authority in the issuing path may have
  699. // leaked.
  700. CERTIFICATE_AUTHORITY_COMPROMISE = 2;
  701. // The subject or other attributes in this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] have changed.
  702. AFFILIATION_CHANGED = 3;
  703. // This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been superseded.
  704. SUPERSEDED = 4;
  705. // This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] or entities in the issuing path have ceased to
  706. // operate.
  707. CESSATION_OF_OPERATION = 5;
  708. // This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] should not be considered valid, it is expected that it
  709. // may become valid in the future.
  710. CERTIFICATE_HOLD = 6;
  711. // This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] no longer has permission to assert the listed
  712. // attributes.
  713. PRIVILEGE_WITHDRAWN = 7;
  714. // The authority which determines appropriate attributes for a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]
  715. // may have been compromised.
  716. ATTRIBUTE_AUTHORITY_COMPROMISE = 8;
  717. }