FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Flagship] Document app-scoped API tokens by roerohan · Pull Request #32851 · cloudflare/cloudflare-docs · GitHub

[Flagship] Document app-scoped API tokens - #32851

Merged
roerohan merged 9 commits into
productionfrom
flagship/app-scoped-tokens
Aug 26, 2026
Merged

[Flagship] Document app-scoped API tokens#32851
roerohan merged 9 commits into
productionfrom
flagship/app-scoped-tokens

Conversation

roerohan commented Aug 19, 2026
edited
Loading

Copy link
Copy Markdown
Member

Summary

Document Flagship app-scoped API tokens. Customers can now create a token that only evaluates or manages the Flagship apps they select, instead of every app in the account.

  • Add a 2026-08-26 changelog entry.
  • Add a how-to at /flagship/api-tokens/ for account-wide and app-scoped tokens.
  • Point SDK and get-started token mentions at the new page.

This PR does not change client-side evaluation guidance. A dedicated client key is follow-up work.

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

roerohan requested review from a team, akshitsinha and palashgo as code owners August 19, 2026 09:15

cloudflare-docs-bot Bot commented Aug 19, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Review

⚠️ 1 warning, 💡 2 suggestions found in commit cccb4de.

👉 Fix in your agent 👈
Fix the following review findings in PR #32851 (https://github.com/cloudflare/cloudflare-docs/pull/32851).

Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g. the fix requires disproportionate effort for minimal benefit,
  or the finding is factually incorrect), explain why
- If you need clarification before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.

The comment must come before the commit — the bot reads PR comments when a new
push triggers a review, so skip comments posted after the push will be missed.

---

## Style Guide Review

### Warnings (1)

#### SG-b2226d06741b · Use TypeScriptExample for TS/JS examples
- **File:** `src/content/docs/flagship/api-tokens.mdx` line 90
- **Issue:** Line adds a raw ` ```ts ` fenced block in a docs MDX file
- **Fix:** Replace with the `<TypeScriptExample>` component so a JS tab is auto-generated

### Suggestions (2)

#### SG-d6e56fca0a45 · Use DashButton for dashboard navigation
- **File:** `src/content/docs/flagship/api-tokens.mdx` line 34
- **Issue:** Prose links directly to `https://dash.cloudflare.com/?to=/:account/api-tokens` for navigation
- **Fix:** Use `<DashButton url="/?to=/:account/api-tokens" />` for validated dashboard deeplinks

#### SG-ec3b19329786 · Short bullet lists
- **File:** `src/content/docs/flagship/api-tokens.mdx` line 109
- **Issue:** Next steps section adds a two-item bullet list
- **Fix:** Consider rewriting the two Next steps items as prose instead of bullets

Code Review

This code review is in beta and may not always be helpful — use your judgment.

No code review issues found.

Conventions

No convention issues found.

Style Guide Review

Warnings (1)
File Issue
flagship/api-tokens.mdx line 90 Use TypeScriptExample for TS/JS examples — Line adds a raw ```ts fenced block in a docs MDX file Fix: Replace with the <TypeScriptExample> component so a JS tab is auto-generated
Suggestions (2)
File Issue
flagship/api-tokens.mdx line 34 Use DashButton for dashboard navigation — Prose links directly to https://dash.cloudflare.com/?to=/:account/api-tokens for navigation Fix: Use <DashButton url="/?to=/:account/api-tokens" /> for validated dashboard deeplinks
flagship/api-tokens.mdx line 109 Short bullet lists — Next steps section adds a two-item bullet list Fix: Consider rewriting the two Next steps items as prose instead of bullets
Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.
/ignore-review-limit Permanently lifts the 2-review automatic limit for this PR. Future pushes will trigger reviews as normal.
/disable-auto-review Stops automatic reviews from triggering on future pushes to this PR. Codeowners can still run /review or /full-review manually.
/rebase Rebases the PR branch against production. On conflict, attempts to resolve automatically using AI. Stops with an explanation if confidence is not high enough.

github-actions Bot commented Aug 19, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/changelog/ @cloudflare/pm-changelogs, @cloudflare/product-owners
/src/content/docs/flagship/ @roerohan, @palashgo, @akshitsinha, @abhishekkankani, @thebongy, @cloudflare/flagship, @irvinebroque, @ishita1805, @vaibhavshn, @karishnu, @cloudflare/product-owners

github-actions Bot commented Aug 19, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

irvinebroque left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

see chat

cloudflare-workers-and-pages Bot commented Aug 21, 2026
edited
Loading

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://flagship-app-scoped-tokens-cloudflare-docs.cloudflare-docs.workers.dev (commit 08f0c0e)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Cancelled 🚫

View logs ↗
cccb4de 2026-08-26T07:20:37.084Z View logs ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://515c5335-cloudflare-docs.cloudflare-docs.workers.dev 08f0c0e 2026-08-21T11:19:18.561Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://2fdb20d1-cloudflare-docs.cloudflare-docs.workers.dev 67cb27b 2026-08-21T11:01:12.487Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://82587f92-cloudflare-docs.cloudflare-docs.workers.dev d8bb18d 2026-08-21T10:42:56.996Z Visit the dashboard ↗
  • Build: In progress 🔵

View logs ↗
55ae8d1 2026-08-21T10:28:46.841Z View logs ↗

roerohan requested a review from irvinebroque August 21, 2026 10:32
roerohan force-pushed the flagship/app-scoped-tokens branch from d8bb18d to 67cb27b Compare August 21, 2026 10:49
roerohan enabled auto-merge (squash) August 25, 2026 09:28

irvinebroque left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

🚀 🚢

Add a changelog for 2026-08-19, a how-to for creating tokens scoped to a single Flagship app, and update the client SDK warning so browsers can use Flagship App Evaluate instead of an account-wide token.
Rewrite the token page around the dashboard flow: Entire Account vs Specified Flagship apps, then pick the app and a Flagship App permission.
Add the dashboard deeplink that opens Specified Flagship apps with Flagship App Evaluate selected.
Mirror the app-scoped deeplink with a plain Account API tokens link for the account-wide flow.
Keep app-scoped tokens documented for server-side least privilege. Restore the client SDK warning and drop any guidance that puts tokens in the browser.
This release is app-scoped tokens only. Client-side evaluation is follow-up work.
roerohan force-pushed the flagship/app-scoped-tokens branch from 08f0c0e to cccb4de Compare August 26, 2026 07:10
roerohan merged commit bfb770f into production Aug 26, 2026
13 of 14 checks passed
roerohan deleted the flagship/app-scoped-tokens branch August 26, 2026 07:20
rpots pushed a commit that referenced this pull request Aug 28, 2026
* [Flagship] Document app-scoped API tokens

Add a changelog for 2026-08-19, a how-to for creating tokens scoped to a single Flagship app, and update the client SDK warning so browsers can use Flagship App Evaluate instead of an account-wide token.

* [Flagship] Clarify account-wide vs app-scoped tokens

Rewrite the token page around the dashboard flow: Entire Account vs Specified Flagship apps, then pick the app and a Flagship App permission.

* [Flagship] Link to pre-filled app-scoped token form

Add the dashboard deeplink that opens Specified Flagship apps with Flagship App Evaluate selected.

* [Flagship] Link account-wide token page from docs

Mirror the app-scoped deeplink with a plain Account API tokens link for the account-wide flow.

* [Flagship] Date changelog for 2026-08-20

* [Flagship] Stop recommending API tokens in client-side code

Keep app-scoped tokens documented for server-side least privilege. Restore the client SDK warning and drop any guidance that puts tokens in the browser.

* [Flagship] Date changelog for 2026-08-24

* [Flagship] Drop client-side mentions from token docs

This release is app-scoped tokens only. Client-side evaluation is follow-up work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL