Authentication
Botmarley supports optional password protection to secure access to the web interface.
How It Works
Authentication in Botmarley is simple and file-based:
- If a
.passwordfile exists in the Botmarley home directory, authentication is enabled - All page routes require a valid session cookie
- Public routes (login page, static files,
/book) remain accessible - Sessions are stored as secure cookies
Setting Up Password Protection
Via the Settings Page
- Navigate to Settings (
/settings) - Enter your desired password in the password field
- Click Save
- The
.passwordfile is created automatically - You'll be redirected to the login page
The password is securely hashed before storage. When setting it through the Settings page, this is handled automatically.
Logging In
When authentication is enabled:
- Visit any page — you'll be redirected to
/login - Enter your password
- Click Login
- A session cookie is set and you're redirected to the dashboard
Logging Out
Click the Logout button in the sidebar footer, or navigate to /logout.
Disabling Authentication
To remove password protection:
- Delete the
.passwordfile from the Botmarley home directory - Restart the server
- All pages become accessible without login
rm ~/.botmarley/.password
Security Notes
Botmarley is designed as a single-tenant, locally-run application. If you expose it to the internet (e.g., for remote access), always enable password protection and consider using HTTPS via a reverse proxy like Caddy or nginx.
- Sessions expire after a configurable timeout
- The cookie is marked
HttpOnlyandSameSite=Strict - Failed login attempts are logged
- There is no username — only a single password protects the entire instance