You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: serverless/jobs/how-to/reference-secret-in-job.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,13 +39,13 @@ A [job run](/serverless/jobs/concepts/#job-run) accesses each secret at startup,
39
39
40
40
5. Select the desired reference method:
41
41
42
-
-**File**: copies the encrypted value of your secret to a file stored at the indicated location within your container. This method is recommended for large or complex data. For example, if your secret is a certificate, you can store it as a file in the `/my-certificates` folder in your container.
42
+
-**File**: copies the encrypted value of your secret to a file stored at the indicated location within your job. This method is recommended for large or complex data. For example, if your secret is a certificate, you can store it as a file in the `/my-certificates` folder in your job.
43
43
44
-
-**Environment variable**: passes the encrypted value of your secret to your job as a variable. This method is recommended for small pieces of information, such as passwords, or API secret keys. For example, if you name this variable `MY_SECRET`, calling `$MY_SECRET` in your container will return the value of the selected secret in a secure way.
44
+
-**Environment variable**: passes the encrypted value of your secret to your job as a variable. This method is recommended for small pieces of information, such as passwords, or API secret keys. For example, if you name this variable `MY_SECRET`, calling `$MY_SECRET` in your job will return the value of the selected secret in a secure way.
45
45
46
46
6. Click **Add reference** to add the secret to your Serverless Job. Optionally, tick the **Add another reference** to add a new secret right away, then repeat steps 4 to 6.
47
47
48
-
The secret is now referenced in your Serverless Job, and can be used within the container.
48
+
The secret is now referenced in your Serverless Job, and can be used within the job.
49
49
50
50
## Update a secret reference from a job
51
51
@@ -60,7 +60,7 @@ The secret is now referenced in your Serverless Job, and can be used within the
60
60
5. Either update the location of the file, or the name of the environment variable, then click **Update reference** to confirm your changes.
61
61
62
62
<Messagetype="note">
63
-
You cannot change the reference method of an existing secret. You have to delete the secret reference within the job first, then create it again with the desired reference method.
63
+
You cannot change the reference method of an existing secret. To modify it, first delete the secret reference within the job, then create a new one with the desired reference method.
0 commit comments