Skip to content

Commit b233565

Browse files
feat: support secret and encrypted environment variables in v1 (#3828)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 499338464 Source-Link: https://togithub.com/googleapis/googleapis/commit/af050dcf9b72d192ef20b79149a6655a9afee870 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/413df7a1d735359d333c56e19f6af9c7f95957e4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiI0MTNkZjdhMWQ3MzUzNTlkMzMzYzU2ZTE5ZjZhZjljN2Y5NTk1N2U0In0=
1 parent 0c1a4d0 commit b233565

20 files changed

+492
-20
lines changed

packages/google-cloud-batch/.jsdoc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@ module.exports = {
4040
includePattern: '\\.js$'
4141
},
4242
templates: {
43-
copyright: 'Copyright 2022 Google LLC',
43+
copyright: 'Copyright 2023 Google LLC',
4444
includeDate: false,
4545
sourceFiles: false,
4646
systemName: '@google-cloud/batch',

packages/google-cloud-batch/.mocharc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-batch/.prettierrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-batch/protos/google/cloud/batch/v1/task.proto

+17
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
}

packages/google-cloud-batch/protos/protos.d.ts

+119-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)