Clients and tenants

Clients and their tenants are in the Tenant management › Client and Tenants menu.

A client is a customer organisation. A tenant is an isolated RegLab environment that belongs to a client; a client may have several. Users get a role and plans on a tenant: see Users. A tenant’s lifecycle (statuses, validity, deletion, purge) is explained in detail in A tenant’s lifecycle.

The clients and tenants tree

The page is titled Tenants. Its header offers New client and New tenant.

Under the header come the Contracts ending soon panel and the line about tenants without an end date (see Contracts ending soon), then the tree. It has three levels:

  • one client per top-level row, always expanded, with its logo if it has one, its name (link to the client’s page), how many tenants it has, and its Subdomain and Realm when set. A client without a tenant shows too. Tenants without a client are grouped under a last row, No client;
  • under each client, its tenants, in alphabetical order: name (link to the tenant’s page), number of members, state tags (see A tenant’s status), description, Created and Deleted dates;
  • under a tenant, its members: username (link to the user’s page), a Suspended tag when their access to the tenant is suspended, their role (Member or Admin) and their plans (a link to each plan).

A tenant’s members are read when you expand it. A tenant shows 20 of them at most; beyond that, a last row See all N accesses opens the access list filtered on that tenant (see Access to tenants).

The Deleted column gives the purge date of a deleted tenant. For a tenant whose deletion is scheduled, it shows in grey, after a clock, the date the purge is planned for (tooltip “Purge scheduled on this date, restorable until then”).

Paging counts clients (“Showing 1 to 10 of N clients”).

Search and filters

The bar above the tree offers:

  • Global search…: searches the names, the descriptions and the plan names. While a search runs, every tenant is expanded and shows all its members, so that no match stays hidden;
  • Select a client: shows only the clients picked;
  • Show deleted tenants (N): deleted (purged) tenants are hidden by default; ticked, the box shows them, greyed out;
  • Without end date (N): shows only the active tenants without a validity end date, and the clients that have such tenants. Each one then carries a Set an end date button, which opens the validity dialog.

The ⋯ menus

A client’s ⋯ menu offers View, Edit and Delete. Delete is greyed out while the client has tenants (deleted ones included) or users; its tooltip says so: “Cannot be deleted while the client has N tenant(s) and N user(s).”

A tenant’s ⋯ menu offers, depending on its status:

Entry Offered when the tenant is
View always
ALM storage always
Edit not deleted
Add user active or suspended
Suspend active
Reactivate suspended
Validity not deleted
Schedule deletion active or suspended
Restore pending deletion

Add user opens the access form with that tenant and its client already chosen (see Give or change an access).

A member’s ⋯ menu offers View, Edit, Suspend access (or Reactivate access) and Delete. Delete takes the user out of the tenant after the confirmation “Remove X from T? Their role and plans in that tenant are deleted, and X will receive an e-mail about it.”

Contracts ending soon

The Contracts ending soon panel lists the active tenants whose access ends within 60 days, and those ended within the last 30, the soonest first. It shows only when it has at least one row.

Each row shows:

  • the time left: “in 12 days”, “in 1 day”, “last day”, then “ended today”, “ended yesterday”, “ended N days ago”. The colour turns amber under 30 days, red under 7 days, grey once ended;
  • the tenant’s name (link to its page) and its client;
  • the last day of access, “until DD MMM YYYY (included)”. The tooltip gives the exact moment access stops (“Access stops on …, excluded”);
  • a gauge of what is left of the 60 days;
  • the reminders already sent for that end date: 60 d, 30 d, 7 d, ended. The tooltip gives the date sent and the number of addresses; a faded reminder, with a dashed border and a dash instead of the envelope, was skipped: a more urgent reminder went out instead. With none: “No reminder sent yet”;
  • the Extend button, which opens the tenant’s validity dialog (see A tenant’s validity).

Under the panel, a line counts the active tenants without an end date: “N active tenant(s) have no end date: no reminder will ever warn about them.” Show them ticks the Without end date filter; Show all tenants unticks it.

The reminders themselves (who gets them, and when) are described in End-of-contract reminders.

Create or edit a client

New client (tree header) opens the Create a new client form. Edit (⋯ menu or client page) opens Edit a client.

Field Required Checks
Client name yes Unique: “A client with this name or subdomain already exists.”
Subdomain no One lower-case label (letters, digits, hyphens), 63 characters at most, not starting or ending with a hyphen. What is typed is lower-cased. Unique across clients: “Another client already uses this subdomain.”
Realm no No realm or one of the realms the platform accepts.
Description no Formatted text.
Logo no Only once the client is created (“A logo can be added once the client is created.”).

While the subdomain is valid, the form shows the Front address: the client’s front answers on (for instance https://<subdomain>.irrc-int.… on the integration environment). Otherwise it shows the hint: “Optional: one lower-case label (letters, digits, hyphens) on which the client’s front answers.”

The Realm is the Keycloak realm the client’s users sign in to; all of its users must already be in it. The server refuses a realm while some of the client’s users are in another one: “This realm cannot be set: some of the client’s users are in another realm. Move them first.” See A client’s realm.

Save creates the client and opens its page, or saves the change and goes back to the previous page. Back leaves without saving; if values were typed, the Unsaved changes dialog asks Leave without saving or Stay on the page.

A client’s page

A client’s page opens from its name in the tree or from View. Its title is the client’s name, after its logo. The buttons are Back, New tenant for this client (the tenant form opens with this client chosen) and Edit.

The page shows:

  • Client name and Description;
  • Subdomain: the address of the client’s front, as a link, or “No subdomain”;
  • Realm: the realm, or “No realm”;
  • Logo: the logo and its buttons (see below);
  • Tenants: the name (link to the tenant) and description of each, sortable columns; or “This client has no tenant.”;
  • Users: Username (link to the user), Last name, First name, Mail; or “This client has no user yet.”

Delete a client

Delete (client’s ⋯ menu) asks “Delete the client X?”. The server refuses while the client has tenants, deleted ones included, or users. The entry is greyed out in that case anyway.

Create or edit a tenant

New tenant (tree header) or New tenant for this client (a client’s page) opens the Create a new tenant form. Edit opens Edit a tenant.

The form has three sections.

Identity: “The name users and services know the tenant by, and the client it belongs to.”

  • Name: required and unique, deleted tenants included: “A tenant with this name already exists.”
  • Client: required (Select a client).

Login credentials, on creation only: see Login credentials.

Description: formatted text, “Shown in the tenants tree.”

Save creates the tenant and opens its page, or saves the change and goes back to the tree. Back goes back to the tree; unsaved values bring up the Unsaved changes dialog.

Rules when editing:

  • A tenant with members cannot change client: the Client field is locked, with the hint “This tenant has N member(s): remove them before moving it to another client.” The server, for its part, refuses to move a tenant to a client some of its members neither belong to nor are guests of.
  • A deleted tenant can no longer be changed: the form is greyed out, with the message “This tenant is deleted: it can no longer be changed.”

A new tenant is active, with no validity limit.

Login credentials

The Login credentials section shows on creation only: “Chosen when the tenant is created: this form does not change them afterwards.”

  • Type: Password, the only type offered.
  • Password: filled with a password the server generates. Generate draws another one. You may also type one; the server refuses an empty or too short password.
  • The hint says: “Shown only now: copy it before saving.”
Warning

This password is the tenant’s encryption secret. No screen shows it again after saving, and none can change it. It is stored encrypted; only the authorised services read it (see A tenant’s credentials).

A tenant’s page

A tenant’s page opens from its name in the tree, from View or from the contracts panel.

The header shows the All tenants link, the tenant’s name, the Client X tag (link to the client) and the state tags. The buttons are, depending on the status: Suspend, Reactivate, Validity, Schedule deletion, Restore (see Suspend, delete, restore), then always ALM storage and Access history (the history filtered on this tenant, see Access history), and Edit while the tenant is not deleted.

The Definition card gives:

  • Tenant name;
  • Reference: the tenant’s public id, the one the services know;
  • Client name (link) and Description;
  • Valid from and End of access (excluded), or “No limit”;
  • Purged on, for a tenant whose deletion is scheduled;
  • Deleted on, for a deleted tenant.

The Contract card gives:

  • the end date, “until DD MMM YYYY (included)”, and the time left; or “No end date”, with the reminder “Open-ended: access never stops on its own, and no end-of-contract reminder is sent.”;
  • Reminders sent: each reminder for the current end date, with its date and number of recipients, or “skipped”; or “No reminder sent yet”;
  • Earlier end dates: the reminders sent for the end dates the tenant had before it was extended.

The Access card lists the tenant’s members: see A tenant’s members.

A tenant’s status

A tenant is in one of these four statuses. Only an active tenant, inside its validity window, gives its users access.

Status Tag Tooltip
Active none
Suspended Suspended (amber) “Suspended since …: its users have no access.”
Pending deletion Deletion on … (N days left), then Deletion on … (last day) (red) “No access; restorable until …, then purged.”
Deleted Deleted (red) “Purged on …: read only.”

An active or suspended tenant also carries, depending on its validity:

  • Expired: “Validity ended on …: its users have no access.”;
  • Not yet valid: “Validity starts on …: no access before.”

A tenant’s validity

Validity (⋯ menu, tenant page), Extend (contracts panel) and Set an end date (Without end date filter) open the Validity of X dialog: “Its users have access only within this window. Leave a date empty for no limit.”

  • Valid from: date and time, or empty (“No limit”).
  • End of access (excluded): date and time, or empty. Access stops at that moment; the hint names the last day of access it gives: “Access stops at this moment: the last day of access is DD/MM/YYYY, included.”

If the end does not come after the start, the message “The end must come after the start.” shows and Save stays greyed out. Once saved: “Validity of the tenant X updated”. The contracts panel and the count of tenants without an end date update.

The validity can be changed in any status but deleted. A new end date starts the reminders afresh: those already sent stay under Earlier end dates.

Suspend, delete, restore

Each action asks for a confirmation naming the tenant, then shows a message.

Action Confirmation Effect
Suspend “Suspend the tenant X? Its users lose access at once. Everything is kept until you reactivate it.” Suspended. The members get an e-mail.
Reactivate “Reactivate the tenant X? Its users get their access back at once.” Active. The members get an e-mail, except those whose own access is suspended.
Schedule deletion “Schedule the deletion of the tenant X? Access stops now for all its users. Its data is purged after 60 days; you can restore it until …” Pending deletion, with the purge date. The members get an e-mail.
Restore “Restore the tenant X? It gets back the status it had before its deletion was scheduled.” Active, or suspended if it was before. The members get an e-mail.

Deletion can be scheduled whether the tenant has members or not. During the 60 days of waiting, everything is kept and the tenant can be restored. Then the purge removes its members, marks it deleted and asks each service to erase its data: see The purge. The Purge page shows what each service still holds.

Note

A suspended tenant keeps the Add user entry, but the server gives and changes no access in it: “This tenant is not active: no access can be given or changed in it.” Removing a user is still possible.

A tenant’s members

The Access card of a tenant’s page lists one row per user holding a role or plans there:

  • User: the username (link to the user), with the Disabled tag if their account is disabled, and Suspended if their access to this tenant is suspended;
  • Role: Member or Admin;
  • Plans: one link per plan.

See in the access list opens the access list filtered on this tenant; Give an access opens the access form with this tenant chosen. Roles, plans and the suspension of an access are described in Access to tenants.

ALM storage

ALM storage (⋯ menu or tenant page) opens the ALM storage page: “What ALM keeps in S3 for this tenant, by kind. Open a kind to see its files; the ones no longer in use are flagged.” The page only reads: it deletes nothing.

The top of the page gives the total size “in N files under” the tenant’s prefix, the number of files not in use and of orphans, and a bar of the size by kind. The table has one row per kind: Kind, Files, Size, Oldest, Not in use.

Kind Content
Run inputs What a run was given, kept to replay it
Run results The engine’s answer, deleted once saved: should be close to none
Cash-flow stores One DuckDB file per run, kept as long as the run
Notebook Parquet Built on demand for notebooks, kept 3 months
Audit trails The reporting’s audit trails
Imported files The files imported into ALM
Other Anything else under the tenant’s prefix

Opening a kind (Show the files) lists its files: Key, Status, Size, Last modified, Run. The filters are All, Not in use, In use, Leftover and Orphan, each with its count. The statuses:

  • In use: something in ALM points at it;
  • Leftover: its run exists but should no longer have it;
  • Orphan: nothing in ALM points at it.

If ALM does not answer, the page shows “ALM’s storage could not be read” with the reason (an ALM without this listing, a refusal, or no answer) and Retry.

Who may do what

The whole console is reserved to platform administrators (the ROLE_ADMIN role in a platform realm): any other account sees the Access restricted page. The server applies the same rule to every call of these screens. See Rights and Who opens the console.

The server also refuses, whatever the screen:

  • any change to a deleted tenant;
  • suspending or reactivating a tenant pending deletion: restore it first (“This tenant is scheduled for deletion: restore it first.”);
  • restoring a tenant that is not pending deletion.