Feature Request: Built-in User Authentication / Password Protection for Web UI
- Ngôn ngữ chính
- Python
- Star
- 133k
- Fork
- 15.7k
- Merge trung bình
- 1 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 160
Mô tả
### 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!
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi cách ComfyUI cung cấp giao diện web khi được khởi chạy với --listen; issue không nêu tên tệp nào trong repository hoặc test nào. So sánh cơ chế kiểm soát truy cập tích hợp được yêu cầu với workaround Nginx hoặc Caddy hiện có. Để hoàn tất, cần có thiết kế xác thực tùy chọn đã được thống nhất, cấu hình thông tin xác thực, quyền truy cập web được bảo vệ và phạm vi bao phủ cho các đường dẫn truy cập liên quan.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- authentication, backend, security
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100