Skip to content

Commit 4053e7a

Browse files
Further develop workers guide outline and fill in dash steps
1 parent 31c5239 commit 4053e7a

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

src/content/docs/secrets-store/integrations/workers.mdx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ This is different from Workers [Variables and Secrets](/workers/configuration/se
1414

1515
## Before you begin
1616

17-
If using the Dashboard, make sure you already have a Workers application. Refer to [Get started](/workers/get-started/dashboard/) for guidance.
17+
If [using the Dashboard](#option-b-use-the-dashboard), make sure you already have a Workers application. Refer to [Get started](/workers/get-started/dashboard/) for guidance.
1818

19-
### Set up account secrets in Secrets Store
19+
## 1. Set up account secrets in Secrets Store
2020

21-
If there are no account secrets yet, follow the steps below. You must have a (TBC)[Super Administrator or a Secrets Store Admin role](/secrets-store/access-control/) within your Cloudflare account.
21+
If there are no account secrets yet, follow the steps below. You must have a (TBC) [Super Administrator or a Secrets Store Admin role](/secrets-store/access-control/) within your Cloudflare account.
2222

2323
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2424
2. Go to **Secrets Store** and select **Create secret**.
@@ -31,8 +31,22 @@ Once the secret is saved, the secret value will no longer be available for viewi
3131

3232
Refer to [manage account secrets](/secrets-store/manage-secrets/) for further options.
3333

34-
## Bind an account secret to your worker
34+
## 2. Bind an account secret to your worker
35+
36+
(TBC) You must have one of the following [roles within your Cloudflare account](/secrets-store/access-control/):
37+
- Super Administrator
38+
- Secrets Store Admin
39+
- Secrets Store Deploy
3540

3641
### Option A: use the CLI
3742

38-
### Option B: use the Dashboard
43+
### Option B: use the Dashboard
44+
45+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
46+
2. Go to **Workers & Pages** and select the Workers application where you want ro use account secrets.
47+
3. Got to **Settings** > **Bindings** and select **Add**.
48+
4. On the **Add a resource binding** side panel, choose **Secrets Store**.
49+
5. Select the **Secret name** from the list of available account secrets (created in [step 1](#1-set-up-account-secrets-in-secrets-store)).
50+
6. Select **Deploy** to confirm.
51+
52+
## 3. Access the secret on the `env` object

0 commit comments

Comments
 (0)