keep storage detail out of the matrix handbook
This commit is contained in:
parent
28d847cb7e
commit
9909e63c2d
2 changed files with 6 additions and 6 deletions
|
|
@ -136,11 +136,9 @@ each member not yet in `#admins:<server_name>` it sends
|
||||||
lands on.
|
lands on.
|
||||||
|
|
||||||
- **Leaving `admins` revokes what the sync granted.** The controller
|
- **Leaving `admins` revokes what the sync granted.** The controller
|
||||||
records each account it sends a grant for under the key `granted` of the
|
remembers each account it sends a grant for, across restarts and a lost
|
||||||
`operator-matrix-admins` NATS KV bucket, which only the controller writes.
|
state directory. When one of them is no longer in `admins` but still in
|
||||||
An upgraded controller imports the old
|
`#admins`, it sends
|
||||||
`/var/lib/swarm-controller/operator-matrix-admins.json` once and deletes it.
|
|
||||||
When one of them is no longer in `admins` but still in `#admins`, it sends
|
|
||||||
`!admin users force-leave-room @<name>:<server_name> <admin room id>`
|
`!admin users force-leave-room @<name>:<server_name> <admin room id>`
|
||||||
there as `@swarm`; leaving that room is what ends homeserver admin.
|
there as `@swarm`; leaving that room is what ends homeserver admin.
|
||||||
- **Admins the sync didn't make keep admin.** An admin missing from that
|
- **Admins the sync didn't make keep admin.** An admin missing from that
|
||||||
|
|
|
||||||
|
|
@ -581,7 +581,9 @@ current admin in place; a key it can't parse stops the sync, grants
|
||||||
included, and the controller logs `operator matrix admin: pass failed` on
|
included, and the controller logs `operator matrix admin: pass failed` on
|
||||||
every pass. A controller that finds no key and an
|
every pass. A controller that finds no key and an
|
||||||
`operator-matrix-admins.json` in this directory imports the file into the
|
`operator-matrix-admins.json` in this directory imports the file into the
|
||||||
key and deletes the file; the upgrade needs no manual step. See
|
key and deletes the file; the upgrade needs no manual step. The
|
||||||
|
controller writes the key against the revision it read, so a second pass or
|
||||||
|
controller running at once fails instead of overwriting. See
|
||||||
[matrix.md](../../2-handbook/swarm/matrix.md#operators-are-homeserver-admins).
|
[matrix.md](../../2-handbook/swarm/matrix.md#operators-are-homeserver-admins).
|
||||||
|
|
||||||
Everything else here is rebuildable once the store holds the webhook secret:
|
Everything else here is rebuildable once the store holds the webhook secret:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue