Repository navigation
Document expanded scoped API key permissions - #751
Open
sjmiller609 wants to merge 24 commits into
Open
sjmiller609 wants to merge 24 commits into
sjmiller609 wants to merge 24 commits into
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
…d-key-docs # Conflicts: # info/api-keys.mdx
sjmiller609
marked this pull request as ready for review
November 23, 2026 21:57
sjmiller609
commented
Nov 24, 2026
sjmiller609
commented
Nov 24, 2026
sjmiller609
commented
Nov 24, 2026
sjmiller609
commented
Nov 24, 2026
sjmiller609
commented
Nov 24, 2026
sjmiller609
commented
Nov 24, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 37f82be. Configure here.
This branch was successfully deployed
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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.
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.Publishing
Merge these docs only after kernel/kernel#5724 and kernel/kernel#5749 (action wildcards) have deployed to production. They describe scoped deployments without a rollout flag; unrestricted callers that omit
runtime_policystill use shared keys.Experimental validation
Ran in production with short-lived, policy-scoped project keys; each check used narrower keys to confirm omitted actions return
403.runtime_policy; two invocations read their own invocation with the injected credential. Invoking without covering the runtime policy returned403.400), and deletion.Validation
mint validateandmint broken-linkspassed at734927d.Note
Low Risk
Docs-only change with no runtime code; reviewers should still verify alignment with shipped API behavior before merge, since misdocumented auth rules could cause production misconfiguration.
Overview
Documentation expands how scoped API keys, policies, and app runtime interact across deploy, telemetry, projects, and the CLI.
A new
info/api-key-policy-examplespage (wired intodocs.json) adds TypeScript/Python policy snippets for common workloads.info/api-key-permissionsis reworked into a fuller reference: selector shapes, resource kinds, action wildcards, per-domain action tables, and multi-action prerequisites for browsers, pools, auth, apps, and API key delegation.info/api-keysreplaces the old deployment-key story with app runtime policy (runtime_policyonPOST /deployments, default callback-onlyinvocations:writefor scoped deployers, invoker/deployer grants). It also documentsapi_keys:set_policy, child-key delegation,api_keys:issue_beyond_expiry, and stricter expiry/rotation rules.Related touchpoints:
apps/deploy(scoped deploy + reservedKERNEL_API_KEY),browsers/telemetry/export(org vs project scope and telemetry policy actions),info/projects/reference/cli/*(X-Kernel-Project, OAuth consent, CLI--policyand list filters), andinfo/authenticationlink updates.Reviewed by Cursor Bugbot for commit 0071f0a. Bugbot is set up for automated code reviews on this repo. Configure here.