Skip to content

v0.4.0

Choose a tag to compare

@Jake-double-one Jake-double-one released this 25 Sep 21:05
· 65 commits to main since this release
e8192b8

Optional login, like Radarr and Sonarr. Nothing changes unless you turn it on.

Highlights

Set AUTH_METHOD to choose:

AUTH_METHOD What you get
none (default) No login, as before. Also the choice behind a proxy that authenticates on its own (e.g. authentik forward auth); then the container port must not be reachable directly
basic The browser's login popup. Works with authentik's Send HTTP-Basic Authentication. Radarr dropped Basic in v6, but this setup still works here
forms A login page modeled on Radarr's, with "Remember me" (30 days) and a logout link in the footer

Both methods use the same login from AUTH_USERNAME and AUTH_PASSWORD (or AUTH_PASSWORD_FILE for Docker secrets).

Security

  • Fails closed. If the login is incomplete or AUTH_METHOD is misspelled, Wokearr stays locked and shows the reason. It never falls back to "no login". /healthz reports it as unhealthy, so it shows up in Portainer.
  • Brute-force protection: at most 5 failed logins per address within 15 minutes. Every failure is logged in a form fail2ban/CrowdSec can parse:
    WARNING [auth] Failed login for user 'x' from 203.0.113.5
  • CSRF protection: other websites can't trigger actions using your browser's stored login.
  • The forms session cookie is HttpOnly and SameSite=Lax, and Secure over HTTPS. Changing the password ends every session; a restart doesn't log anyone out.

Setup

    environment:
      AUTH_METHOD: "forms"        # none | basic | forms
      AUTH_USERNAME: "admin"
      AUTH_PASSWORD: "a long password"
  • In a compose file, write a $ in the password as $$.

  • Use basic only behind HTTPS: the browser sends the credentials with every request.

  • authentik with basic:

    1. Create a group with the attributes wokearr_user and wokearr_password.
    2. In the proxy provider, enable Send HTTP-Basic Authentication with those two attribute names.

    Details are in the README.

Upgrade note

Nothing to do: the login is off unless you set AUTH_METHOD. If you already had AUTH_USERNAME/AUTH_PASSWORD in your environment, they only take effect together with AUTH_METHOD=basic or forms. The startup log warns about that combination.

Full changelog: CHANGELOG.md · Compare v0.3.2...v0.4.0