|
1 |
| -// Copyright 2020 Google LLC |
| 1 | +// Copyright 2021 Google LLC |
2 | 2 | //
|
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License");
|
4 | 4 | // you may not use this file except in compliance with the License.
|
@@ -70,6 +70,10 @@ message Secret {
|
70 | 70 | // No more than 64 labels can be assigned to a given resource.
|
71 | 71 | map<string, string> labels = 4;
|
72 | 72 |
|
| 73 | + // Optional. A list of up to 10 Pub/Sub topics to which messages are published when |
| 74 | + // control plane operations are called on the secret or its versions. |
| 75 | + repeated Topic topics = 5 [(google.api.field_behavior) = OPTIONAL]; |
| 76 | + |
73 | 77 | // Expiration policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. If specified the [Secret][google.cloud.secretmanager.v1.Secret]
|
74 | 78 | // and all [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] will be automatically deleted at
|
75 | 79 | // expiration. Expired secrets are irreversibly deleted.
|
@@ -260,6 +264,20 @@ message CustomerManagedEncryptionStatus {
|
260 | 264 | string kms_key_version_name = 1 [(google.api.field_behavior) = REQUIRED];
|
261 | 265 | }
|
262 | 266 |
|
| 267 | +// A Pub/Sub topic which Secret Manager will publish to when control plane |
| 268 | +// events occur on this secret. |
| 269 | +message Topic { |
| 270 | + option (google.api.resource) = { |
| 271 | + type: "pubsub.googleapis.com/Topic" |
| 272 | + pattern: "projects/{project}/topics/{topic}" |
| 273 | + }; |
| 274 | + |
| 275 | + // Required. The resource name of the Pub/Sub topic that will be published to, in the |
| 276 | + // following format: `projects/*/topics/*`. For publication to succeed, the |
| 277 | + // Secret Manager P4SA must have `pubsub.publisher` permissions on the topic. |
| 278 | + string name = 1 [(google.api.field_behavior) = REQUIRED]; |
| 279 | +} |
| 280 | + |
263 | 281 | // A secret payload resource in the Secret Manager API. This contains the
|
264 | 282 | // sensitive secret payload that is associated with a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
|
265 | 283 | message SecretPayload {
|
|
0 commit comments