Skip to content

Commit fb9286e

Browse files
pwizlaweb-flow
authored andcommitted
Add security tip to API Tokens documentation (#2846)
* docs(backend): correct TypeScript code fences in TS tabs (controllers, services, middlewares, routes) * docs(bundlers): clarify webpack config example rename and JS/TS filenames * docs(routes): add guidance to prefer fully-qualified handler names in custom routers * docs(api-tokens): add concise security tip (least privilege, rotation, secrets manager) * Limit PR scope based on title; keep only intended doc(s); revert unrelated files * API Tokens docs: change security tip to a caution callout with title (PR #2846) * Apply suggestion from @pwizla --------- Co-authored-by: GitHub Actions <[email protected]>
1 parent bfa5c7d commit fb9286e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docusaurus/docs/cms/features/api-tokens.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ API tokens provide scoped authentication for REST and GraphQL requests without e
1919

2020
API tokens allow users to authenticate REST and GraphQL API queries (see [APIs introduction](/cms/api/content-api)).
2121

22+
:::caution Security
23+
Prefer read‑only tokens for public access, scope server tokens to only what you need, rotate long‑lived tokens, and store them in a secrets manager. Never expose admin tokens in client‑side code.
24+
:::
25+
2226
<IdentityCard>
2327
<IdentityCardItem icon="layout" title="Plan">
2428
Free feature

0 commit comments

Comments
 (0)