Repository navigation
UwULock Server 0.7.0-beta.3
Pre-release
Pre-release
·
85 commits
to main
since this release
Restores that work on a new machine. A disaster-recovery drill restored a filled server from
SFTP, S3, a folder and a local backup onto a clean one; this release fixes what it found.
- Bitwarden's push relay is gone (plan change). The server no longer wakes Bitwarden's phone
apps through Bitwarden's relay: it needed an installation id and key from bitwarden.com/host and
sent account and device ids to Bitwarden with every change. Bitwarden's apps for iOS and Android
sync when they are opened; everything else keeps its live updates (Bitwarden's notification hub,
UwULock's own/uwu/v1/realtime). Removed: the admin portal's tab Push for the apps and its
connection test, thepushsettings, the diagnosis checkpushRelay, the admin notification
pushRelayFailingand the metricuwulock_push_relay_errors_total. The apps' push tokens are
answered 200 and dropped. Schema step 0023 removes the stored relay settings, the devices' push
tokens and relay ids, andpushRelayFailingfrom the channels' events. - Password check: no more "incomplete" because XposedOrNot said 429. The web vault asked
XposedOrNot (through the server) four prefixes at a time, the server sent each on at once, and
XposedOrNot answered many of them with 429. Now all accounts' questions wait in one queue on the
server, one a second; a 429 pauses the queue for as long as XposedOrNot'sRetry-Aftersays (at
most two minutes) and the prefix is asked again, up to four times. A queue that would keep a
request longer than a minute answers 429busyand the web vault asks again later. The web
vault asks Have I Been Pwned and XposedOrNot side by side, shows HIBP's results as soon as they
are in, and shows the progress per source ("XposedOrNot: 120 von 363"); a check that takes a few
minutes is fine. The note that a source did not answer only comes for real failures. - CI: the ACME tests against Pebble no longer run out of time now and then. Pebble turns away 5%
of good nonces by default, rustls-acme fails the whole order on a badNonce and backs off 1, 2,
4 … 64 seconds, and a few of those in a row took the send-domain test past its two minutes.
Pebble now runs withPEBBLE_WFE_NONCEREJECT=0; both tests take about 3 seconds. - Feature switches that came only from
UWULOCK_FEATURESnow go along in backups. While the
line counts (nobody switched in the portal or on the command line), the server keeps what it
says in the database (features.start), at every start and after a restore in the portal; a
server restored on a new machine without that line keeps the extras it had, instead of losing
offsite-backups,familiesand the rest. A switch by an admin still wins, and a changed
UWULOCK_FEATURESstill counts until somebody switches (docs/features.md). backup restorewithout a terminal and withoutUWULOCK_BACKUP_KEYsays that no recovery key
was given and how to give one, instead of "the recovery key does not fit this backup".- A wrong
--host-keyforbackup restorenames the key the SFTP server showed and says to pass
it with--host-keyonce checked; "forget the old key" was the portal's advice. - A restore from the command line leaves nothing behind in the data directory:
backup-tmp/goes,
and so douwulock.db-waland-shm. The database now closes its write connection last, so
SQLite folds the log in and removes both, for every command that opens it. install.sh --no-startsets everything up and fetches the image, but does not start the server:
a restore can go into the empty data directory first.- Docs: off-site backups have to be switched on first (
offsite-backups); the order of a restore
on a new machine (install.sh --no-start, restore,docker compose up -d); an SFTP login for
the restore (password or a fresh key,chown 10001), the host key, S3 in your own network with
--path-style, every option including--port; keeping the snapshot restored from when the
new machine backs up the same day; feature switches after a restore; and what besides
/data/backupsa move by hand needs (secret.key, the files,acme), into a volume owned by
uid 10001.