Commit Graph
8 Commits
Author SHA1 Message Date
Steven RYDELL adca6d8730 feat(dev): switch dev tokens to a real admin account with configurable duration
Requested: dev-token.sh/.ps1 tokens should last 3h by default, with an
argument to override the duration.

Server-verified finding: STALWART_RECOVERY_ADMIN (the break-glass
account docker-compose.yml and the scripts used) always issues OAuth
tokens with a fixed 1h expiry, regardless of the server's configured
accessTokenExpiry — confirmed against the live container, including
after changing the setting and restarting. Confirmed x:ApiKey objects,
by contrast, support an arbitrary expiresAt set per request, and their
secret works directly as a bearer token.

Add scripts/dev-server-init.sh (+ .ps1): a one-time, idempotent setup
step that completes the server's bootstrap wizard (default domain, no
TLS certificate request), creates a real "devadmin" admin account, and
sets the server's default OAuth token lifetime to 3h.

Rework dev-token.sh/.ps1 to authenticate as devadmin and create an
x:ApiKey with a caller-supplied expiry (`dev-token.sh 1800` for 30
minutes, defaults to 10800s/3h) instead of running the OAuth PKCE flow
against the recovery account. Verified end-to-end against a fresh
container, including a real browser session against the running WebUI.

Also includes an incidental package-lock.json sync (was still pinned to
v1.0.8 / stale dependency ranges from before the upstream merge).
2026-08-01 18:32:13 +02:00
Steven RYDELL 5dac3490ee Update react-router-dom and migrate to @daypicker/react 10 2026-07-29 11:40:29 +02:00
Steven RYDELL 868dd5e877 v1.0.8 2026-07-29 11:28:56 +02:00
Steven RYDELL 13c21fc6d5 v1.0.7 2026-07-29 08:05:20 +02:00
Steven RYDELL 0fb734a6c7 Replace native datetime inputs with a calendar date picker 2026-07-29 07:50:55 +02:00
Maurus Decimus 5eea77346a v1.0.6 2026-07-28 10:57:30 +02:00
Maurus Decimus 80727bbb77 Use happy-dom as vitest environment 2026-04-20 15:23:38 +02:00
Maurus Decimus 4470616775 Initial commit 2026-04-20 15:02:57 +02:00