Skip to content

feat: replace API_KEY with dashboard password in settings#7

Merged
Inch-high merged 1 commit into
mainfrom
feat/dashboard-password
Apr 1, 2026
Merged

feat: replace API_KEY with dashboard password in settings#7
Inch-high merged 1 commit into
mainfrom
feat/dashboard-password

Conversation

@Inch-high
Copy link
Copy Markdown
Owner

Replaces the API_KEY env var with a dashboard password that users set via the Settings UI. The password is stored encrypted in the database using the existing Fernet encryption.

  • First launch: no password, dashboard is open
  • User sets password in Settings: login prompt appears on next visit
  • Password stored in sessionStorage for the browser session
  • Empty password disables auth

Removes API_KEY from docker-compose, README, and Unraid template.

Generated with Claude Code

Replace the API_KEY env var with a dashboard_password setting that
users manage via the Settings UI. The password is encrypted at rest
using the existing Fernet encryption.

- Add dashboard_password to SETTINGS_SCHEMA (sensitive, no env var)
- Auth middleware reads password from DB instead of env var
- Add /api/auth/check and /api/auth/login endpoints
- Frontend checks auth on load, shows login overlay if needed
- Add password field to Settings tab with show/hide toggle
- Update sessionStorage on password change to prevent lockout
- Remove API_KEY from docker-compose, README, and Unraid template

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Inch-high Inch-high merged commit 0d59ee1 into main Apr 1, 2026
@Inch-high Inch-high deleted the feat/dashboard-password branch April 1, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant