Skip to content

Commit

Permalink
feat: support secret and encrypted environment variables in v1 (#3828)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 499338464

Source-Link: https://github.com/googleapis/googleapis/commit/af050dcf9b72d192ef20b79149a6655a9afee870

Source-Link: https://github.com/googleapis/googleapis-gen/commit/413df7a1d735359d333c56e19f6af9c7f95957e4
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiI0MTNkZjdhMWQ3MzUzNTlkMzMzYzU2ZTE5ZjZhZjljN2Y5NTk1N2U0In0=
  • Loading branch information
gcf-owl-bot[bot] authored Jan 5, 2023
1 parent 0c1a4d0 commit b233565
Show file tree
Hide file tree
Showing 20 changed files with 492 additions and 20 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-batch/.jsdoc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Google LLC
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,7 +40,7 @@ module.exports = {
includePattern: '\\.js$'
},
templates: {
copyright: 'Copyright 2022 Google LLC',
copyright: 'Copyright 2023 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/batch',
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-batch/.mocharc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Google LLC
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-batch/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Google LLC
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,23 @@ message Task {
// An Environment describes a collection of environment variables to set when
// executing Tasks.
message Environment {
message KMSEnvMap {
// The name of the KMS key that will be used to decrypt the cipher text.
string key_name = 1;

// The value of the cipherText response from the `encrypt` method.
string cipher_text = 2;
}

// A map of environment variable names to values.
map<string, string> variables = 1;

// A map of environment variable names to Secret Manager secret names.
// The VM will access the named secrets to set the value of each environment
// variable.
map<string, string> secret_variables = 2;

// An encrypted JSON dictionary where the key/value pairs correspond to
// environment variable names and their values.
KMSEnvMap encrypted_variables = 3;
}
120 changes: 119 additions & 1 deletion packages/google-cloud-batch/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b233565

Please sign in to comment.