Skip to content

UwULock Server 0.6.0-beta.2

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 30 Sep 09:19
· 129 commits to main since this release
5d89a64

Tidying up after 0.6. The admin portal is sorted into areas with tabs, and every setting says
in plain words what it does and what is recommended; it now looks like the web vault, whose
spacing is even again. The admin switches off the extras this server does not need: a new server
starts with only the vault and icons, and an update switches off every extra that nobody uses
(nothing is deleted). Website icons fall back to the domain's (account.example.com →
example.com) and, where a site has none, come from 2FA Directory, Simple Icons or Dashboard
Icons, which ship with the server. Every low finding and note of the 0.6 review is fixed. It
belongs with UwULock 0.3.0-beta.2, UwUSSH 0.2.1 and UwURDP 0.1.0-beta.8. Update with
sudo bash update.sh; every client syncs in full once afterwards, and a server with sealed
settings no longer starts without its secret.key.

Website icons.

  • An address without an icon of its own now gets its domain's: account.example.com, which
    answers 404 and names no icon, shows the icon of example.com. Which part is the domain comes
    from the Public Suffix List built into the server (foo.example.co.uk → example.co.uk); IP
    addresses, names without a dot and the home network's names stay as they are. The domain is
    fetched once for every address below it, through the same checks and limits as every other
    fetch (docs/icons.md).
  • An address whose page ends up on another site after its redirects (a sign-in provider, a
    hoster's or a parked domain's page) no longer gets that site's icon, but its domain's.
  • The cache of website icons starts anew (icons/auto-2): every site is fetched again when it
    is next shown, and the old cache — with its "none"s that would now keep the domain's icon away,
    and icons of other sites — is deleted with the daily clean-up.
  • Three open icon databases now come with the server, inside its binary: 2FA Directory (MIT,
    about 2,500 logos for 3,300 domains), Simple Icons (CC0, about 2,500 brand glyphs on a tile in
    the brand's colour; icons with a licence or brand guidelines of their own are left out) and
    Dashboard Icons (Apache-2.0, about 3,300 logos of self-hosted apps). A website without an icon
    of its own, nor its domain, gets 2FA Directory's by its domain, else Simple Icons'. A device in
    the home network is still never asked, but one named like an app (jellyfin.local,
    nextcloud.home.arpa) gets that app's icon from Dashboard Icons. Nothing is fetched for them;
    the browser and the apps still only talk to your server.
  • Dashboard Icons is part of the icon library, also without selfh.st. An item for a device in the
    home network suggests library icons that fit its name.
  • Admin portal, Vault & features → Icons & password check: each database has its own switch (all on) and a list of
    where the icons come from, with their licences. The licence texts are in
    THIRD-PARTY-NOTICES.txt, also in the image under /usr/share/doc/uwulock-server/. The
    databases are taken from fixed upstream commits and updated with
    node scripts/icons/update.mjs --bump (docs/icons.md).

Web vault: even spacing and one set of building blocks.

  • Spacing, type sizes, radii and control heights come from tokens (web/src/styles/tokens.css):
    fields, selects and buttons are one height again, so a field and its button line up, and the
    focus ring no longer squares the corners of a field.
  • The item editor lines up: labels no longer grow when a field has buttons (they sit inside the
    field now), card expiry and identity fields share one row height, websites and fields of one's
    own are groups with the same heading and add buttons, and website rows stack on a phone. A
    field that never had a value no longer says it will be cleared.
  • Dialogs have even padding, a close button in the title bar where they had one, hairlines when
    their content scrolls, and one footer order (cancel, then the main action, at the end).
  • Settings: each section starts at the top with the same heading, rows put their control below
    the text on a phone, and the section list scrolls sideways there instead of wrapping.
  • Item details: the icon, the rows and the notes keep one inset from the card's edge; a long
    title wraps instead of breaking inside words on a phone. The password check fills the screen
    on a phone instead of starting halfway across.
  • One set of components for the web vault and, next, the admin portal: buttons, icon buttons,
    fields, selects, check boxes, toggles, form rows, field groups, cards, sections, tabs, badges,
    callouts, tables and the dialog (docs/ui.md). No behaviour changed.

Admin portal: areas with tabs, plain words, and the web vault's look.

  • The portal is sorted into eight areas in the sidebar, each with its tabs: Overview, Users &
    invitations
    (accounts, invitations, families), Security & login (login, master password,
    admin portal, SSO provider, SSO rules, SCIM), Vault & features (features, storage & limits,
    icons & password check, masked addresses, send domains), Mail & notifications (mail server,
    mails to users, push for the apps, admin alerts), Backups (on this server, off-site),
    Branding and System & diagnosis (diagnosis, events, log, monitoring). The long settings
    page is gone; each setting is found in one or two clicks. Tabs of switched-off features are not
    there.
  • Every setting says in one plain line what it does, with the technical term where it helps
    (Argon2id, PBKDF2, OIDC, SCIM), its unit spelled out (days, megabytes, hours) and the
    recommended value on a green badge. German and English.
  • Settings are saved together as before: changed on any tab, a bar at the foot of the page offers
    Save and Discard. What cannot be undone (deleting an account, resetting two-step login,
    restoring an off-site backup, the strict SSO rules) sits framed apart, and still asks first;
    unpairing from UwUAuth now asks too.
  • The portal uses the web vault's shell (bar, sidebar with the account at its foot) and its
    building blocks throughout; the portal's own copies of buttons, cards, tables and badges are
    gone. On a phone the areas and the tabs are rows that scroll sideways.
  • Old addresses (#/settings, #/features, #/logs, #/notifications, …) lead to their new
    place. 1 … 8 open the areas, J/K go to the next and previous one, the arrow keys move
    between tabs.
  • A table that scrolls sideways and the diagnosis' snippets take the keyboard focus, and the
    green badges have 4.5:1 contrast in the light theme.

Feature switches: the admin decides which extras this server offers.

  • Admin portal → Vault & features → Features has a switch for each UwULock extra, grouped and with one line each:
    families, file requests, send domains, masked addresses, versions, reminders, travel mode, the
    emergency sheet, own icons, the icon library, 2FA hints, SSO, SCIM, off-site backups,
    notifications through ntfy/Gotify/Matrix and the suite vault (docs/features.md).
    The vault and everything the Bitwarden apps use are always there.
  • Off means: its endpoints answer 404 feature_off, its jobs stop, and the web vault and the admin
    portal hide it; a link that leads there says "Not on this server". Nothing is deleted, and
    switched on again, everything is back. SSO off makes a server without SSO (master passwords
    work again); travel mode cannot be switched off while someone travels.
  • A new server starts with only the vault and icons. An updated server keeps on what it uses
    (data or a setup), everything else is off. UWULOCK_FEATURES sets what a new server starts
    with, uwulock-server features [list|on|off] changes them on the command line, and moving in
    from Vaultwarden switches families on when organisations come along.
  • /uwu/v1/info lists every switch under switches; the admin API is
    GET|PUT /uwu/v1/admin/features, and every change is in the event log
    (docs/uwu-api.md §2, §21.12).
  • The on/off settings of file requests and the suite vault moved into the switches
    (fileRequests.enabled and suite.enabled are gone from the settings).

The low findings of the 0.6 review, fixed. Every low finding and note of
the review that stayed open for 0.6.0-beta.1 (SV-L1 to SV-L41,
SV-I1 to SV-I4) is fixed; the review says how, finding by finding. What admins and client
authors notice:

  • Migration 0018: SCIM remembers which accounts it disabled
    (scim_disabled), organisation tombstones keep their collections, the sync epoch starts anew
    (every client syncs in full once), and leaving or being revoked from an organisation removes
    one's reminders and masked links there.
  • Suite push: POST /uwu/v1/suite/spaces/{space}/records takes spaceId; a push sealed for
    a space that was rekeyed since is refused with 409 space_changed. Pushes without it are still
    taken (UwUSSH and UwURDP send it from their next releases on).
  • Secrets at rest: the SMTP and Loki passwords, the push relay key, the channels' tokens and
    the off-site secrets and recovery key are sealed under secret.key now, existing ones at the
    first start. Without secret.key but with sealed values the server refuses to start;
    UWULOCK_NEW_SECRET_KEY=1 for one start empties them instead.
  • Two-step login duty: an account that must set up a second step gets a setup-only token
    (scope uwu.twofactor-setup, everything else 403 two_factor_required, an empty sync) until
    it has one, from any client.
  • SSO: the redirect of browser extensions is pinned to the released ones; self-built ones
    are listed in the SSO settings (extensionIds). The issuer takes no ?query, endpoints on
    loopback http only with an issuer there, and a failing provider is asked once in 30 seconds.
  • Off-site backups: an SFTP server's host key is confirmed before any login (the portal asks;
    the command line needs --host-key). The command line reads the recovery key without echo and
    asks before putting back the newest snapshot; the portal warns when the last snapshot this
    server wrote is missing at the target. A restore whose files fail still finishes its steps.
  • Alerts: channels get fixed texts with the status code, not another server's words; admin
    test buttons show only the status of what they reached.
  • Sends and file requests: send domains are recognised with a dot at the end, Send codes
    have eight digits with daily caps and caps per Send and owner, a file request holds at most
    2 GB by default (fileRequests.maxRequestMb), and uploads stop when a request closes.
  • More: a WebSocket ticket instead of the admin's token in the diagnosis
    (POST /uwu/v1/admin/diagnosis/websocket-ticket), at most 25 sockets per address waiting for
    their login (429), masked connects need this server on https (https_required), invitations
    count admins as admins only where the portal is open, automatic icons refuse more NAT64
    ranges and answer a cached icon like a missing one when out of tries, Loki lines are capped,
    "Share as Send" asks for the master password first, and the importers have size limits and
    stricter checks.