@@ -198,14 +198,39 @@ message Runnable {
198198 // `container.options` field.
199199 bool block_external_network = 9 ;
200200
201- // Optional username for logging in to a docker registry. If username
202- // matches `projects/*/secrets/*/versions/*` then Batch will read the
203- // username from the Secret Manager.
201+ // Required if the container image is from a private Docker registry. The
202+ // username to login to the Docker registry that contains the image.
203+ //
204+ // You can either specify the username directly by using plain text or
205+ // specify an encrypted username by using a Secret Manager secret:
206+ // `projects/*/secrets/*/versions/*`. However, using a secret is
207+ // recommended for enhanced security.
208+ //
209+ // Caution: If you specify the username using plain text, you risk the
210+ // username being exposed to any users who can view the job or its logs.
211+ // To avoid this risk, specify a secret that contains the username instead.
212+ //
213+ // Learn more about [Secret
214+ // Manager](https://cloud.google.com/secret-manager/docs/) and [using
215+ // Secret Manager with
216+ // Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
204217 string username = 10 ;
205218
206- // Optional password for logging in to a docker registry. If password
207- // matches `projects/*/secrets/*/versions/*` then Batch will read the
208- // password from the Secret Manager;
219+ // Required if the container image is from a private Docker registry. The
220+ // password to login to the Docker registry that contains the image.
221+ //
222+ // For security, it is strongly recommended to specify an
223+ // encrypted password by using a Secret Manager secret:
224+ // `projects/*/secrets/*/versions/*`.
225+ //
226+ // Warning: If you specify the password using plain text, you risk the
227+ // password being exposed to any users who can view the job or its logs.
228+ // To avoid this risk, specify a secret that contains the password instead.
229+ //
230+ // Learn more about [Secret
231+ // Manager](https://cloud.google.com/secret-manager/docs/) and [using
232+ // Secret Manager with
233+ // Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
209234 string password = 11 ;
210235
211236 // Optional. If set to true, this container runnable uses Image streaming.
@@ -238,7 +263,7 @@ message Runnable {
238263 // first line of the file.(For example, to execute the script using bash,
239264 // `#!/bin/bash` should be the first line of the file. To execute the
240265 // script using`Python3`, `#!/usr/bin/env python3` should be the first
241- // line of the file.) Otherwise, the file will by default be excuted by
266+ // line of the file.) Otherwise, the file will by default be executed by
242267 // `/bin/sh`.
243268 string path = 1 ;
244269
@@ -248,7 +273,7 @@ message Runnable {
248273 // beginning of the text.(For example, to execute the script using bash,
249274 // `#!/bin/bash\n` should be added. To execute the script using`Python3`,
250275 // `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
251- // by default be excuted by `/bin/sh`.
276+ // by default be executed by `/bin/sh`.
252277 string text = 2 ;
253278 }
254279 }
0 commit comments