Skip to content

3.0.0-alpha.17

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Nov 23:18
· 1 commit to 3.x since this release
2d1df06

Seventeenth public alpha of InvoiceShelf 3.0. Existing users can sign in through an OpenID Connect identity provider, on the web and in the mobile app, and two security issues are fixed for installs that hold more than one company.

⚠️ Pre-release, not for production. Back up your database before upgrading and use this release for evaluation and testing only.

Highlights

  • Single sign-on with OpenID Connect. An installation can let its users sign in through one identity provider. Set OIDC_ISSUER, OIDC_CLIENT_ID and OIDC_CLIENT_SECRET, register /auth/oidc/callback at the provider, and a Sign in with SSO button appears next to Login, on the web and in the mobile app. The email and password form keeps working and the customer portal doesn't change. Single sign-on never creates users: the first sign-in links an existing user by email address, and by default only when the provider says it has verified that address (OIDC_REQUIRE_VERIFIED_EMAIL). Run end to end against Keycloak, Authentik, Authelia, Zitadel, Dex, Logto, Casdoor and Pocket ID. The setup guide, with a note for each of those providers, is in docs/features/single-sign-on.md. The sign-in in the mobile app has not been run on a device yet. (#996, closes #124)

Security

  • A user who belongs to two companies could use the role they hold in one on the records of the other, by acting in the first company while addressing a record of the second. Someone with read-only access to a company could, for example, change the status of its invoices. Roles now apply only inside the company that granted them. Installs with a single company, or where every user has one company, were not affected. (#992, #994)
  • The one-time exchange-rate update for documents created before documents carried an exchange rate changed every company's documents in the chosen currency, not only the active company's, and also documents that already had a rate. The owner of any company could start it again through company settings. It now changes only the active company's documents that have no rate, and company settings can no longer start it again. Only amounts in the company's currency were affected (dashboard, reports, customer statements), never document totals. (#1000)

Improvements and fixes

  • A backup no longer reports an error when the mail server is down or not set up. After each backup the backup library emailed a placeholder address, and a failed email failed the whole run even though the zip had been written. Those emails are off; a failed backup still reaches staff as a notification. The message after starting a backup now says it has started, since it runs in the background. (#917)
  • Translations are up to date with Crowdin. (#997)

Upgrade notes

  • One migration. It adds the sso_identities table. Nothing else changes until single sign-on is configured.
  • Authentik: its stock email mapping reports every address as unverified, so a first sign-in is refused until the mapping is changed or OIDC_REQUIRE_VERIFIED_EMAIL=false is set. The guide covers both.

Thanks

Docker: invoiceshelf/invoiceshelf:3.0.0-alpha.17 or ghcr.io/invoiceshelf/invoiceshelf:3.0.0-alpha.17 (also :next).