Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/docs/integrations
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 962c1548eb swarm-controller: revoke matrix admin from former operators
The operator admin sync now also takes homeserver admin away. It records
each user id it sends `make-user-admin` for in
`operator-matrix-admins.json` under the controller's state directory
(written to a temporary file and renamed over it; a missing file is an
empty set). On each pass, a recorded account that is no longer in
authelia's `admins` group but is still joined to `#admins:<server>` is
sent `!admin users force-leave-room <user> <admin room id>` as `@swarm`,
over the same `/_matrix` path the grant uses. Leaving that room is what
ends tuwunel admin.

It never revokes an admin it didn't grant, `@swarm`, tuwunel's server
user (`@conduit:<server>`), an agent's account (the store's
`hive-agent-*` cert roles, the same roster the agent account mint uses),
or anyone in the new `services.hyperhive.swarm.matrix.adminSync.ignoreUsers`
list. That list reaches the daemon as
`SWARM_CONTROLLER_MATRIX_ADMIN_SYNC_IGNORE_USERS`. It also never sends a
revoke that would leave `#admins` with no member besides `@swarm` and the
server user.

A revoke is sent at most once per account per controller process, like a
grant. A recorded account that is out of both the group and the room is
dropped from the file.

Closes #4799
2026-10-05 12:39:02 +02:00
..
forge.md docs: the hive has no approval queue 2026-10-04 23:55:32 +02:00
github.md swarm-controller: refuse linking over an existing account 2026-10-03 13:49:03 +02:00
knowledge.md docs: drop "simply" from the knowledge sweep page 2026-09-27 20:15:55 +02:00
matrix.md swarm-controller: revoke matrix admin from former operators 2026-10-05 12:39:02 +02:00