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: src/content/docs/secrets-store/integrations/workers.mdx
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ sidebar:
6
6
label: Use with Workers
7
7
---
8
8
9
+
import { WranglerConfig } from"~/components";
10
+
9
11
Consider the steps below to learn how to use values from your account [Secrets Store](/secrets-store/) with [Cloudflare Workers](/workers/).
10
12
11
13
:::note
@@ -34,13 +36,33 @@ Refer to [manage account secrets](/secrets-store/manage-secrets/) for further op
34
36
35
37
## 2. Bind an account secret to your Worker
36
38
39
+
[Bindings](/workers/runtime-apis/bindings/) allow your Worker to interact with resources on your Cloudflare account.
40
+
37
41
(TBC) You must have one of the following [roles within your Cloudflare account](/secrets-store/access-control/):
38
42
- Super Administrator
39
43
- Secrets Store Admin
40
44
- Secrets Store Deploy
41
45
42
46
### Option A: via Wrangler
43
47
48
+
(TBC)
49
+
1. Add a Secrets Store binding to your [Wrangler configuration file](/workers/wrangler/configuration/):
50
+
-`binding`: a descriptive name for your binding. This will be used in the Workers application when [accessing your secret on the `env` object](/secrets-store/integrations/workers/#3-access-the-secret-on-the-env-object).
51
+
-`store_id`: the corresponding Secrets Store ID where your account secret was created.
52
+
-`secret_name`: the unique secret name, defined when your account secret was created.
0 commit comments