Skip to content

fix(skill): document optional identity forwarding auth and publishing - #75

Draft
dxiongya wants to merge 3 commits into
devfrom
integration/provider-caller-identity-toggle-dev
Draft

dxiongya wants to merge 3 commits into
devfrom
integration/provider-caller-identity-toggle-dev

Conversation

@dxiongya

Copy link
Copy Markdown
Collaborator

改动

  • xapi-provider Skill 说明身份转发的上游鉴权改为可选,只切开关时发布后直接上线。
  • 开启身份转发且同时改了上游、契约或鉴权时,发布后直接上线并进入抽查。
  • 上游如果根据身份头判断权限,需要使用只发给 xAPI 的凭证并在上游校验。
  • 关闭身份转发在发布后立即生效,上游需要先兼容缺少身份头的请求。

对应后端 xapi-labs/xapi-backend#806 和前端 xapi-labs/xapi-frontend-v3#76。后端 PR 合并前,这里的描述与 dev 上已部署的后端行为不一致,请等后端合并后再合并本 PR。

验证

  • bun install --frozen-lockfile、tsc --noEmit、build、bun test(1326 通过,0 失败)、npm pack --dry-run --ignore-scripts 均通过。
  • 同样的提交也在 feature/provider-caller-identity 上。本 PR 使用基于 dev 的 integration 分支,dev 没有合并回 feature 分支。

本 PR 未获合并或发布 npm 的授权。

🤖 Generated with Claude Code

dxiongya and others added 3 commits November 20, 2026 21:46
- 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 <noreply@anthropic.com>
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.

1 participant