Repository navigation
Releases
v0.8.1
A patch release that completes the notifications of 0.8.0: a change of rights was the one thing nobody was told about.
Upgrade notes
- The new events are off until you choose them. A connection that already has events chosen keeps exactly those. To get the rights mails, add
member_changedandinstance_admin_changedto the connection (for example: "Send the notices about changed roles to the connection mail." withadmin_notifications). - No database migration and nothing to change in
config.yaml. Instances that do not use notifications are not affected.
Added
Notifications about rights.
- Roles in a space: a person is told by mail when they are added to a team space, when their role in it changes or when they are removed. Only that person is told, not the other members and not the admins of the space. The first members of a new space are told as well.
- Instance admin right: the person and the other instance admins are told when the right is granted or revoked, because it is the right to administer everything and nobody should learn by chance that it changed hands. Whoever makes the change is not told of their own action.
- A different look on purpose: a solid band in its own colour (violet for a role, crimson for the admin right) that says "about access, not about content", the role before and after as two chips, what the role allows, who changed it and when, and a line for the case that it was not expected. The subject begins with "Access change" or "Admin rights".
- Web hooks say only that a membership or the admin rights changed and name nobody.
- Limits: only a person's own entry in a space is announced, not an entry of a group or a role that comes from a group, the default role of a space or a space above. The event is written right after the change; if that fails, the change stays and the failure is logged. The audit log remains the complete record.
Design: docs/design/notifications.md. Guide: docs/user/05-instance-admin.md#notifications.
Changed
- The documentation now says how to refresh an assistant's tool list after a change of rights: reload the tools of the connector in the assistant's settings (Claude and ChatGPT both have a function for it) and open a new chat. No reconnect is needed.
Image
ghcr.io/behringer24/atrium-tablinum:0.8.1 (also 0.8 and latest), for linux/amd64 and linux/arm64. Full changes: CHANGELOG.md.
v0.8.0
Upgrade notes
- Two database migrations, forward only. 00019 adds the tables of the notification outbox and the choices of the instance admin, 00020 a column that lets a mail list the notices it merges. A server that ran 0.8.0 must not simply go back to 0.7.1: take a backup first (
scripts/backup.sh). - Nothing changes without the new
notificationssection inconfig.yaml. Notifications are off by default.
Added
Notifications. People are told that something waits for them, by mail or by web hook.
- Events: a draft waits for review (told: the curators and admins of the space), a draft was approved or returned (the author), something was sent to a personal space (its owner), a health check changed (the instance admins).
- Mail: HTML with a plain-text part, in the colours of Atrium. A badge for the kind of notice, then for each entry the title, type, author, the person who caused it, when it happened and the note of a decision, a suggested question for the assistant and a line saying why you are told. The text of an entry is never in it. A mail about a health change shows a status card with every check.
- Web hook: Slack or a signed generic form. It names no title and no person, because its readers are a channel.
- Control: connections are set in
config.yamlundernotifications. The new tooladmin_notifications(instance admins) chooses the events per connection, instant or daily digest, tests a connection and shows what was sent and given up. - Delivery: an outbox in the database with retries. Web hooks are HTTPS only, refuse private addresses and follow no redirects.
- This edition uses one web hook and one SMTP connection.
admin_healthhas a new checknotifications.
Design: docs/design/notifications.md. Guide: docs/user/05-instance-admin.md#notifications.
Changed
- Dependencies:
aws-sdk-go-v2/config1.33.21,bedrockruntime1.64.0,smithy-go1.28.10 (Bedrock embedding backend).
Image
ghcr.io/behringer24/atrium-tablinum:0.8.0 (also 0.8 and latest), for linux/amd64 and linux/arm64. Full changes: CHANGELOG.md.
v0.7.1
Patch release: saving no longer depends on the embedding service.
- New entries are embedded in the background by default; they are found by exact words until then.
- A circuit breaker pauses requests to an overloaded embedding service for 30 seconds; searches fall back to full text and wait at most 5 seconds for their query vector.
embedding.max_concurrent(default 4) limits parallel requests to the embedding service.- The duplicate check also compares title and complete text.
Upgrade notes
- No database migration, nothing to change in an existing
config.yaml. - The default of
policy.inline_index_sectionschanges from 6 to-1. Set6(or another number above 0) to embed that many sections while saving,0to embed everything before answering.
Full changelog: https://github.com/behringer24/atrium-tablinum/blob/main/CHANGELOG.md
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
v0.6.0
Upgrade notes (read before updating)
- The compose setup needs two new passwords (breaking). The server now runs as a restricted database account instead of the superuser. Before the update, add
APP_DB_PASSWORDandMIGRATE_DB_PASSWORDto.env(letters and digits only, for exampleopenssl rand -hex 24;POSTGRES_PASSWORDstays as it is). Take a backup, then rundocker compose up -d: the new servicedb-initconverts the existing database and keeps its data. Details: docs/deployment.md, "Separate database accounts". - Your own compose file (not the one in this repository): add the service
db-initand the two accounts as described there. Use the new image together with the new compose file, never the new compose file with an older image. A new image with the old compose file keeps working as before. - Users are asked once per assistant (consent page). Running logins keep working. At the next login with an assistant, Atrium asks whether to allow it, once per assistant; after
admin_revoke_all_sessionseverybody is asked again. Tell your users before the update. - A database migration adds two tables (00015). Migrations only go forward: take a backup first.
- A
config.yamlthat spells outdatabase.urlkeeps that account and wins over the environment; leavedatabase.urlas"${DATABASE_URL}".
Highlights
Security
- Restricted database accounts by default; the audit log can be copied to stdout (
audit.stdout) and kept for a set time (audit.retention_days). - SECURITY.md, the incident runbook docs/incident.md and
admin_revoke_all_sessionsto end all logins of the instance at once. - Consent page: a client that a user has not allowed yet gets no login code before the user says yes.
- Client names are shown as plain data; Go toolchain 1.26.11.
Administration
- The instance admin right can be granted and revoked (
admin_instance_admins). admin_delete_spacedeletes an empty team space;admin_rights_reportshows who holds which role where.- Content separation for instance admins (Pro,
admin_content_access). - A licence is bound to a major version (Pro).
Knowledge and skills
- Safe concurrent updates (
expected_version). store_knowledgeasks before it saves to a default team space.- Sending an approved entry or a released skill to a colleague.
- Review tools for the owner of a personal space.
Quality
- The systematic permission matrix covers knowledge, skills, administration, sending, the skill export route, edition tools, search excerpts, versions and counts.
- New getting started guide for new users: docs/user/00-getting-started.md.
The complete list is in the CHANGELOG.
Image
ghcr.io/behringer24/atrium-tablinum:0.6.0 (also 0.6 and latest), for linux/amd64 and linux/arm64. Pin a fixed version in your compose file and update deliberately.
v0.5.1
Release 0.5.1
A patch release: long entries can be saved again, and the tool list of curators and space admins is complete for every user.
Fixed
- Long entries could not be saved:
store_knowledgeandupdate_knowledgeembedded every section of an entry before saving, one after the other at the speed of the embedding service (about 2.5 to 3.5 seconds per section on two cores). An entry of 70 KB has some 40 sections, so saving took longer than the client waited; the client gave up, the request was cancelled and nothing was stored, without a useful message. Now only the firstpolicy.inline_index_sectionssections (new setting, default 6;0embeds everything before answering, as before) are embedded while saving. The entry is stored at once, and the rest is embedded by the new periodic taskindex_pending(every 15 seconds, in batches of 4 sections so that a search is not held up for long, across restarts) and found by exact words until then. The tool answer says when part of an entry is still being indexed, andadmin_health(checkembeddings) counts the waiting sections. - Tools that an edition adds to the curator and space admin groups were listed for everyone: the change below also called the extension hook for those groups for every user. The hook is now called for the holders of the role only; the tools of the core are unaffected.
Changed
- Curator and space admin tools are listed for everyone:
review_knowledge,review_skill,publish_skill,block_skill,unblock_skill,space_members,space_add_memberandspace_remove_memberare in the tool list of every logged-in user, in a compact form for whoever lacks the role. Assistants read the list once, so a user who was made curator or space admin later did not see the tools until the connector was reconnected. The role is still checked on every call; the instance admin tools stay limited to instance admins. - Changelog and the examples in
docs/release.mdare prepared for 0.5.1. This also bringsmainthe changelog and release notes of 0.5.0, which landed ondevafter the 0.5.0 tag.
Upgrade notes
- No database migration and nothing to change in an existing
config.yaml.policy.inline_index_sectionshas a default;0restores the old behaviour. - After the update,
admin_health(checkembeddings) may name sections that are still being embedded. The number falls by itself; it is a sign of a problem only if it stays the same while the checkembedderis healthy. - A user who gets a curator or space admin role later sees the full form of those tools with the next connection of the assistant.
Tested
gofmt,go vet ./...andgo test ./...against Postgres with pgvector, including new tests for saving long entries, the background task and the edition tool groups.- On a small test server (2 cores): an 18 KB and a 70 KB document were saved at once, indexed in the background in about three minutes, found by exact words immediately and by meaning afterwards;
admin_healthstayedok.
v0.5.0
Release 0.5.0
Carries everything that proved itself on dev since the last merge to main and prepares the tag v0.5.0.
Added
- Export of knowledge (
export_knowledge): a ZIP of Markdown files, one folder per space and one file per entry with a YAML header, following the Open Knowledge Format 0.2. The tool returns a signed link that works once and for ten minutes (GET /export/<token>). Admins export their spaces, instance admins every team space, everybody their own personal space; nobody can export someone else's personal space. Every export is audited asknowledge_export. - Instance names at runtime: the short name and the organisation name are read from the configuration on the first start only, stored in the database and changed afterwards by an instance admin with the new tool
admin_instance(get,setwith confirmation, audited asadmin_instance_set), without a restart. The server instructions name the organisation too, so an assistant connected to several instances can tell them apart. - Defaults for environment variables in
config.yaml:${VAR:-default}uses the default when the variable is unset or empty;${VAR}stays mandatory.
Changed
- A basic setup needs only
.env:config.example.yamlreads the public address (ATRIUM_BASE_URL), the login domain (ATRIUM_ALLOWED_DOMAIN), the first admin (ADMIN_EMAIL) and the instance names from the environment, anddocker-compose.ymlpasses them on. The three mandatory ones have no default: the server refuses to start and names the missing variable, so nobody runs with a placeholder address or admin. Private accounts without a domain keep usingallowed_emailsinconfig.yaml. - The user guides (with PDFs) describe export,
admin_instanceand the shorter setup; the introduction gained "What it takes to run", the comparison with other approaches and answers to common questions. Public texts describe the Community edition only. - Changelog, roadmap and the examples in
docs/release.mdare prepared for 0.5.0.
Upgrade notes
- No database migration. An existing
config.yamlkeeps working; the instance names in it are stored in the database on the first start of this version. - A
config.yamlthat uses${VAR:-default}needs this version: older ones take the text literally.
Tested
gofmt,go vet ./...andgo test ./...against Postgres with pgvector.- The shipped
config.example.yamlstarts from the environment alone; a missing mandatory variable is reported by name (new test).
After the merge: tag v0.5.0 on main.
v0.4.0
What's Changed
- Feat/ci pro build by @behringer24 in #1
- Release 0.4: skill registry, Community/Pro editions, security hardening by @behringer24 in #2
New Contributors
- @behringer24 made their first contribution in #1
Full Changelog: v0.3.0...v0.4.0