From 6bc9ebb39e78b278dde5fafe74fbd0022a602162 Mon Sep 17 00:00:00 2001 From: daxiongya Date: Fri, 20 Nov 2026 21:45:49 +0800 Subject: [PATCH 1/3] fix(skill): document direct caller identity publishing --- skills/xapi-provider/reference/auth-types.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/skills/xapi-provider/reference/auth-types.md b/skills/xapi-provider/reference/auth-types.md index 6215575..6a2f065 100644 --- a/skills/xapi-provider/reference/auth-types.md +++ b/skills/xapi-provider/reference/auth-types.md @@ -72,6 +72,8 @@ Start a working revision for the target major. For a first-time setup, put the dedicated upstream credential in a local patch file outside version control. This example uses a custom header. For Bearer auth, set `"authType": "BEARER"` and use `"Authorization"` in `privateHeaders`. +With `HEADER` auth, ordinary headers such as `Content-Type` can accompany +the dedicated credential. ```json { @@ -93,9 +95,8 @@ For a revision with a credential already configured, use the flag on its own. For reusable automation, set `"forwardCallerIdentity": true` in the JSON patch. If you pass the field and flag together, their values must agree. -Verify in a dedicated sandbox service with a regular xAPI Key before publishing. -Use two keys from the same account and a key from another account to check -ownership. Then inspect the diff, publish, and confirm +When only the forwarding switch changes, publishing activates it immediately +without a review step. Inspect the diff, publish, and confirm `servingForwardCallerIdentity` for the target major. ```bash @@ -104,6 +105,9 @@ npx xapi-to provider publish npx xapi-to provider versions ``` +You can verify ownership in a dedicated sandbox service with two regular xAPI +Keys from the same account and one from another account. + On the provider server, validate the dedicated credential on every request before reading these headers. From 01485a86ba44a63566641e9ee414f626f462ec5e Mon Sep 17 00:00:00 2001 From: daxiongya Date: Fri, 20 Nov 2026 21:59:43 +0800 Subject: [PATCH 2/3] fix(skill): document optional upstream auth for identity forwarding --- skills/xapi-provider/reference/auth-types.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/skills/xapi-provider/reference/auth-types.md b/skills/xapi-provider/reference/auth-types.md index 6a2f065..3c8f48e 100644 --- a/skills/xapi-provider/reference/auth-types.md +++ b/skills/xapi-provider/reference/auth-types.md @@ -65,11 +65,11 @@ canary call; do not expect a read command to return the secret. A provider can enable xAPI user identity forwarding on a working revision. The default is off. This setting is for synchronous HTTP proxy endpoints sharing -one HTTPS origin. Configure a dedicated version-level `HEADER` or `BEARER` -credential that the provider validates on every request. +one HTTPS origin. The switch controls whether xAPI forwards the identifiers. +Upstream authentication is configured separately. -Start a working revision for the target major. For a first-time setup, put the -dedicated upstream credential in a local patch file outside version control. +Start a working revision for the target major. To configure an upstream +credential as well, put it in a local patch file outside version control. This example uses a custom header. For Bearer auth, set `"authType": "BEARER"` and use `"Authorization"` in `privateHeaders`. With `HEADER` auth, ordinary headers such as `Content-Type` can accompany @@ -91,7 +91,7 @@ npx xapi-to provider version update \ --file ./auth.patch.json --forward-caller-identity on ``` -For a revision with a credential already configured, use the flag on its own. +To change only the switch, use the flag on its own. For reusable automation, set `"forwardCallerIdentity": true` in the JSON patch. If you pass the field and flag together, their values must agree. @@ -108,8 +108,9 @@ npx xapi-to provider versions You can verify ownership in a dedicated sandbox service with two regular xAPI Keys from the same account and one from another account. -On the provider server, validate the dedicated credential on every request -before reading these headers. +On the provider server, verify the request came from xAPI before using these +headers for authorization. An existing upstream credential can serve this +purpose. | Request header | Provider use | |---|---| From c4aeb048ca509fd4af1cb5659584a3d57673bb5d Mon Sep 17 00:00:00 2001 From: daxiongya Date: Mon, 23 Nov 2026 13:29:31 +0800 Subject: [PATCH 3/3] fix(skill): explain identity forwarding spot checks and shutdown - Spot-check identity revisions that also change the upstream, contract or authentication. - Require an upstream credential issued only to xAPI when providers authorize on the headers. - Note that turning forwarding off takes effect on publish. Co-Authored-By: Claude Opus 5.5 --- skills/xapi-provider/reference/auth-types.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/skills/xapi-provider/reference/auth-types.md b/skills/xapi-provider/reference/auth-types.md index 3c8f48e..a04cac1 100644 --- a/skills/xapi-provider/reference/auth-types.md +++ b/skills/xapi-provider/reference/auth-types.md @@ -96,7 +96,10 @@ For reusable automation, set `"forwardCallerIdentity": true` in the JSON patch. If you pass the field and flag together, their values must agree. When only the forwarding switch changes, publishing activates it immediately -without a review step. Inspect the diff, publish, and confirm +without a review step. When forwarding is on and the revision also changes the +upstream, contract or authentication, publishing activates it immediately and +the revision is spot-checked afterward, because the review key cannot call +identity-aware endpoints. Inspect the diff, publish, and confirm `servingForwardCallerIdentity` for the target major. ```bash @@ -109,8 +112,10 @@ You can verify ownership in a dedicated sandbox service with two regular xAPI Keys from the same account and one from another account. On the provider server, verify the request came from xAPI before using these -headers for authorization. An existing upstream credential can serve this -purpose. +headers for authorization. Use an upstream credential issued only to xAPI and +validate it on every request. A key that other clients also hold cannot prove +the request came through xAPI, because they could call the upstream directly +with forged headers. | Request header | Provider use | |---|---| @@ -125,6 +130,8 @@ call with their regular xAPI Key. To turn forwarding off, set `--forward-caller-identity off` on a working revision and publish it. A JSON patch can also set -`"forwardCallerIdentity": false`. The gateway keeps stripping both reserved +`"forwardCallerIdentity": false`. The change takes effect as soon as it is +published, so make identity-aware routes tolerate missing headers first. The +gateway keeps stripping both reserved headers on every HTTP revision of a previously enrolled service, including after a rollback.