Skip to content

Document expanded scoped API key permissions - #751

Open
sjmiller609 wants to merge 16 commits into
mainfrom
hypeship/expand-scoped-key-docs
Open

sjmiller609 wants to merge 16 commits into
mainfrom
hypeship/expand-scoped-key-docs

Conversation

@sjmiller609

@sjmiller609 sjmiller609 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Expand the scoping reference to cover the public API permissions and add paired TypeScript and Python policies for common workloads. Document which actions must be granted together and when callers need access to resources referenced by another object.

  • Distinguish renaming a key (api_keys:write) from replacing its policy and IP conditions in place (api_keys:set_policy). Cover delegation, expiry, rotation and revocation without changing the workload identity guidance.
  • Correct native OAuth consent: a person chooses permissions and one project or all projects. Native tokens cannot manage API keys; service accounts have additional restrictions.
  • Explain what scoped deployers and invokers must grant. A deployment stores its runtime policy, defaults to callback-only access for scoped deployers, and issues a fresh 65-minute key per invocation independent of the deploying key’s lifetime. Existing shared-key deployments are unchanged.

Availability

The API code is deployed. Scoped deployment creation is not enabled in production. The deploy guide calls out that a scoped deploy or an explicit runtime_policy returns 403 until enabled; this PR does not announce general availability or change any flags.

Validation

  • All 84 public action names in the reference match the API registry after excluding internal Search actions.
  • Executed all eight TypeScript/Python policy example pairs and compared the resulting documents; each pair matched.
  • mint validate and mint broken-links passed at 6f50d86.

Note

Low Risk
Documentation-only changes with no runtime or infrastructure impact.

Overview
This PR updates Kernel docs for policy-scoped API keys, deployment runtime policies, and related auth behavior.

It adds info/api-key-policy-examples with paired TypeScript/Python policies for common workloads, and links it from docs.json. info/api-key-permissions is expanded into a full permission reference: resource selectors, ~87 actions (extensions, pools, telemetry, apps, API keys, audit, etc.), and tables for multi-action operations.

info/api-keys now covers org/project scope vs policy, key delegation, api_keys:set_policy and api_keys:issue_beyond_expiry, stricter scoped expiry/rotation rules, and a revised deployment key model (per-invocation 65-minute keys, optional runtime_policy, scoped deploy/invoke requirements). apps/deploy documents scoped deploy permissions and runtime_policy, with a note that scoped deploy returns 403 until the feature is enabled.

Related pages (telemetry export, projects, CLI) are aligned on policy-scoped telemetry destinations, OAuth consent/project targeting, and that native OAuth cannot manage API keys.

Reviewed by Cursor Bugbot for commit 6f50d86. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify

mintlify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Kernel 🟢 Ready View Preview Nov 23, 2026, 10:03 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 952830a. Configure here.

Comment thread info/api-key-policy-examples.mdx Resolved

This branch was successfully deployed

1 active deployment
staging — 6f50d86c Deployed Nov 23, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant