Skip to content

Brewlab 0.9.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 12:07
· 12 commits to main since this release

Households: everyone in the house can have their own sign-in, recipes, brew log and ratings while
sharing the gear, the stash and the water. Plus brew improvement suggestions, a details page for
every brew, and a round of security and accessibility work. Sign-in stays off until an admin
turns it on, and nothing changes for a single-person install until then.

  • Freshness and frozen storage. Updated estimated roast windows and optional per-bag recommendations. Freeze and thaw in their own dialogs, review and correct storage periods from the bag's menu, and see a compact frozen badge and paused freshness clock. History and overrides travel with exports.
  • Grind adjustments. Per-category dose coefficients now default to 40% for pour-over and drip and 20% for rapid brewing; roast offsets use 10% steps. Grinders can specify adjustment direction and optional reference spans, and Brew setup shows the recommendation and its components. Existing saved dose settings retain their previous values.
  • Grind converter. Method-range estimates are labeled as starting points; settings outside the source range show a warning alongside extrapolated results, and unsupported micron figures have been removed from conversions.
  • Settings reliability. Rapid taste-preference and grind-adjustment edits are preserved while earlier changes are still saving.

Households and sign-in

  • Sign-in safeguards. Enabling and disabling sign-in rechecks household state after password processing, unauthenticated account updates are rejected, and concurrent password attempts count toward the sign-in limit.
  • Security guidance. Updated the security policy for optional household sign-in, directory providers, access tokens, and protecting backups.
  • Authentication methods. Account settings let people enable or disable their local password, OIDC and LDAP sign-ins separately, or unlink a directory identity. At least one available method and a local recovery admin must remain; disabling a method does not end existing sessions.
  • OIDC and LDAP together. A household account can link both directory sign-in methods. Existing duplicate accounts are never merged or deleted automatically.
  • Sign-in recovery links are centered and match the Forgot your password link.
  • LDAP MFA. Directory sign-in allows 120 seconds by default for MFA approval (configurable); timeouts and connection errors are reported separately from rejected passwords.
  • Email in dark mode. Branded emails use the dark wordmark in clients that support dark-mode styling, and keep the light wordmark readable in clients that recolor messages automatically.
  • LDAP-only sign-in. An admin can require LDAP for a linked person while keeping a separate local-password admin for recovery. Password-reset links cannot bypass the setting; existing API tokens remain valid.
  • Email and recovery. Invitations, password resets and SMTP tests have a Brewlab wordmark and readable HTML and plain-text versions. Directory-only accounts recover their directory password with their provider; a reset email never creates a local password for them. Provider recovery links can be added to the sign-in screen.
  • LDAP security. LDAP uses StartTLS before binds by default, stores binary directory IDs losslessly, and lets an admin sign out another person's devices. Legacy binary IDs need a manual unlink and relink rather than an unsafe automatic migration.
  • Existing accounts and single sign-on. A first directory sign-in can link an unlinked account by username or verified OIDC email, keeping its role and data; admins can turn matching off. OIDC-only admins now count when checking whether another admin can be removed.
  • Sign-in (optional, off by default). Settings → Household → Turn on sign-in makes you the
    household's admin; everything already in Brewlab is yours. Passwords are scrypt hashes; sessions
    are HttpOnly cookies; ten wrong passwords pause sign-in for a while; changes must come from
    Brewlab's own pages.
  • People. The admin adds people with a starting password or an emailed invite, renames them,
    makes them admins, sets a new password or removes them. A new member gets a short welcome (units,
    starter recipes for the household's gear, Discover) and a read-only Household tab showing who's
    in it and what's shared.
  • What's each person's own: recipes, brew log, ratings and notes, Discover (board, tastings,
    avoids, taste) and settings. What's shared is the admin's choice: gear, stash and water
    (shared or each their own), recipes (private, recipe by recipe, or all) and Insights (each
    person's, or the household's added up). Items stay with whoever added them, so switching back and
    forth loses nothing.
  • Who drank this? When you log a brew, tick who else it was for: it appears in their log, they
    add their own rating and notes, the coffee comes out of the bag once, and Insights splits the
    grams between you.
  • Each person's own rating and notes on a bag, with the rest of the household's shown in the
    bag's details.
  • Profile pictures (cropped and positioned in the browser) and an account menu in the title
    bar: your profile, Household, Settings and Sign out.
  • Settings is in tabs: Brewing, Discover & AI, Account, Household, Your data, App.
  • Single sign-on: sign in with authentik, or any OpenID Connect or LDAP directory, alongside
    Brewlab passwords; the first sign-in adds the person (an admin group and an allowed group are
    optional), and existing accounts can be linked from Settings → Account. OpenID Connect uses the
    openid-client library: the ID token's signature is checked, each sign-in only finishes in the
    browser that started it, once, within 10 minutes, and providers must use https
    (OIDC_ALLOW_HTTP=1 allows plain http for a provider on your local network, for testing). ID
    tokens signed with a key or with the client secret (authentik's default) both work. Signing out of
    Brewlab also signs out of the provider (a setting), and a Logout URI for back-channel logout
    ends Brewlab sessions when you sign out of authentik.
  • Email (optional): with your own mail server (SMTP), Forgot your password? emails a one-hour
    reset link and the admin can email invites. A link works exactly once; changing or resetting a
    password signs out other devices and asks whether to delete that person's API tokens too.
  • API tokens for scripts (nightly backups from cron, Prometheus), shown once, each with an
    expiry you choose (never, the default, or 30/90/180 days or a year). With sign-in on, the
    Prometheus card shows the token to put in prometheus.yml.
  • Sign-in sessions (Settings → Household, admins): sign out after no use for 15 minutes up to
    a year (180 days by default), counted from the last use on each device and applied even with the
    app left open, which suits a shared tablet. It never signs out during a brew. Signing out waits for
    Brewlab to confirm, and says so if it can't be reached.
  • AI keys per person: each person can add their own key; the admin can share the household's.
  • Download my data (Your data) for everyone: your recipes, brew log, ratings, tastings and
    settings as JSON. The full export, backups and restore stay the admin's.
  • See docs/HOUSEHOLD.md for the details.

Brew log

  • Details & rating for every brew: the brew read-only (brewer, coffee, dose, water, ratio,
    temperature, grind, time, water recipe, pour steps), your rating and notes, and everyone else's
    ratings. The brewer also has Edit brew; someone a brew was made for can re-brew it or take it
    out of their log.

  • How it tasted and How it went tags on each brew (the bag's own tasting notes are
    suggested first), and the timer now records when each step actually started. Both tags are brew
    log filters.

  • Brewing from an unopened bag opens it, dated the day of the brew (not before its roast date),
    so its rest and freshness count from then. Bags already open or finished aren't changed.

For next time (brew improvement suggestions)

  • Optional and off by default (Settings → Discover & AI). After a brew that's rated below your
    threshold or tagged with a problem (or after every brew, if you choose), Brewlab suggests one or
    two things to change next time: grind (in your grinder's units), temperature, dose or technique.
  • Without AI it uses general rules of thumb, kept as data in catalog/brew-vocab.json (bitter →
    coarser and cooler; sour or a fast drawdown → finer and hotter; stalled → coarser and gentler
    pours…). With an AI provider, it sends the brew in full and checks the answer (grind inside the
    dial, sensible temperatures), falling back to the rules if the AI can't answer.
  • Brew setup offers last time's suggestion the next time you brew that recipe, with Apply
    (this brew only). If the brew that followed it rates higher, Brewlab offers to save exactly what
    you brewed to the recipe. Nothing changes in a recipe on its own.

Security fixes (these also affect 0.8.1 installs)

  • Link import can't reach your own network by another name. Addresses are classified with a
    maintained parser (IPv4-mapped IPv6 in any spelling, NAT64, 6to4 and other special ranges are
    refused), and each connection checks the address it actually connects to, so DNS rebinding and
    redirects can't slip through.
  • Links saved with bags, Discover picks and avoids (typed, imported or from an AI answer) must be
    http(s), and only http(s) links are shown as links.
  • Bag photos open only for people who can see the bag (and new uploads get unguessable names).
  • No more automatic recipe de-duplication at startup: look-alike recipes that differed only in
    favorite state were merged. Identical new recipes are still refused when they're made. (If you
    think one went missing in an earlier version, it's in the backups from before that start.)

Accessibility and layout

  • Dialogs take focus, keep Tab inside, make the page behind them inert and give focus back when
    they close; the "⋯" menus work with the arrow keys; charts, the timer's progress bar and the step
    list have proper names; light-theme secondary text is easier to read.
  • Long addresses, tokens and commands wrap inside their cards, and the sign-in pages keep clear of
    side system bars (Duo outer screen).

Upgrading

  • Take a snapshot first (Settings → Your data → Back up now, or curl -XPOST …/api/backups). The
    upgrade keeps everything, and nothing changes until an admin turns sign-in on; bag ratings and
    notes become the admin's own.
  • If you turn sign-in on: scripts that call Brewlab (the backup cron, Prometheus) need an admin's API
    token; behind a reverse proxy set TRUST_PROXY_HOPS=1. Sign-in doesn't make Brewlab safe for the
    open internet: keep it on your network.
  • If you set up single sign-on with a plain-http provider, it needs https or OIDC_ALLOW_HTTP=1.