@@ -179,14 +179,39 @@ message Runnable {
179179 // `container.options` field.
180180 bool block_external_network = 9 ;
181181
182- // Optional username for logging in to a docker registry. If username
183- // matches `projects/*/secrets/*/versions/*` then Batch will read the
184- // username from the Secret Manager.
182+ // Required if the container image is from a private Docker registry. The
183+ // username to login to the Docker registry that contains the image.
184+ //
185+ // You can either specify the username directly by using plain text or
186+ // specify an encrypted username by using a Secret Manager secret:
187+ // `projects/*/secrets/*/versions/*`. However, using a secret is
188+ // recommended for enhanced security.
189+ //
190+ // Caution: If you specify the username using plain text, you risk the
191+ // username being exposed to any users who can view the job or its logs.
192+ // To avoid this risk, specify a secret that contains the username instead.
193+ //
194+ // Learn more about [Secret
195+ // Manager](https://cloud.google.com/secret-manager/docs/) and [using
196+ // Secret Manager with
197+ // Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
185198 string username = 10 ;
186199
187- // Optional password for logging in to a docker registry. If password
188- // matches `projects/*/secrets/*/versions/*` then Batch will read the
189- // password from the Secret Manager;
200+ // Required if the container image is from a private Docker registry. The
201+ // password to login to the Docker registry that contains the image.
202+ //
203+ // For security, it is strongly recommended to specify an
204+ // encrypted password by using a Secret Manager secret:
205+ // `projects/*/secrets/*/versions/*`.
206+ //
207+ // Warning: If you specify the password using plain text, you risk the
208+ // password being exposed to any users who can view the job or its logs.
209+ // To avoid this risk, specify a secret that contains the password instead.
210+ //
211+ // Learn more about [Secret
212+ // Manager](https://cloud.google.com/secret-manager/docs/) and [using
213+ // Secret Manager with
214+ // Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
190215 string password = 11 ;
191216
192217 // Optional. If set to true, this container runnable uses Image streaming.
@@ -219,7 +244,7 @@ message Runnable {
219244 // first line of the file.(For example, to execute the script using bash,
220245 // `#!/bin/bash` should be the first line of the file. To execute the
221246 // script using`Python3`, `#!/usr/bin/env python3` should be the first
222- // line of the file.) Otherwise, the file will by default be excuted by
247+ // line of the file.) Otherwise, the file will by default be executed by
223248 // `/bin/sh`.
224249 string path = 1 ;
225250
@@ -229,7 +254,7 @@ message Runnable {
229254 // beginning of the text.(For example, to execute the script using bash,
230255 // `#!/bin/bash\n` should be added. To execute the script using`Python3`,
231256 // `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
232- // by default be excuted by `/bin/sh`.
257+ // by default be executed by `/bin/sh`.
233258 string text = 2 ;
234259 }
235260 }
0 commit comments