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
[Secrets Store] Review for consistency and clarity in examples and limits (#21795)
* Fix access-control info about Account Super Admins
* Revise examples so bindings vs secret names are not mixed up
* Touch up example secret name in commands.mdx
* Make prereqs and local dev callouts clearer
* Fix typo and add monospaced h3s for consistency
* Fix order to match list at the top of the page
* Improve context and cross-linking
* Clarify maximum of 20 secrets only apply to production
* Use placeholder for binding variable and apply throughout
Copy file name to clipboardExpand all lines: src/content/docs/secrets-store/access-control.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ While all Cloudflare accounts will have access to the Secrets Store section on t
17
17
18
18
Refer to the list below for default role definitions.
19
19
20
-
-**Super Administrator**: Can create, edit, duplicate, delete, and view secrets metadata.
20
+
-**Super Administrator**: Can create, edit, duplicate, delete, and view secrets metadata. Can also [add a Secrets Store binding to a Worker](/secrets-store/integrations/workers/).
21
21
-**Secrets Store Admin**: Can create, edit, duplicate, delete, and view secrets metadata.
22
22
-**Secrets Store Deployer**: Can view secrets metadata but cannot create, edit, duplicate, nor delete secrets. Can also [add a Secrets Store binding to a Worker](/secrets-store/integrations/workers/).
23
23
-**Secrets Store Reporter**: Can view secrets metadata. Cannot perform any actions (create, edit, duplicate, delete secrets), nor add a Secrets Store binding to a Worker.
Copy file name to clipboardExpand all lines: src/content/docs/secrets-store/integrations/workers.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,17 +19,17 @@ This is different from Workers [Variables and Secrets](/workers/configuration/se
19
19
20
20
- If [using the Dashboard](#via-dashboard), make sure you already have a Workers application. Refer to the [Workers get started](/workers/get-started/dashboard/) for guidance.
21
21
22
-
- You should also have a store created under the Secrets Store tab on the Dashboard.
23
-
- The first store in your account is created automatically when a user with [Super Administrator or Secrets Store Admin role](/secrets-store/access-control/) interacts with it.
24
-
- You can also use the [Wrangler command](/workers/wrangler/commands/#secrets-store-store)`secrets-store store create <name> --remote` to create your first store.
22
+
- You should also have a store created under the **Secrets Store** tab on the Dashboard. The first store in your account is created automatically when a user with [Super Administrator or Secrets Store Admin role](/secrets-store/access-control/) interacts with it.
23
+
24
+
- If no store exists in your account yet and you have the necessary permissions, you can use the [Wrangler command](/workers/wrangler/commands/#secrets-store-store)`secrets-store store create <name> --remote` to create your first store.
25
25
26
26
:::caution[Local development mode]
27
-
This guide assumes you are working in production. To use Secrets Store locally, you must use `secrets-store`[Wrangler commands](/workers/wrangler/commands/) without the `--remote` flag.
27
+
This guide assumes you are working in production. To use Secrets Store locally, you must use `secrets-store secret`[Wrangler commands](/workers/wrangler/commands/) without the `--remote` flag.
28
28
:::
29
29
30
30
## 1. Set up account secrets in Secrets Store
31
31
32
-
If there are no secrets in the store yet, follow the steps below. You must have a [Super Administrator or a Secrets Store Admin role](/secrets-store/access-control/) within your Cloudflare account.
32
+
Follow the steps below to create secrets. You must have a [Super Administrator or a Secrets Store Admin role](/secrets-store/access-control/) within your Cloudflare account.
33
33
34
34
:::note
35
35
You may also add account secrets directly from the Workers settings on the dashboard. You can skip to [step 2](#via-dashboard) to do that.
@@ -112,7 +112,7 @@ To bind an account secret to your Worker, you must have one of the following [ro
You cannot access production secrets (created on the dashboard, via API, or with the `--remote` flag) from your local development setup. To use Secrets Store locally, you must use [secrets-store Wrangler commands](/workers/wrangler/commands/) without the `--remote` flag.
143
+
You cannot access production secrets (created on the dashboard, via API, or with the `--remote` flag) from your local development setup. To use Secrets Store locally, you must use `secrets-store secret`[Wrangler commands](/workers/wrangler/commands/) without the `--remote` flag.
144
144
:::
145
145
146
146
```js
147
147
exportdefault {
148
148
asyncfetch(request, env) {
149
149
// Example of using the secret safely in an API request
Copy file name to clipboardExpand all lines: src/content/docs/secrets-store/manage-secrets/how-to.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ You must have a [Super Administrator or Secrets Store Admin role](/secrets-store
13
13
14
14
## Manage via Wrangler
15
15
16
-
For Wrangler commands, refer to [Cloudflare Workers](/workers/wrangler/commands/#secrets-store-secret)documentation.
16
+
[Wrangler](/workers/wrangler/) is a command-line interface (CLI) that allows you to manage [Cloudflare Workers](/workers/) projects. Refer to [Wrangler commands](/workers/wrangler/commands/#secrets-store-secret)for guidance on how to use it with Secrets Store.
Copy file name to clipboardExpand all lines: src/content/docs/secrets-store/manage-secrets/index.mdx
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,11 @@ Once a secret is added to the Secrets Store, it can no longer be decrypted or ac
14
14
15
15
## Limits
16
16
17
-
Customers who create a secrets store in the open beta can have up to 20 secrets per account.
17
+
Customers who create a secrets store in the open beta can have up to 20 secrets per account. Also, there can only be one store per account.
18
+
19
+
:::note[Production secrets]
20
+
If you use [Wrangler](/secrets-store/manage-secrets/how-to/#manage-via-wrangler), there is a difference between production secrets and secrets that are only created locally (without the `--remote` flag). The limit of 20 secrets per account only considers production secrets.
- The secret store public ID. You can find it and copy from the [Secrets Store tab](https://dash.cloudflare.com/?to=/:account/secrets-store/) on the dashboard.
560
-
561
-
The following is an example of using the `delete` command to delete a store.
562
-
563
-
```sh
564
-
npx wrangler secrets-store store delete d2dafaeac9434de2b6d08b292ce08211
- The secret store public ID. You can find it and copy from the [Secrets Store tab](https://dash.cloudflare.com/?to=/:account/secrets-store/) on the dashboard.
744
669
670
+
## `secrets-store store`
671
+
672
+
Use the following commands to manage your store.
673
+
674
+
:::note[Store limitation]
675
+
[Secrets Store](/secrets-store/) is in open beta. Currently, you can only have one store per Cloudflare account.
- The secret store public ID. You can find it and copy from the [Secrets Store tab](https://dash.cloudflare.com/?to=/:account/secrets-store/) on the dashboard.
710
+
711
+
The following is an example of using the `delete` command to delete a store.
712
+
713
+
```sh
714
+
npx wrangler secrets-store store delete d2dafaeac9434de2b6d08b292ce08211
0 commit comments