Repository navigation
支持公网集群、Token 控制台登录与账号入口整合 - #252
Merged
Merged
Conversation
…ounts Connect outbound workers with explicit model sharing and Token-based remote console access. Simplify account controls, allow disabling the built-in provider, and show node names, roles and tunnel connectivity. Refs #250.
Add configurable local and LAN login, restore manual cloud API keys, and protect authenticated uploads. Rename shared compute and hide gateway details on workers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
公网工作节点可以主动连接 Lite 网关,通过统一入口提供共享模型推理,无需工作节点开放入站端口。
console_auth_mode=auto|required和环境变量覆盖:默认本机/局域网免登录,也可强制登录;桌面客户端继续自动鉴权。管理会话、推理 API Key、节点加入令牌分别授权,修复本地推理鉴权与用量归属、上传分片 CSRF 和错误跳转登录页。验证:
make lint、前端 148 项测试和生产构建通过;最后的集群界面调整另通过 12 项相关测试及构建。go test ./internal/server ./internal/config ./internal/cli回归通过,覆盖配置兼容、环境覆盖、本机/局域网强制登录、桌面鉴权及 CSRF。required模式首页跳转登录页、未登录管理 API 返回 401;恢复auto后本机页面和管理 API 返回 200。强制登录沿用 HTTPS 安全 Cookie,本机/局域网启用时也需通过 HTTPS 访问;推理 API Key 策略保持独立。
范围:单 Master 公网集群;多 Master 高可用和公网模型文件分发尚不支持。模型服务/Provider 管理重构不在本 PR 范围。
Review 建议优先看
ee/cluster/public*的隧道和身份校验、internal/server/cluster_public_web.go的访问边界,以及docs/guides/public-cluster-requirements.md。Refs #250.