Add password protection for published site #30

Closed
opened 2026-02-09 14:52:35 +00:00 by mik-tf · 0 comments
Owner

Context

The web UI is currently publicly accessible with no authentication. Some content is not intended to be public.

Expected Behavior

Support optional password protection for the web interface. When enabled, users must authenticate before accessing any content.

Suggested Approach

  • HTTP Basic Auth as the simplest option
  • Configurable via environment variable (e.g., HEROBOOKS_PASSWORD)
  • When the env var is empty or unset, no auth is required (backward-compatible)
  • When set, all routes require authentication
  • Username can be fixed (e.g., hero) or also configurable

Notes

  • This covers the web UI and API endpoints
  • MCP endpoint may need separate consideration (API key vs Basic Auth)
  • grid_name_proxy handles TLS, so Basic Auth over HTTPS is secure
## Context The web UI is currently publicly accessible with no authentication. Some content is not intended to be public. ## Expected Behavior Support optional password protection for the web interface. When enabled, users must authenticate before accessing any content. ## Suggested Approach - HTTP Basic Auth as the simplest option - Configurable via environment variable (e.g., `HEROBOOKS_PASSWORD`) - When the env var is empty or unset, no auth is required (backward-compatible) - When set, all routes require authentication - Username can be fixed (e.g., `hero`) or also configurable ## Notes - This covers the web UI and API endpoints - MCP endpoint may need separate consideration (API key vs Basic Auth) - grid_name_proxy handles TLS, so Basic Auth over HTTPS is secure
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_books#30
No description provided.