Skip to main content

Backend 3.16.5

Tera Insights Team
Tera Insights Team
tiCrypt Team

What is in this release​


New​

  • A SuperAdmin can change another user's login ID (email) with PUT /users/<uid>/email, body {"email": "<new login ID>"}. The route is off unless ticrypt.auth.login-id-change.enabled is set to true in the auth config; until then it fails with usr-email-change-disabled. A SuperAdmin cannot change their own login ID. The server lists auth/change-user-email in GET /info/capabilities
  • A login ID change ends all of the user's sessions, deletes their MFA tokens so they redo MFA at the next login, and sends the loginEmailChanged notification to their open tabs. Logging in with the old login ID fails with usr-old-login-id, which tells the user that their login ID has changed and their key needs to be reformed for the new one. Make sure the MFA provider knows the user under the new ID before changing it
  • The audit log records login ID changes (UE), user restores (UR) and user purges (UPG), and user deletions (UD v03) now include the login ID, so an auditor can tell who held a login ID at any time
  • The backend creates the database indexes it needs at startup, in the background, so running scripts/index_*.js is no longer needed. This includes a new unique index on login IDs that ignores case. It cannot be created while two users have login IDs that differ only by case: the backend then logs "Could not create index email_ci_unique on users", and one of each pair must be renamed (the aggregate query in scripts/index_auth.js finds them). The first start on a large database can take a while to build indexes that were never created

Changes​

  • Users can no longer change their own login ID. PATCH /users/<uid> with an email field is refused with 400, and the other fields in that request are not saved either
  • A login ID is taken while an active or a deleted user holds it, ignoring case. Creating a user with the login ID of a deleted user is refused with usr-dup-email; restore that user instead, or purge them first. A login ID freed by a change or by purging a deleted user can be used again at once
  • Login IDs no longer have to be in name@domain form; they must not be empty, contain whitespace or HTML, or be longer than 254 characters
  • Removing a user from a VM no longer deletes their VM account. Before, the account was re-created with a name generated from the current login ID, losing a name set by an Admin. Deleting the user still removes it

Fixes​

  • The user modified (UM) audit record writes the first name, last name and email in their own columns. Older UM records have them shifted by one column: the email under FirstName, the first name under LastName and the last name under Email. The Email column of UM is now always empty
  • The secure log no longer runs two records together. When the logger was stopped, or a write failed, part-way through a block of records, the log ended in the middle of a line and the next record was written straight after it; tiAudit reported such lines as "Error parsing Integer" or "Could not convert ... to Timestamp". Each block is now written in one piece, and a line that was cut is marked with "#CUT#" at its end and ended before anything is written after it, so it is never taken for a hash entry
  • The hash entry written after such a cut verifies: it covers the lines the cut left in the log. Before, the first hash entry after the restart did not match
  • The logger starts when its log was cut in the middle of a character outside ASCII or in the middle of a hash entry. Before, it could report the log as invalid, and nothing was logged until the file was repaired by hand
  • Stopping the logger service writes the records it still holds. Before, the records of up to the last ten seconds were lost on every stop
  • A VM no longer fails to start on a host whose list of the boot volume pool is out of date. Before, on sites where hosts share the pool and VM IDs are pinned, the start failed until virsh pool-refresh was run on the host
  • When the boot volume of a stopped VM cannot be deleted, the backend log now names the host, the pool and the volume. Before, the log had at most a generic libvirt error, so a file left in the pool could not be traced to its VM