Repository navigation
v0.7.0
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.yamlor 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_hierarchyandservice_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 commandtoken(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 tooladmin_service_accounts; roles come fromspace_add_memberwith the addressname@service.invalid. Calls with a token are audited astoken:<account>. The toolsync_knowledge(for service accounts only) and the commandsync, 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_knowledgeandmove_knowledgerefuse, archiving stays possible), andget_knowledgeshows who keeps them. The sync refuses to archive when no file matches or most entries would go. A new settingpolicy.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) andedition.RegisterCommand/RegisterStandaloneCommand(commands of the server binary). The accounts and the tools are Pro (featureservice_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 switchinherit_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, andinherit_members=falsestops 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_spacerefuses 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, featurespace_hierarchy): see Atrium Pro. Migration 00017 adds the columnsparent_idandinherit_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,.envandconfig.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 (
originsonstore_knowledgeandupdate_knowledge, shown byget_knowledgeand in the Markdown export): up to 10 references of the formscheme://...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 skillsknowledge-ingestandknowledge-lintfill and check them. A database migration adds one column.
Changed
- Go 1.27.4 for the build, the tests and the checks:
go.modnow namesgo 1.27.0andtoolchain go1.27.4, the version the image has been built with. Before, the CI tested and rangovulncheckwith 1.26.11 while the image contained a newer Go. A localgoolder than 1.27.4 fetches the toolchain by itself (GOTOOLCHAIN=auto). docs/release.md describes the rule. - Dependencies updated:
pgx5.13.0,goose3.30.1 (withmfridman/interpolate0.2.0) andaws-sdk-go-v2/config1.33.19, the build imagegolang:1.27.4-alpineand the CI actionactions/setup-go7.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_reportshows 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_membersandspace_contactsknow the hierarchy: for a space below another one,space_memberslists what it takes over from the spaces above asinherited_members(withinherit_members), naming the space above only to callers who can see it;space_contactsadds 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.htmldescribes migration 17 again (it had stopped at 15), and the checktools/docs/check-data-model.mjsknowsON DELETE RESTRICT. - The Community edition ignores a
license:section inconfig.yamlinstead 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 withreview_knowledge(afterconfirm=true), which makes publishing a deliberate step; the audit log marks itself. 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