Skip to content

v0.7.0

Choose a tag to compare

@behringer24 behringer24 released this 23 Nov 14:29
· 31 commits to main since this release
7c4482c

Upgrade notes

  • Two database migrations, forward only. 00017 (spaces below other spaces) and 00018 (service accounts, tokens, keys of synced entries) run at the first start. Both add columns and tables and change no existing data, but a server that ran 0.7.0 must not simply go back to 0.6.0: take a backup first (scripts/backup.sh). No change to .env, config.yaml or the compose file is needed; everything new is off until it is used.
  • Curators in spaces with mandatory approval now start with a draft (see "Changed"). Tell curators who relied on direct publishing there.
  • Pro: the new features (spaces below other spaces, service accounts and the sync) need a licence with the features space_hierarchy and service_accounts.

Added

  • Connecting other systems: service accounts, tokens and the Git sync (Pro): a tool that works on its own (a script, a CI job) gets a service account with a token instead of a person's login. A service account is an account of the kind service (users.kind) with a person who answers for it (responsible_id). It is never an instance admin (also enforced by the database), does not count against the user limit, holds a role in a space only where it was given one (the default role of a space does not apply to it), and its role is capped below the space admin (authz.ServiceMaxRole, curator). Its tokens (atr_..., 256 random bits) are stored as SHA-256 only, always expire (90 days by default, 365 at most), can be revoked and overlap for a rotation (three valid at most). Account and token are created on the server only, with the new server command token (create, rotate, revoke, list), never by an assistant so that no secret appears in a chat; instance admins list, lock and unlock accounts, revoke tokens and name the responsible person with the tool admin_service_accounts; roles come from space_add_member with the address name@service.invalid. Calls with a token are audited as token:<account>. The tool sync_knowledge (for service accounts only) and the command sync, which ships in the same image and needs no server configuration, keep the Markdown files of a Git repository up to date as knowledge entries: a stable key per file (sync_key, unique per space) makes a changed file a new version of the same entry, an unchanged file writes nothing, a removed file archives its entry and a returning file restores it. Entries kept up to date by an account belong to it (managed_by): nobody else changes or moves them (update_knowledge and move_knowledge refuse, archiving stays possible), and get_knowledge shows who keeps them. The sync refuses to archive when no file matches or most entries would go. A new setting policy.rate_limit_service_writes_per_minute (default 600) is the write limit of service accounts. Hooks in the shared code: edition.TokenVerifier (tokens of an edition are checked before the OAuth tokens) and edition.RegisterCommand / RegisterStandaloneCommand (commands of the server binary). The accounts and the tools are Pro (feature service_accounts); the rules, the store and the hooks are in the shared code and do nothing without them. Existing accounts and tokens keep working when the licence ends. See Connecting other systems. Migration 00018.

  • Spaces below other spaces, with inherited rights (rights model, Pro tool): a team space can sit below another one (spaces.parent_id, at most five levels, never itself, never a personal space) and a switch inherit_members (default on) says whether it takes over the memberships of the spaces above. The role of a user is taken from the nearest space on the way up that has an entry for them, directly or through a group; an entry in a lower space overrides what the space above gives, in both directions, and inherit_members=false stops the lookup at that space. There are no deny entries, and the default role of a space is not inherited. An archived space still passes its memberships on, and a space with sub-spaces cannot be deleted (admin_delete_space refuses it). Without any parent every space is a root and the roles are exactly those of before. Arranging the spaces is a Pro feature (admin_space_parent, feature space_hierarchy): see Atrium Pro. Migration 00017 adds the columns parent_id and inherit_members.

  • Installation guide: new docs/user/00-installation.md (with PDF), a step-by-step guide from an empty host to the first login: requirements and sizing, the three deployment variants, registering the identity provider, .env and config.yaml, choosing the embedding backend, starting, checks, first admin login, Pro licence, backups, updates, troubleshooting and a FAQ. Linked from the README, the guide index, the deployment reference and the instance admin guide.

  • Origins of an entry: a knowledge entry can name the originals its content was taken from (origins on store_knowledge and update_knowledge, shown by get_knowledge and in the Markdown export): up to 10 references of the form scheme://... with an optional title, the day it was read and a SHA-256 of the text taken over. Atrium stores only the reference, never the file, and never fetches it: the assistant reads the original with the access of the user, and the entry stays the lasting copy of the knowledge if the original disappears. Like the responsible person and the review date, a change of the origins alone creates no new version. The skills knowledge-ingest and knowledge-lint fill and check them. A database migration adds one column.

Changed

  • Go 1.27.4 for the build, the tests and the checks: go.mod now names go 1.27.0 and toolchain go1.27.4, the version the image has been built with. Before, the CI tested and ran govulncheck with 1.26.11 while the image contained a newer Go. A local go older than 1.27.4 fetches the toolchain by itself (GOTOOLCHAIN=auto). docs/release.md describes the rule.
  • Dependencies updated: pgx 5.13.0, goose 3.30.1 (with mfridman/interpolate 0.2.0) and aws-sdk-go-v2/config 1.33.19, the build image golang:1.27.4-alpine and the CI action actions/setup-go 7.1.0. docs/release.md names the bases and the Go toolchains as they are now.
  • The rights report knows the hierarchy: for a space below another one admin_rights_report shows its parent, the inheritance setting and the inherited holders with the space each comes from, counts an inherited admin for the hints and says where it comes from. Reports of instances without a hierarchy are unchanged.
  • space_members and space_contacts know the hierarchy: for a space below another one, space_members lists what it takes over from the spaces above as inherited_members (with inherit_members), naming the space above only to callers who can see it; space_contacts adds the inherited curators and admins to the people to ask, without the space they come from. Before, a space whose admin was inherited looked as if it had none. Lists of spaces that are not below another one are unchanged.
  • Data model page: docs/data-model.html describes migration 17 again (it had stopped at 15), and the check tools/docs/check-data-model.mjs knows ON DELETE RESTRICT.
  • The Community edition ignores a license: section in config.yaml instead of refusing to start (it logs a warning that the section is ignored). One configuration file now works with every image, for example when you roll back to an earlier version or test another image.
  • Curators start with a draft in spaces with approval: in a team space with require_approval, entries of curators are drafts like those of authors; only admins of the space and instance admins save approved entries directly. Before, a curator's entry was published without any check and without a question. A curator releases their own draft afterwards with review_knowledge (after confirm=true), which makes publishing a deliberate step; the audit log marks it self. The same holds for an entry that a curator moves into such a space. In a space without mandatory approval nothing changes: there a draft is an explicit request for a second look (draft=true) and a curator still cannot release their own. Restoring from the archive and editing an approved entry keep their behaviour (a draft next to an approved version is not implemented). The tool descriptions tell assistants to say that the entry is a draft. See docs/approval.md.

Full changelog: v0.6.0...v0.7.0