Skip to content

v1.16.2 — Link single sign-on only to confirmed email addresses, and support Microsoft Entra ID

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 05:52
Immutable release. Only release title and notes can be modified.
v1.16.2
c896e11

Link single sign-on only to confirmed email addresses, and support Microsoft Entra ID.

An OpenID Connect sign-in no longer links to an existing account unless HermitStash has confirmed that the account holder controls its email address. Users can link and unlink single sign-on from their profile page. A new setting lets Microsoft Entra ID provision accounts for members of a required group. A sign-in whose group list cannot be read is refused without ending the user's sessions.

Added

  • Add OIDC_TRUST_UNVERIFIED_EMAIL for providers that do not verify email — With this setting on, an email address the provider does not mark as verified is used to create an account for a member of OIDC_REQUIRED_GROUP. It is never used to sign in to or link an existing account. Microsoft Entra ID guest accounts are refused. The setting requires OIDC_REQUIRED_GROUP. The README describes Microsoft Entra ID setup.
  • Link and unlink single sign-on from the profile page — Linking asks for the account password, or for a sign-in within the last 10 minutes, and asks the provider to sign the user in again. The provider's ID token must carry an auth_time claim from after the link started. Linking ends the user's other sessions. A user who keeps a password or a passkey and signed in within the last 10 minutes can unlink it, and administrators can unlink an account under Admin, Users. After an unlink, the account is not linked again automatically. The audit log records oidc_account_unlinked.

Changed

  • Refuse sign-in without ending sessions when groups cannot be read — When OIDC_REQUIRED_GROUP is set and the provider sends no readable group list, or the userinfo request fails, the sign-in is refused and recorded as oidc_groups_unavailable. Sessions and roles change only when the provider's group list lacks the group. With OIDC_ADMIN_GROUP set, an admin whose groups cannot be read is refused and keeps the role.
  • Store OpenID Connect avatars only from the issuer's origin — An avatar is stored only when it is an HTTPS URL on the issuer's origin, and that origin is added to the Content Security Policy img-src. No avatar is stored for an issuer that uses plain HTTP.
  • Claim anonymous uploads from a recorded address confirmation — When the holder of an account confirmed its address through an emailed verification link, an emailed invite, or a Google or OpenID Connect sign-in, the account claims anonymous uploads made with that address, even when EMAIL_VERIFICATION is off. This includes existing Google accounts and accounts created by OpenID Connect. Other accounts keep the previous rule. Accounts created from an unverified provider address never claim uploads.
  • Ask for confirmation before adding an unconfirmed account to a stash — Adding an account whose address has not been confirmed to a stash by email now needs a second confirmation from the administrator.
  • Stop returning sign-in identifiers from the admin users API — /admin/users/api no longer returns googleId, tailscaleId or oidcSubject. It returns googleLinked, tailscaleLinked, oidcLinked and emailConfirmed.

Security

  • Stop linking single sign-on to accounts with an unconfirmed address — Someone who registered an account with another person's address before that person first used single sign-on could keep password access after the link. Linking now requires a confirmed address. Refusals are recorded as oidc_link_refused.
  • Tie each verification link to the address it was sent to — Following an emailed verification link previously committed whichever new address was staged on the account at that moment, even if the link had been sent to a different one. An emailed link now commits a staged address change only when it was sent to that address.

Migration

  • Link existing password accounts from the profile page — Password and Tailscale accounts created before 1.16.2 are not linked automatically. Their users sign in and choose Link single sign-on under Profile. Users signed in before the upgrade without a password must sign in again before linking. Verification links and invites issued before the upgrade still work but do not confirm the address.
  • Review accounts linked before 1.16.2 — Earlier versions linked any account with a matching provider-verified address. In the audit log, review oidc_account_linked entries whose authType is local, invite or tailscale. If such an account has a password or passkey its owner did not set, reset the password, remove the passkeys and turn off two-factor authentication. Under Admin, also revoke the API keys, sync tokens and browser certificates created by that account. A password reset does not revoke them.