Feature Request: Built-in User Authentication / Password Protection for Web UI
- 主要语言
- Python
- 星标
- 133k
- 派生
- 15.7k
- 平均合并
- 1 天 6 小时
- 30 天内合并 PR
- 160
描述
### Feature Idea
Is your feature request related to a problem? Please describe.
Currently, when running ComfyUI with remote access enabled (e.g., using the --listen flag or running on a publicly accessible server), the web interface is accessible to anyone who knows the IP and port, as there is no built-in mechanism for user authentication or password protection. This poses a significant security risk for users who host their instance on a shared network or cloud environment.
Describe the solution you'd like
I propose adding a built-in, optional user authentication feature to the ComfyUI core. This could be implemented via:
Command-line arguments: E.g., --username and --password .
Configuration file: Allowing users to define one or more user accounts.
The feature should require users to enter credentials before accessing the main workflow interface.
### Existing Solutions
Currently, the recommended workaround is to use a reverse proxy (like Nginx or Caddy) to implement basic HTTP authentication. While effective, this requires additional software setup and technical knowledge, making it a barrier for less experienced users who simply need basic access control. A built-in feature would greatly simplify deployment and enhance security out of the box.
### Other
Implementing this would greatly improve the security and usability of ComfyUI for users running instances outside of a strictly local environment. Thank you for considering this feature!
贡献指南
调研方向
首先追踪 ComfyUI 在使用 --listen 启动时如何公开 Web 界面;该 issue 未指定任何 repository 文件或测试。将所请求的内置访问控制与现有的 Nginx 或 Caddy workaround 进行比较。完成这项工作需要一套达成共识的可选身份验证设计、凭据配置、受保护的 Web 访问,以及对相关访问路径的覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- authentication, backend, security
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100