You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6beaf69
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: content/docs/ai/connect-mcp.mdx
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,7 @@ message names the key's prefix, the date, and the remedy:
201
201
|:---|:---|
202
202
|`API_KEY_EXPIRED`| Past its `expires_at` (or past the grace of a key created with none). |
203
203
|`API_KEY_INACTIVE`| No recorded use for longer than the inactivity window. The key is **not** revoked. |
204
-
|`API_KEY_REVOKED`| Revoked by its owner or an administrator. |
204
+
|`API_KEY_REVOKED`| Revoked by its owner or an administrator. A key a platform administrator revoked for someone else is suspended: only a platform administrator can restore it. |
205
205
206
206
The remedy is the same for all three: **create a new key and replace the old
207
207
one wherever it is configured** — keys do not renew. To rotate without a gap,
@@ -447,6 +447,14 @@ drive this MCP server. Same word, different layer.
447
447
`401`, and anyone else who is signed in is refused `403`. The SDK
448
448
spells them `oauth.authorizedClients.list()` / `withdraw(id)` and
Copy file name to clipboardExpand all lines: content/docs/api/error-catalog.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -499,8 +499,8 @@ See [Read limits a deployment may set](/docs/api/data-api#read-limits-a-deployme
499
499
**Retry:**`no_retry`
500
500
501
501
### `API_KEY_REVOKED`
502
-
**Cause:** The API key was revoked by its owner or an administrator, or by an administrator's forced password reset (the message says which).
503
-
**Fix:** Ask the key's owner or a platform administrator to restore it (the Restore API Key action on the API Keys list); the same key then works again at once. A key a forced password reset revoked is restored by a platform administrator only: its owner is refused `403 PERMISSION_DENIED`. Otherwise create a new key and replace this one wherever it is configured.
502
+
**Cause:** The API key was revoked by its owner or an administrator, suspended by a platform administrator, or revoked by an administrator's forced password reset (the message says which).
503
+
**Fix:** Ask the key's owner or a platform administrator to restore it (the Restore API Key action on the API Keys list); the same key then works again at once. A key a platform administrator suspended (revoked when it was not their own), or a forced password reset revoked, is restored by a platform administrator only: its owner is refused `403 PERMISSION_DENIED`. Otherwise create a new key and replace this one wherever it is configured.
504
504
**Retry:**`no_retry`
505
505
506
506
These three are answered on every endpoint that accepts an API key: the endpoints the runtime serves (the MCP HTTP endpoint among them), the REST data API, the settings, file-download, datasource admin and share-link routes, the marketplace install routes and the MCP stdio transport. An unknown key is always the generic 401.
Copy file name to clipboardExpand all lines: content/docs/permissions/system-context.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ bugs — it is the protection or the side effect that silently does not happen.
143
143
| 24 | Tenant-audit warning silenced; `bypassTenantAudit` threaded to the driver | objectql | Get: unscoped system writes stop warning. Lose: the signal that would flag a genuine user-path scoping bug |`buildDriverOptions`|
| 26 | Identity write guard bypassed (ADR-0092) | plugin-auth | Get: direct writes to identity tables through the generic data path |`packages/plugins/plugin-auth/src/identity-write-guard.ts#isUserContextWrite`|
146
-
| 26b | API key restore guard does not refuse | plugin-auth | Get: a write setting `revoked: false` on a `sys_api_key` row an administrator's forced password reset revokedis admitted without the platform-administrator check a user-context restore must pass; the reason is still cleared. Lose: nothing a caller reaches: no system writer restores a key, and the mint, the last-used stamp and the forced reset itself never set `revoked: false`|`packages/plugins/plugin-auth/src/api-key-restore-guard.ts#isUserContextWrite`|
146
+
| 26b | API key restore guard does not refuse | plugin-auth | Get: a write setting `revoked: false` on a `sys_api_key` row an administrator's forced password reset revoked, or a platform administrator suspended (`administrator_suspended`), is admitted without the platform-administrator check a user-context restore must pass; the reason is still cleared. A system revoke is never stamped `administrator_suspended`: a host that suspends a key writes that reason itself, beside `revoked: true`. Lose: nothing a caller reaches: no system writer restores a key, and the mint, the last-used stamp and the forced reset itself never set `revoked: false`|`packages/plugins/plugin-auth/src/api-key-restore-guard.ts#isUserContextWrite`|
147
147
| 26c | **Per-user owner rule does not refuse** — a `sys_personal_view` or `sys_user_preference` update that changes `user_id` is admitted | plugin-auth | Get: a system writer can move a personal view or a preference to another owner (no shipped system writer does). The system writer includes app-authored automation elevated to system (a `runAs: 'system'` flow, a hook's `runAs: 'system'` api or `ctx.api.sudo()`, an action body's `ctx.api`), the family `packages/plugins/plugin-security/src/flow-system-identity-write-refusal.ts` names, so an app's automation can move one; the rule reads no app-automation elevation mark. Lose: nothing a caller reaches. A non-system update whose `user_id` differs from the stored owner is refused `403 PERMISSION_DENIED`, for every caller, a platform administrator included; an echo of the stored owner is no change. One shared check holds it for both objects. The rule exists because, for an organization member, `member_default`'s `'*'` update floor (`created_by == current_user.id`) applies to an update beside the object's own row scope | `packages/plugins/plugin-auth/src/owner-fixed-rule.ts#isOwnerChange` |
148
148
| 27 | Search-companion column **kept** in a read's rows when it was explicitly requested | objectql | Get: the internal companion column is readable. Lose: nothing for app code — this is the engine reading its own index |`stripSearchCompanionFromRead`|
149
149
| 28 | Dependent-count disclosure on a blocked delete | objectql | Get: the count of blocking children. Nothing was elevated past the caller, so nothing is withheld |`dependentCountIsDisclosable`|
0 commit comments