Skip to content

Commit 0a8775f

Browse files
API placeholder tabs in how-to.mdx and integrations/workers.mdx
1 parent 75c9894 commit 0a8775f

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar:
66
label: Use with Workers
77
---
88

9-
import { WranglerConfig } from "~/components";
9+
import { WranglerConfig, Tabs, TabItem } from "~/components";
1010

1111
[Cloudflare Secrets Store](/secrets-store/) is a secure, centralized location in which account-level secrets are stored and managed. The secrets are securely encrypted and stored across all Cloudflare data centers.
1212

@@ -18,7 +18,7 @@ This is different from Workers [Variables and Secrets](/workers/configuration/se
1818

1919
## Before you begin
2020

21-
If [using the Dashboard](#via-dashboard), make sure you already have a Workers application. Refer to [Get started](/workers/get-started/dashboard/) for guidance.
21+
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.
2222

2323
You should also have a store created under the Secrets Store tab on the Dashboard. The default store in your account is automatically created when a user with [Super Administrator or Secrets Store Admin role](/secrets-store/access-control/) interacts with it.
2424

@@ -29,13 +29,20 @@ If there are no account secrets yet, follow the steps below. You must have a [Su
2929
:::note
3030
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.
3131
:::
32+
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
3233

3334
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
3435
2. Go to **Secrets Store** and select **Create secret**.
3536
3. Fill in the required fields, choosing _Workers_ as the **Permission scope**. Once the secret is saved, the secret value will no longer be available for viewing.
3637
4. (Optional) Select **Add additional secret** to create more than one secret at a time.
3738
5. Select **Save** to confirm
3839

40+
</TabItem> <TabItem label="API">
41+
42+
[Add API instructions here]
43+
44+
</TabItem> </Tabs>
45+
3946
Refer to [manage account secrets](/secrets-store/manage-secrets/) for further options.
4047

4148
## 2. Bind an account secret to your Worker

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

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ sidebar:
55
order: 2
66
---
77

8+
import { Tabs, TabItem } from "~/components";
9+
810
Refer to the sections below to learn about common actions you might want to take when managing your data in Secrets Store.
911

1012
You must have a [Super Administrator or Secrets Store Admin role](/secrets-store/access-control/) within your Cloudflare account.
@@ -15,23 +17,39 @@ For Wrangler commands, refer to [Cloudflare Workers](/workers/wrangler/commands/
1517

1618
## Create a secret
1719

20+
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
21+
1822
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
1923
2. Go to **Secrets Store** and select **Create secret**.
2024
3. Fill in the required fields. Note that, once the secret is saved, the secret value will no longer be available for viewing.
2125
4. (Optional) Select **Add additional secret** to create more than one secret at a time.
2226
5. Select **Save** to confirm
2327

28+
</TabItem> <TabItem label="API">
29+
30+
[Add API instructions here]
31+
32+
</TabItem> </Tabs>
33+
2434
## Duplicate a secret
2535

2636
Duplicate a secret to keep the same secret value but change name, scope, or comments.
2737

38+
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
39+
2840
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2941
2. Go to **Secrets Store**.
3042
3. Search for the secret you would like to duplicate within the existing secrets list.
3143
4. Select the three dots next to the secret and choose **Duplicate**.
3244
5. Edit the **Secret name**, **Permission scope**, or **Comment**, according to your needs.
3345
6. Select **Save** to confirm.
3446

47+
</TabItem> <TabItem label="API">
48+
49+
[Add API instructions here]
50+
51+
</TabItem> </Tabs>
52+
3553
## Edit a secret
3654

3755
Edit a secret to replace an existing value with a new one.
@@ -42,20 +60,36 @@ This action will cause the replacement in all services using the secret.
4260

4361
You can also edit the secret **Permission scope** and **Comment**.
4462

63+
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
64+
4565
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
4666
2. Go to **Secrets Store**.
4767
3. Search for the secret you would like to edit within the existing secrets list.
4868
4. Select the three dots next to the secret and choose **Edit**.
4969
5. Edit the available fields according to your needs and select **Save** to confirm.
5070

71+
</TabItem> <TabItem label="API">
72+
73+
[Add API instructions here]
74+
75+
</TabItem> </Tabs>
76+
5177
## Delete a secret
5278

5379
:::caution
5480
Before deleting a secret, make sure it is not deployed. Secrets Store secrets in use are listed in the respective [Workers application](https://dash.cloudflare.com/?to=/:account/workers-and-pages/) under **Settings** > **Bindings**.
5581
:::
5682

83+
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
84+
5785
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
5886
2. Go to **Secrets Store**.
5987
3. Search for the secret you would like to delete within the existing secrets list.
6088
4. Select the three dots next to the secret and choose **Delete**.
61-
5. Type in the secret name and select **Delete** to confirm.
89+
5. Type in the secret name and select **Delete** to confirm.
90+
91+
</TabItem> <TabItem label="API">
92+
93+
[Add API instructions here]
94+
95+
</TabItem> </Tabs>

0 commit comments

Comments
 (0)