Class: Google::Cloud::Build::V1::Secret
- Inherits:
-
Object
- Object
- Google::Cloud::Build::V1::Secret
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb
Overview
Pairs a set of secret environment variables containing encrypted
values with the Cloud KMS key to use to decrypt the value.
Note: Use kmsKeyName
with available_secrets
instead of using
kmsKeyName
with secret
. For instructions see:
https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
Defined Under Namespace
Classes: SecretEnvEntry
Instance Attribute Summary collapse
-
#kms_key_name ⇒ ::String
Cloud KMS key name to use to decrypt these envs.
-
#secret_env ⇒ ::Google::Protobuf::Map{::String => ::String}
Map of environment variable name to its encrypted value.
Instance Attribute Details
#kms_key_name ⇒ ::String
Returns Cloud KMS key name to use to decrypt these envs.
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1076 class Secret include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SecretEnvEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#secret_env ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Map of environment variable name to its encrypted value.
Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1076 class Secret include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SecretEnvEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |