-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel supports read-only publishing services #11364
Comments
需要增加新的内核启动参数吗?比如只读伺服的端口。 |
可以直接在设置面板/ |
需要的配置项麻烦列出我们讨论看看。 |
2 tasks
直接在 PR 中讨论吧 |
config.repo包含了同步数据仓库的密钥 config.api包含了apitoken config.ai包含了AI的apiKey config.sync包含了s3和webdav的相关信息. config.localIPs包含了本地ip地址,如果用户使用了代理转发隐藏ip可能这里不方便暴露 config.userData包含账户信息 看了下conf.json里面这些字段是不是要过滤一下? |
在 PR 中继续跟进。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In what scenarios do you need this feature?
当前内核服务仅能在内核启动时设置为只读模式, 无法同时支持 #6568 中所述的编辑与发布
Describe the optimal solution
参考桌面端基于 ReverseProxy 的
6806
端口的反向代理, 发布服务也可以通过反向代理实现CheckAuth
中间件获取附加的 HTTP 请求头字段, 校验并解析api/network/echo
获取该 JWT)CheckReadonly
中间件通过请求的上下文动态判断是否组织访问Describe the candidate solution
No response
Other information
只读模式下
/api/system/getConf
等 API 会暴露设置中的一些敏感字段, 需要额外处理WebSocket
/ws
需要动态判断是否来自于只读发布服务The text was updated successfully, but these errors were encountered: