Skip to content

Document IP allowlisting for API keys - #769

Merged
ulziibay-kernel merged 1 commit into
mainfrom
hypeship/ip-allowlist-docs
Nov 19, 2026
Merged

ulziibay-kernel merged 1 commit into
mainfrom
hypeship/ip-allowlist-docs

Conversation

@ulziibay-kernel

@ulziibay-kernel ulziibay-kernel commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The source_ip condition shipped on the API (create + in-place update). These are the prose docs for it:

  • API keys: new Limit a key to your IP ranges section — the condition shape, when to use it (fixed egress, leaked-secret blast radius), how it evaluates (CIDR-only values rejected otherwise, 403 insufficient_scope recorded in audit logs with the client IP, edge-proxy-reported address not client-supplied, per-statement narrowing), and a Add an IP allowlist to an existing key subsection with the in-place policy update in TypeScript + Python. Retitled Rename, update permissions, or delete an API key, documented full replacement + ~10s cache propagation + no un-restrict path, extended the troubleshooting table with the condition 400s, and added a Note on the hosted-MCP caveat.
  • API key permissions: new Conditions section between Resources and Actions — the condition fields table (key/operator/values), the evaluation rules including the delegation rule (a scoped key can't delegate a wider condition), and the cross-link to the in-place update.

The generated reference pages (api-reference/api-keys/*) carry the same story via the endpoint descriptions in kernel/kernel #5610.

No docs.json changes; navigation entries for both pages already exist.

Test evidence

  • docs.json validates as JSON.
  • MDX follows the repo conventions (CodeGroup with TS + Python, Note component used elsewhere in info/); no build step exists for this Mintlify repo. Examples use real parameter values per the style guide.

Note

Low Risk
Prose and MDX documentation only; no runtime or API behavior changes in this diff.

Overview
Documents the source_ip policy condition for scoped API keys: statements can narrow allowed requests to 1–16 CIDR networks, with validation and 403 insufficient_scope behavior called out.

On info/api-keys.mdx, adds Limit a key to your IP ranges (when to use IP pinning, CIDR rules, edge-reported client IP, audit logging), Add an IP allowlist to an existing key with in-place policy update examples (TypeScript/Python), full policy replacement and ~10s cache propagation, and a hosted MCP caveat. The rename/delete section is retitled to cover update permissions without rotation, and troubleshooting now includes malformed-condition 400s.

On info/api-key-permissions.mdx, adds a Conditions section (fields table, per-statement semantics, delegation narrowing, link to in-place updates) and ties conditions into the policy overview.

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

Add a Limit a key to your IP ranges section with the source_ip
condition: what it restricts, how it evaluates (CIDR-only values,
audited 403 with the client IP, edge-proxy-reported address), and
adding or changing rules on an existing key without rotating its
credential. The update section covers replacing permissions in place,
and the permissions reference gains a Conditions section with the
condition fields and the delegation rule. Note the hosted MCP caveat
while MCP support is pending.
@mintlify

mintlify Bot commented Nov 19, 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 19, 2026, 4:58 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.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4e45add. Configure here.

Comment thread info/api-keys.mdx
</CodeGroup>

## Rename or delete an API key
## Rename, update permissions, or delete an API key

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Renamed heading drops previous anchor

Low Severity

The heading was retitled, so its hash is no longer rename-or-delete-an-api-key. Moved headings keep a hidden anchor stub so existing hash links keep resolving; this retitle does not add one.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 4e45add. Configure here.

@ulziibay-kernel
ulziibay-kernel merged commit 4a4be9c into main Nov 19, 2026
3 checks passed
@ulziibay-kernel
ulziibay-kernel deleted the hypeship/ip-allowlist-docs branch November 19, 2026 20:47

This branch was successfully deployed

1 active deployment
staging — 4e45adde Deployed Nov 19, 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.

2 participants