github jhaals/yopass 17.0.0

one hour ago

Yopass 17.0.0

Yopass 17 comes with a big overhaul of the web interface. Every screen a sender or recipient meets has been redesigned, and it comes with two new ways to keep a secret in the right hands: restricted recipients, and secret requests whose label and note the server can no longer read. Microsoft Entra ID users get proper verified-email support, which opens up both restricted recipients and email notifications for them.

Most people can upgrade without changing anything. If you create secret requests through the API, read Upgrading first.

Highlights

A new look, start to finish

The whole flow has been redrawn, from writing a secret to opening it, with fresh light and dark themes built around the Yopass green.

  • Create: the options are now tiles you can tap, each with an icon and a line explaining what it does, instead of a row of checkboxes.
  • Share: the result page puts the one-click link front and centre with a large copy button. The short link and decryption key are still there, just below.
  • Open: recipients see one thing, the reveal button, with a short note that the secret opens once and is end-to-end encrypted. No wall of warnings.
  • Files: a new dropzone with a clear drag state and a file card showing type, name and size. It works from the keyboard, and secret requests use the same one.
  • Requests: after creating a request you see what happens next in three steps: send the link, they submit the secret, you collect it here. It also tells you when the request expires.
  • Gone or expired: the secret-not-found page now says plainly what happened and what to do about it.
  • Help: how Yopass works has moved from under the create form to its own help page, linked from the footer, so the front page is just the form.

All of it is translated into every supported language.

Restricted recipients

Until now, anyone holding the link could open the secret. With restricted recipients, the sender names the one email address that may open a secret or file, and only that person, signed in with a verified address, gets in. A wrong person with the link is refused, and their attempt does not use up a one-time secret.

  • Works outside your organization too. With --recipient-email-code, a recipient who cannot sign in to your identity provider proves their address with a six-digit code sent by email.
  • You can see who opened it. Read receipts, the audit log and the secret.viewed webhook record the viewer and how they signed in.
  • No addresses in the database. The recipient and sender are sealed next to the secret, so storage holds no plaintext address.
  • Fails closed. The web interface and the CLI (--recipient) refuse to hand out a link unless the server confirms the restriction.

Restricted recipients is a licensed feature and is off by default. Turn it on with --restricted-recipients; it needs OIDC with verified addresses (on Microsoft Entra ID, see below), a fixed --oidc-session-key and a license. Emailed codes also need SMTP and --oidc-allowed-domains. Secrets that are already restricted stay restricted if the feature is turned off or the license lapses. See the restricted recipients docs.

Secret requests the server cannot read

The label and note on a secret request, such as "Production API key for ticket #4711", used to be stored as plain text. The browser now encrypts both with a random key, the same way it encrypts a secret, and carries the key at the end of the request link. The server holds only ciphertext, so a request now gives away nothing about what is being asked for.

Microsoft Entra ID: verified email without the workaround

Entra ID never sends email_verified, so Entra deployments have had to run with --oidc-require-verified-email=false. That switched off the verification check, and it ruled out email notifications and restricted recipients.

The new --oidc-verified-email-claim names an ID token claim that Yopass accepts as proof of a verified address. For Entra that is xms_edov:

--oidc-verified-email-claim=xms_edov

Add email and xms_edov as optional ID token claims on the app registration, drop --oidc-require-verified-email=false, and have users sign in again. Entra then works like any other provider, restricted recipients and email notifications included. The Entra setup guide has the steps, and what xms_edov does and does not prove.

The option is not Entra-specific: it also accepts a claim that holds the verified address itself, such as verified_primary_email. It is unset by default and available in the Rust server.

Upgrading

Breaking: request labels and notes must be encrypted

This is the change behind the major version, and it only matters if you create secret requests directly through the API. If you only use the web interface, there is nothing to do.

POST /request now rejects a label or note that is not an armored OpenPGP message. API callers that send them as plain text must encrypt them first; the secret requests docs have a gpg recipe.

Requests created before the upgrade keep working until they expire. Request links now always end with a key; a responder whose link lacks it, or has the wrong one, is told the link is incomplete and cannot submit.

Smaller things to check

  • Themes: --theme-light and --theme-dark now default to light and dark, with the Yopass green as primary. To keep the old look, set --theme-light=emerald --theme-dark=dim.
  • --disable-features: now hides the help page and its link. The feature section it used to hide no longer exists.
  • API tokens: a token can no longer open a secret marked "require authentication" under --require-auth-all, as the documentation already stated.
  • Restricted recipients on shared databases: upgrade every instance that serves links before creating restricted secrets. Older servers answer 404 for them.
  • Building the Rust server from source: the Cargo package is now named yopass-server (was next). The binary name is unchanged.

Go server and Go CLI

The jhaals/yopass image has run the Rust server, and the released yopass binary has been the Rust CLI, for several releases. Most deployments need to do nothing.

  • 17.0.0 is the last release that publishes the Go server and the jhaals/yopass:go image. If you still run it, move to jhaals/yopass: same flags, same data; users log in again after switching.
  • DynamoDB and Lambda: the DynamoDB backend was built for the Yopass demo site and was never a recommended way to deploy. It exists only in the Go server and will not be supported going forward. Move to the Rust server with Valkey, Redis or Memcached. Secrets in DynamoDB are not migrated, so outstanding links stop working after the switch.
  • Go CLI: removed from the repository, along with the Go API client. If you still need it, install it from 16.3.0: go install github.com/jhaals/yopass/cmd/yopass@16.3.0.

Other changes

  • The quick start, Compose and Kubernetes examples and the docs now use Valkey through the redis backend instead of Memcached. Memcached evicts unexpired secrets when memory runs low and limits items to 1 MB by default. The server's default backend is unchanged, and Memcached is still supported. Switching an existing deployment starts with an empty database, so outstanding links stop working.
  • The nginx-proxy Compose example no longer passes flags built from unset host variables.
  • Recipient, email notification and label refusals carry stable error codes, and the web forms show them in the visitor's language.

Security fixes

  • Refuse API-token sessions on secrets marked "require authentication" when --require-auth-all routes the token to retrieval. A token whose name looked like an email address could previously pass the access check. API-token sessions are now marked explicitly instead of by subject prefix.
  • Go server: refuse to start when only one of --tls-cert and --tls-key is set, instead of serving plaintext.
  • Embedders of the server package: RequireAuth without an OIDC provider now fails closed. The binaries already rejected this configuration at startup.
  • Rust server: bump curve25519-dalek to 5.1.0 (RUSTSEC-2026-0620).
  • Go server: bump Go to 1.27.4 (GO-2026-6859, HTTP/1 server crash in net/http).

Don't miss a new yopass release

NewReleases is sending notifications on new releases.