Repository navigation
feat(auth): add optional single-owner OIDC sign-in - #197
idkwhodatis wants to merge 4 commits into
Conversation
Keep OIDC auth guard while adding the new onboarding guide routes.
Additional review detail (English)Implementation and scopeHead Cookie mutations require canonical Origin plus CSRF. Session generations prevent delayed callbacks/logout responses reviving or overwriting newer logins; private SSE rechecks session validity. Upstream onboarding remains protected, including its reads, mutations and post-logout denial. Existing sessions require fresh sign-in. Local verificationPortable equivalents of recorded scopes:
Boundaries and integrationLogout is local. No real-IdP/browser acceptance, formal security audit, Docker or Python 3.11 validation is claimed. Subpath skips require #198. Only 补充审阅说明(中文)实现与范围提交 Cookie 鉴权的修改请求需要规范 Origin 和 CSRF。会话代际保护避免延迟回调/退出响应复活旧登录或覆盖新登录;私有 SSE 持续复查会话有效性。上游引导接口保持受保护,包括读取、修改和退出后的拒绝访问。已有会话需要重新登录。 本地验证以下为已记录测试范围的可移植等价命令:
边界与集成退出仅在本地生效。未声称真实 IdP/浏览器验收、正式安全审计、Docker 或 Python 3.11 验证。跳过的子路径用例需要 #198。与 #198 仅共享 |
|
我们已上线PR 范围与验收规范:一个 PR 完成一个可独立使用的行为,初始规模门槛为20个生产文件/800行新增加删除(排除测试、Markdown文档与已知lockfile),并提供关联当前head的验收报告。现有PR从机器人首次整改提示起获得完整14天窗口,第7天提醒;需要更多时间可以申请暂停。 可选的单所有者SSO场景成立,计划作为后续高级部署能力推进。获准身份使用同一个owner权限与资产空间,需要在文档和用户流程中明确。 请先明确最小完整登录流程与支持范围,并将有独立价值的公共URL/会话等基础调整拆出;不扩展多人资产隔离或权限系统。我们希望先完成一条SSO接入路径,再根据部署需求评估另一条网关认证路径。 后续验收需绑定当前head,提供真实IdP、浏览器登录/退出/过期会话和本地登录兼容证据,以及实际测试命令。若在等待产品排期,可暂停自动整改计时;功能不要求现在一次完成所有认证扩展。 |
PanWatch contribution checkThis PR needs changes before review. Scope: 32 production files, 1632 added + deleted production lines. Tests, Markdown docs and known lockfiles are excluded.
Reminder: Please resolve the items by 2026-10-27T10:12:10.863Z (14 days from the first notice). Comments and pushes do not extend this deadline. A maintainer may apply If unresolved, this PR will be closed on a daily sweep. The branch is preserved; reopen or submit smaller PRs when ready. Existing PRs receive the same full notice period. 本检查只核对材料与改动规模,不代表产品或实现已经验收。首次提示后有14天整改窗口;第7天提醒,逾期仍未达标自动关闭。维护者可用 pr:hold 暂停;关闭后仍可重开或提交拆分版本。 |

English
Add opt-in single-owner OIDC with PKCE, issuer/subject allowlists, revocable sessions, CSRF/origin checks and cross-tab recovery. Password fallback is explicit; allowed identities receive owner access. Logout is local.
Local checks: 268 backend, 268 frontend, guards/build passed; 60 subpath-only cases skipped. No live IdP/browser or formal security audit. Shares only static-containment/public-URL prerequisites with the subpath PR.
中文
新增默认关闭的单所有者 OIDC,支持 PKCE、issuer/subject 白名单、可撤销会话、CSRF/来源校验和跨标签页恢复。密码回退需显式开启;获准身份拥有所有者权限,退出仅在本地生效。
本地后端 268 项、前端 268 项、规范检查及构建通过;60 项子路径专用用例跳过。未执行真实 IdP/浏览器或正式安全审计。与子路径 PR 仅共享静态文件隔离和公共 URL 基础提交。