Skip to main content

Backend 3.16.6

Tera Insights Team
Tera Insights Team
tiCrypt Team

What is in this release​


Changes​

  • A session that is not used for 15 minutes ends; before, it ended after 30 minutes. Set ticrypt.auth.sessions.session-idle-ttl to use another value
  • An account is locked on the sixth log-in attempt in a row that is not completed; before, on the eleventh. Set ticrypt.auth.sessions.max-challenge-attempts-before-lock to use another value
  • Accounts are locked after 90 days without a login; before, after 365 days. Super-admin accounts are not locked. Set ticrypt.maintenance.account-locker.time-before-account-old to use another value
  • A file shared with a group that belongs to a project opens only while you are active in that project; otherwise it says "File key unavailable due to project restrictions". Before, the group's project was ignored
  • Escrow groups no longer accept keys that are not signed by the current or a previous site key, and such keys already in a group no longer receive users' recovery key parts
  • Recursive directory deletion in the REST API moved from DELETE /directories/<id>/delete to DELETE /directories/<id>?recursive=true, which answers 204 No Content instead of 200
  • The PUT /directories/<id> route, meant to add several entries at once but never implemented, is removed; before, a request to it hung until it timed out
  • Importing a drive that was already imported returns the existing drive instead of creating a second one, and removes any empty drives that earlier failed imports of it left behind
  • The snapshot garbage collector of the maintenance service is removed, and its snapshot-garbage-collector settings are no longer read. tiCrypt has not taken drive snapshots since 3.8.0
  • The Libvirt realm settings snapshot-interval, snapshot-start, snapshot-end, snapshot-backups and commit-retry-interval are no longer read. They have had no effect since snapshots were removed
  • The backend's HTML sanitizer library is updated from a 2022 release to the current one. A notification body is now refused when it contains "<" directly followed by a letter
  • The backend's Bouncy Castle cryptography library, which verifies login and message signatures, is updated from version 1.52 (2015) to 1.87
  • Nine third-party libraries in the backend are updated: commons-codec, joda-time, spray-json, logback, scrimage, os-lib, pprint, scala-logging and the sttp client
  • Backend services reject a JSON number that is fractional or out of range for an integer field; before, they silently truncated it

Fixes​

  • An inbox upload that the server refuses as unsafe, such as a file named "Results <draft>.docx", no longer locks the inbox owner's account and ends all of their sessions. Before, anyone with an inbox link could lock its owner out this way
  • Sign-in attempts on an account that is already locked no longer add a "User Account Locked" entry to the audit log. Before, every attempt after the tenth added one, and the log viewer showed each as a new XSS alert
  • Administrators whose profile allows deactivating, activating or requiring escrow, but not editing user details, can do so with a reason; before, every such change with a reason, including every deactivation, was refused
  • Super-admins are offered "Change login ID" only on servers where changing login IDs is turned on; before, the action was offered everywhere and was refused at the end on servers where it is off (the default)
  • Deleting or moving a file or folder named "delete" removes only that entry; before, it deleted the folder that contained it
  • Files and folders named "usage", "entries", "key-owners", "delete-entries", "heighten-project", "set-project" or "lessen-project" can be uploaded, renamed, moved and deleted when the web app and the server are on different addresses, and one named "delete" can be uploaded and renamed; before, these actions failed with a network error
  • Files are marked incomplete again while they upload, and flags on file keys can be set; both failed with a database error before
  • Files whose upload was canceled or failed are marked "Incomplete" in Shared With Me and Shared By Me; before, they showed as complete there
  • The escrow service starts when a previous site key is invalid, and logs which site keys it trusts
  • Looking up escrow public keys for the site key user returns the site keys
  • When tiCrypt cannot use an imported drive file, the import says why and how to fix it, for example that the file must be owned by ticrypt:libvirt with mode 600. Before, it failed with "Nonzero exit value: 1"
  • A failed drive import no longer leaves an empty drive in the Drives list
  • Starting a VM no longer fails with "Cannot run program "du" ... posix_spawn failed" after the server's Java package is updated while the services are running. The services now start programs without Java's spawn helper, which a Java update deletes, so Slurm commands also keep working
  • The drive list, and with it starting a VM, no longer fails when drive sizes on disk cannot be read. The sizes are left out and the reason is logged. The same applies to team and project usage
  • A Libvirt host registered as "Disabled" or "No Scheduling" starts in that state; before, every new host started Enabled, so tiCrypt connected to it and could place new VMs on it right away
  • Unticking "Use MAC address list" when editing a Libvirt host removes the list and its strict mode; before, the form said "Updated" but the host kept limiting VMs to the old list
  • An image's OS can be changed back to "Unknown/Other"; before, the change was reported as saved but the old OS stayed
  • A notification body with an element hidden behind "<%" is refused, and a very large body made of unclosed HTML tag starts no longer ties up the notification service
  • Backend services are started with -Dconfig.file=/etc/ticrypt/ticrypt-<service>.conf as the first Java option. Since 3.16.2 it came after the first 128 characters of the command line, so monitoring that reads only that much, such as SNMP hrSWRunParameters, could not tell the services apart

Upgrading​

  • At the first run of the account locker, four hours after ticrypt-maintenance starts, accounts last used between 90 and 365 days ago are locked, and an Admin has to reactivate the ones still needed. To keep the old period, set ticrypt.maintenance.account-locker.time-before-account-old = 365d in /etc/ticrypt/ticrypt-maintenance.conf before upgrading