Skip to content

Commit af050dc

Browse files
Google APIscopybara-github
authored andcommitted
feat: support secret and encrypted environment variables in v1
PiperOrigin-RevId: 499338464
1 parent 882eada commit af050dc

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

google/cloud/batch/v1/task.proto

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,23 @@ message Task {
291291
// An Environment describes a collection of environment variables to set when
292292
// executing Tasks.
293293
message Environment {
294+
message KMSEnvMap {
295+
// The name of the KMS key that will be used to decrypt the cipher text.
296+
string key_name = 1;
297+
298+
// The value of the cipherText response from the `encrypt` method.
299+
string cipher_text = 2;
300+
}
301+
294302
// A map of environment variable names to values.
295303
map<string, string> variables = 1;
304+
305+
// A map of environment variable names to Secret Manager secret names.
306+
// The VM will access the named secrets to set the value of each environment
307+
// variable.
308+
map<string, string> secret_variables = 2;
309+
310+
// An encrypted JSON dictionary where the key/value pairs correspond to
311+
// environment variable names and their values.
312+
KMSEnvMap encrypted_variables = 3;
296313
}

0 commit comments

Comments
 (0)