Skip to content

Commit c048bc0

Browse files
Add note about use of spaces in secret names
1 parent ed002a7 commit c048bc0

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ You may also add account secrets directly from the Workers settings on the dashb
3939

4040
</TabItem> <TabItem label="API">
4141

42+
:::note
43+
A secret `name` cannot contain spaces.
44+
:::
45+
4246
```bash
4347
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/secrets_store/stores/$STORE_ID/secrets \
4448
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \

src/content/docs/secrets-store/manage-secrets/how-to.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ For Wrangler commands, refer to [Cloudflare Workers](/workers/wrangler/commands/
2727

2828
</TabItem> <TabItem label="API">
2929

30+
:::note
31+
A secret `name` cannot contain spaces.
32+
:::
33+
3034
```bash
3135
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/secrets_store/stores/$STORE_ID/secrets \
3236
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
@@ -64,6 +68,10 @@ Duplicate a secret to keep the same secret value but change name, scope, or comm
6468

6569
</TabItem> <TabItem label="API">
6670

71+
:::note
72+
A secret `name` cannot contain spaces.
73+
:::
74+
6775
```bash
6876
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/secrets_store/stores/$STORE_ID/secrets/$SECRET_ID/duplicate \
6977
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ wrangler secrets-store secret create <STORE_ID> [OPTIONS]
747747
- `STORE_ID` <Type text="string" /> <MetaInfo text="required" />
748748
- 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.
749749
- `--name` <Type text="string" /> <MetaInfo text="required" />
750-
- A descriptive name for the account-level secret.
750+
- A descriptive name for the account-level secret. Cannot contain spaces.
751751
- `--value` <Type text="string" /> <MetaInfo text="test only" />
752752
- Value of the secret.
753753
:::caution[Only use for testing]
@@ -811,7 +811,7 @@ wrangler secrets-store secret duplicate <STORE_ID> [OPTIONS]
811811
- `--secret-id` <Type text="string" /> <MetaInfo text="required" />
812812
- The ID of the secret you are duplicating.
813813
- `--name` <Type text="string" /> <MetaInfo text="required" />
814-
- A name for the new secret.
814+
- A name for the new secret. Cannot contain spaces.
815815
- `--scopes` <Type text="string" /> <MetaInfo text="required" />
816816
- Which services will have access to the new account-level secret. Currently, only `workers` is available.
817817
- `--comment` <Type text="string" /> <MetaInfo text="optional" />

0 commit comments

Comments
 (0)