Skip to content

API 认证 ​

GraphQL PAT ​

HTTPS POST /v1/graphql,Content-Type 为 application/json,Authorization 为 Bearer PAT。 请求体为 query、variables 和可选 operationName;有效 token 不能写入 URL 或日志。 公开目录和下载使用 S3/CDN binding,不发送 token、cookie 或管理 header。

当前权限 ​

能力范围与当前角色
私有读取 / tokens / receiptsplugins:read,并检查资源或回执权限
创建 / metadata / listing / ownership / lifecycleplugins:write,并检查 ownership;特殊流程由契约控制
upload / submit_releasereleases:write,并检查 ownership
review_changereviews:write,管理员
set_visibilityplugins:write,管理员
用户角色 / suspend / policyadmin:write,管理员
publication_statusplugins:read,当前owner/admin;跨actor仅管理员
recover_publicationadmin:write,当前管理员;原publication、CAS与幂等

scope 不扩权;转让、撤销、到期、suspend 都在提交和重放处重新检查。 不允许移除最后一个活动管理员;账号删除不重新开放首次管理员 bootstrap。

服务内部边界 ​

BFF service key 不代表用户权限;worker lease/fence 只负责被领取工作。 不要将内部服务凭据提供给浏览器、插件或 Agent。

适用 Marketplace 1.0.0-alpha.1 / pluginctl 1.0.0-alpha.1