Repository navigation
Account and security
The UI and the API require a login – one account that signs in with a password, passkeys and/or single sign-on (OpenID Connect). Manage it on the Account page.
Caution
The UI can run commands as root on your Proxmox nodes and servers. Keep it on a private network or behind HTTPS – over plain HTTP the password and the session cookie travel in clear text. The server also fetches the installed-version URLs you configure (usually LAN addresses).
On the first start the app logs a one-time setup code (also written to setup-code next to the database). Enter
it in the UI with a user name and a password (10+ characters). Nobody without the code can claim a fresh
installation. See First steps.
Account → User name & password. The current password is required to save any change. Changing the password signs out all other sessions. Passwords are stored as argon2id hashes.
Sign in with Windows Hello, Touch ID, your phone or a security key – no password needed.
- Account → Passkeys → Add passkey, give it a name. Rename or remove passkeys there.
- Passkeys need HTTPS with a host name (or
localhost). Behind a reverse proxy setPUBLIC_URL=https://watcher.example.comandTRUST_PROXY=true(Installation → Reverse proxy). -
PUBLIC_URLpins the relying party: passkeys are bound to that host name – changing it later makes existing passkeys unusable.
Sign in through the identity provider you already use for your self-hosted apps – Pocket ID, Authentik, Keycloak, Authelia or any other OpenID Connect provider. It is still the same single account: it is linked to one identity (issuer + subject) at the provider.
- At the provider, create an OIDC client (confidential with a secret, or public) with the redirect URI
https://<your address>/api/auth/oidc/callback– Account → Single sign-on shows the exact value with a Copy button. SetPUBLIC_URLbehind a reverse proxy so the address is right. -
Account → Single sign-on: enter the issuer URL (the discovery URL
…/.well-known/openid-configurationworks too), the client ID, the client secret (empty for a public client) and optionally the button name (e.g. Pocket ID), then Save provider with the current password. The same values can come fromOIDC_ISSUER,OIDC_CLIENT_ID,OIDC_CLIENT_SECRETandOIDC_NAME(Configuration); saved values override them. - Link with … opens the provider; after signing in there the account is linked to that identity.
The sign-in screen then shows Sign in with …. Another user of the same provider is refused.
- Authorization code flow with PKCE (S256),
stateandnonce; a short-livedSameSite=Laxcookie ties the redirect back to the browser that started it. The ID token is verified against the provider's keys (issuer, audience, expiry); providers that sign it with the client secret (HS256) work too. Scopes:openid profile email. - The client secret is a secret: encrypted at rest, shown only masked.
- Sessions opened with single sign-on show Single sign-on in the session list; unlinking signs them out.
- Pointing the settings at another issuer removes the link – link again afterwards.
- API tokens are not affected.
With at least one passkey or a linked single sign-on, Allow password sign-in (Account → Passkeys) can be switched off (confirmed with the current password):
- the password then only confirms account changes,
- passkey sign-ins require user verification (PIN or biometrics),
- other sessions opened with the password are signed out,
- without single sign-on the sign-in screen opens the passkey prompt right away,
- the last way in cannot be removed while it is off: the last passkey (without single sign-on), the single sign-on link or its provider (without passkeys).
Provider down or every passkey lost? Turn password sign-in back on with
--enable-password-login, or reset the login.
- HttpOnly,
SameSite=Strictcookie (Secureover HTTPS), valid 30 days, extended while in use. - Account → Signed-in sessions lists browsers (with This browser); sign out one or all others.
- Stored only as SHA-256 hashes of their tokens.
- Repeated failed logins lock the client out with growing delays (
429). Behind a proxy,TRUST_PROXY=truemakes the lockout use the real client IP. - State-changing requests from other sites are refused (Origin check).
For dashboards and scripts – see API tokens.
Secrets in the database are encrypted with AES-256-GCM:
Discord webhook, SMTP password, GitHub tokens (global and per repository), SSH private keys, installed-version header values, the Home Assistant access token.
- The key comes from
ENCRYPTION_KEY(32 bytes, base64 or hex –openssl rand -base64 32) or fromencryption.key, generated next to the database on the first start. - Back up the key. Without it the app refuses to start on that database.
- The API never returns secrets – only masked hints (
ghp_…abcd) orhasXflags. - Passwords (argon2id), sessions and API tokens (SHA-256) are hashed, not encrypted.
- HTTPS via a reverse proxy,
PUBLIC_URLandTRUST_PROXYset. - Not exposed to the internet (VPN / LAN only) – or at least password sign-in off (passkeys / single sign-on).
- Dedicated SSH key, restricted with
from="<ip>"inauthorized_keys(Connections and SSH). - Docker via a read-only socket proxy, not the raw socket (Docker containers).
- Dashboards use read-only API tokens with an expiry.
- Backups of the data directory and of
encryption.key/ENCRYPTION_KEYstored separately.
Password sign-in is off and neither a passkey nor single sign-on works (e.g. the provider is down) – but you still know the password. This only switches password sign-in on; the account, passkeys, the single sign-on link and sessions stay:
# Native / LXC (in the container)
runuser -u releasewatcher -- env DATABASE_PATH=/var/lib/releasewatcher/releasewatcher.db \
/opt/releasewatcher/releasewatcher --enable-password-login
# Docker
docker run --rm -v releasewatcher-data:/data ghcr.io/rozumek29/releasewatcher:latest --enable-password-loginNo restart is needed – sign in with the user name and password.
Forgot the password, no passkey at hand, or lost every passkey with password sign-in off. This removes the account, its passkeys, sessions and API tokens – nothing else:
Native / LXC:
# in the container (on the node: prefix each command with `pct exec <vmid> --`)
sed -i '/^BASIC_AUTH_/d' /etc/releasewatcher/releasewatcher.env # else old credentials come back on restart
runuser -u releasewatcher -- env DATABASE_PATH=/var/lib/releasewatcher/releasewatcher.db \
/opt/releasewatcher/releasewatcher --reset-login
systemctl restart releasewatcher
cat /var/lib/releasewatcher/setup-codeDocker (the executable in the image is the same; stop the app first so only one process uses the database):
docker stop releasewatcher
docker run --rm -v releasewatcher-data:/data ghcr.io/rozumek29/releasewatcher:latest --reset-login
docker start releasewatcher
docker exec releasewatcher cat /data/setup-codeThen create the account again with the new setup code.
Installs made with an early bun run deploy have a generated password in /etc/releasewatcher/releasewatcher.env
(grep BASIC_AUTH it). When BASIC_AUTH_USERNAME / BASIC_AUTH_PASSWORD are set and no account exists, the account
is created with them on the first start – sign in with the same credentials.
ReleaseWatcher · Releases · Issues · MIT License · Something wrong in this wiki? Open an issue.
Getting started
Releases
Machines
App
Reference