From 42aad1b4f45843eb40408bf79b132eda85ba56c3 Mon Sep 17 00:00:00 2001 From: daxiongya Date: Mon, 23 Nov 2026 13:47:45 +0800 Subject: [PATCH] feat(skill): explain service-limited keys and permission errors Co-Authored-By: Claude Opus 5.5 --- skills/xapi-provider/SKILL.md | 12 ++++++++++++ skills/xapi/guides/provider.md | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/skills/xapi-provider/SKILL.md b/skills/xapi-provider/SKILL.md index 6895502..d6fa506 100644 --- a/skills/xapi-provider/SKILL.md +++ b/skills/xapi-provider/SKILL.md @@ -236,3 +236,15 @@ or prove upstream health. Dedicated CLI readiness support is still pending. Scope and ownership are independent. A key with a scope cannot manage another provider's service or Skill. + +An owner can also limit a key to selected services. That key lists only those +services, gets `404 API service not found` for any other service, and adds each +service it creates to its own selection. + +A missing permission returns `403` with `code: API_KEY_SCOPE_MISSING`, +`requiredPermission`, and `grantedBy` (the console permission groups that +include it). Report `requiredPermission` to the user. Only the owner, logged in +to the xAPI console with a full account login, can change a key's permissions, +service selection, IP allowlist, or limit; a session obtained by logging in +with an API Key cannot. The console's Developer template covers the operations +above except rollback and deletion. diff --git a/skills/xapi/guides/provider.md b/skills/xapi/guides/provider.md index 6095aad..e6ecbba 100644 --- a/skills/xapi/guides/provider.md +++ b/skills/xapi/guides/provider.md @@ -27,6 +27,12 @@ manage another provider's service or Skill. These commands validate the owner path; they do not prove a separate administrator can view or review a working revision. +A key limited to selected services lists only those services and gets +`404 API service not found` for the others; services it creates join its +selection. A missing permission returns `403 API_KEY_SCOPE_MISSING` with +`requiredPermission` and `grantedBy`. Key permissions, service selection, IP +allowlist, and limit change only in the console after a full account login. + ## Create and describe a service Create uses the backend service DTO as JSON so credentials and endpoint