github jhaals/yopass 16.2.0

2 hours ago

Yopass 16.2.0

Security

  • Recipients refuse expensive sender-chosen key derivation. The sender of a secret chooses how much work it takes to derive the decryption key. The web client, the Go package pkg/yopass and the legacy Go CLI limited only Argon2 memory, so a crafted secret could keep the recipient's browser or CLI busy from seconds to hours. Decryption now refuses messages with more than 16 Argon2 passes, parallelism above 16 or more than 8 password key packets, before any key is derived. This matches the limits the Rust CLI already enforced. Secrets created by Yopass are not affected. The servers never decrypt and were not affected. See GHSA-4v9j-h5v5-4vjw. Thanks @inanna-malick for the report!

The Rust server is now jhaals/yopass:latest 🦀

After testing as jhaals/yopass:next in 16.1.0, the Rust server is now the default image. latest, the version tags (16.2.0) and the branch tag all point to it. next and next-<version> stay as aliases. (#4159)

It takes the same flags and environment variables and reads and writes the same data as the Go server, so upgrading needs no migration. Things to know when you switch:

  • Users have to log in again, because session cookies use a different format.
  • The image no longer includes the /yopass CLI. Install the CLI separately.
  • The other intended differences, such as 503 instead of 404 when the database is down and stricter flag parsing, are listed in server/README.md.

If you need to go back, the Go server is still published as jhaals/yopass:go and jhaals/yopass:go-16.2.0, with the Go CLI included. Both servers can run against the same backend, so you can switch either way.

Please open an issue if anything behaves differently in your setup.

New

  • --require-auth-all puts every user operation behind sign-in. --require-auth only protects creating secrets. The new flag (REQUIRE_AUTH_ALL) also requires sign-in to open, delete and prefetch secrets and files, check read receipts and manage secret requests. People answering a secret request still don't need an account. If the flag is set without OIDC configured, the protected routes refuse all requests instead of staying open. Available in both servers. See server options. (#4147)
  • Turkish and Hebrew translations. Hebrew comes with right-to-left layout. Secrets, notes, filenames, links and keys always display left to right. Browsers that report Norwegian as nb or nn, or Hebrew as the legacy iw, now get the right language. (#4136)
  • OpenAPI spec and API guide. docs/openapi.yaml describes the integration API: secrets, files, read receipts, secret requests and config. The API guide walks through client-side OpenPGP encryption with a worked example. (#4146)
  • License expiry metric in the Rust server. The Rust server now exposes yopass_license_days_until_expiry, like the Go server. Before this, the documented license expiry alerts never fired on the Rust image. (#4177)
  • Website refresh. New monospace font (IBM Plex Mono), flatter cards and footer, and a status animation on result pages. (#4144)

Fixes

  • Secret requests after license expiry: the request list shows a notice, and #/request goes to the list instead of the creation form. /config can no longer report requests as both enabled and draining at the same time. (#4144)
  • Filenames sent with a secret have direction overrides, control characters and invisible characters removed, on screen and in the saved file, so a misleading extension can't be disguised. (#4136)
  • With --require-auth-all, audit log entries for read receipt checks, request revocation, secret fetches and key rotation now name the signed-in user. (#4176)
  • Disk storage no longer leaves an empty .meta file behind when writing metadata fails. (#4176)
  • A dropped secret.viewed webhook event is now logged at error level in both servers, and the docs state that webhook delivery is best-effort. (#4124)
  • Corrected translations in existing languages. The request count in the header now uses proper plural forms. (#4135)
  • Corrected and updated docs: metrics, quick start, TLS, audit logging, read-only mode, server options, Redis Sentinel, theming and secret requests. (#4177)

Don't miss a new yopass release

NewReleases is sending notifications on new releases.