Sovrain
  1. Documentation
  2. Self-hosting

Reference

License

The trial, the license, the days after it ends, the lock, the user limit, the banners and the daily check of a Sovrain server you run yourself.

How Sovrain licenses an organization on a server you run yourself. Prices are on releases.sovrain.app/licenses. Steps: Activate a license.

States

The License page in the admin area shows the state at the top.

StateWhenThe License page shows
TrialThe first 30 daysTrial, the days left, and trial started and trial ends under This organization
ActiveA license is validThe number of users and Licensed until with the end date
ExpiredThe license has ended, within the days after it (14 by default)Expired on with the date, and the days left to renew the license
LockedThe trial ended without a license, the days after the license are over, the license was revoked, or the clock moved backLocked and the reason, such as Trial ended with the date

Trial

ItemValue
Length30 days
StartsThe first time Sovrain sees the organization, right after it is created
AgainNever: a trial starts once per organization, also after its license changes
A license pasted during the trialStarts when the trial ends; the trial keeps its days
After the trial without a licenseLocked at once; a trial has no days after it
User limitNone, until a license is pasted

License

ItemValue
FormA line of text that starts with svl_, generated at releases.sovrain.app
CheckOn your server, against keys built into Sovrain: issued by releases.sovrain.app, not expired, activated by its last activation date if it has one
CoversOne organization, a number of users, a length
StartsWhen the trial ends, if pasted during the trial. Within 14 days after the previous license ended: on that end date. Later: on the day it is pasted.
Next licensePasted while a license is valid, with Start when the current license ends: it waits and takes over on the end date. Replace the current license now: it applies from today, with its full length.
Days after it ends14, unless the license sets another number

User limit

ItemValue
CountedEvery account that has not been deleted, suspended ones included
Refused beyond the limitInvitations, from the admin area and from the Admin API, and imports of an organization with more users
MessageYour license covers and the number of users

Lock

WhoWhat they get
People who open a pageThis Sovrain needs a license (or This Sovrain is locked when the clock moved back), the reason, and Nothing was deleted. HTTP status 503.
Members who were signed inSigned out at their next request
AdminsSign in as usual and land on the License page, where they paste a license
Applications: SAML, OpenID Connect, SCIM and the Admin API503 with {"error":"license_required"}

Nothing is deleted while an organization is locked. A valid license unlocks it at once.

Banners

Banners show at the top of every page for people who are signed in. Each has a close button.

WhenWhoTextClosed
The trial has startedAdminsYour 30-day trial has started. It ends on the date, with Activate a licenseFor good
The last 3 days of the trialAdminsYour trial ends in the days, After that the service is locked until a license is activated.Until the page loads again
The last 3 days of the licenseAdminsYour license expires in the days, Generate a new one at releases.sovrain.app., with Replace the licenseUntil the page loads again
After the license endedAdminsThe days left to pay for the new license and activate it. Without it everyone loses access to the service., with Open LicenseUntil the page loads again
The last 5 days before the lockEveryone elseThe days left before this service is locked. Ask your administrator to renew the license.Until the page loads again

No trial banner shows once a license is pasted, and no expiry banner while a next license waits.

Daily check

ItemValue
WhenOnce a day, between 02:23 and 03:23 UTC; the minute depends on IDP_BASE_URL
WhereIDP_LICENSE_CHECK_URL, by default https://releases.sovrain.app/api/sovrain/license/check
SentThe license, Sovrain’s version, the number of users, the installation ID and the license’s end date
Answer revokedThe organization is locked; that license can no longer be pasted
Any other answer, or no answerNothing changes; the next check is the next day
Shownlast check on the License page
Offline licenseNot checked; the page shows Offline license, not checked online

Clock

Sovrain notes the time it last saw each organization. If the server’s clock moves back by more than an hour, the organization is locked with The server clock was moved back, so the license cannot be checked. until the clock shows the right time again. Saving a valid license also ends this lock.