keep the operator matrix admin grant record in nats kv, not on disk
This commit is contained in:
parent
c24f3c3d88
commit
28d847cb7e
1 changed files with 312 additions and 87 deletions
|
|
@ -573,13 +573,22 @@ the store answers that it holds none, never because a read failed.
|
|||
|
||||
<!-- vale write-good.Passive = YES -->
|
||||
|
||||
- `operator-matrix-admins.json` — the matrix user ids the operator admin
|
||||
sync has made homeserver admin, a JSON array. The sync revokes admin
|
||||
only from these, so deleting the file leaves every current admin in
|
||||
place; a missing file is an empty set. A file the controller can't
|
||||
read or parse stops the sync, grants included, and the controller logs
|
||||
`operator matrix admin: pass failed` on every pass. See
|
||||
[`docs/2-handbook/swarm/matrix.md`](../../2-handbook/swarm/matrix.md#operators-are-homeserver-admins).
|
||||
The operator admin sync's set of granted matrix user ids isn't kept here. It
|
||||
lives in the `operator-matrix-admins` NATS KV bucket, under the key
|
||||
`granted`, as a JSON array. Only the controller reads or writes it. The sync
|
||||
revokes admin only from ids in that set, so a missing key leaves every
|
||||
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
|
||||
every pass. A controller that finds no key and an
|
||||
`operator-matrix-admins.json` in this directory imports the file into the
|
||||
key and deletes the file; the upgrade needs no manual step. See
|
||||
[matrix.md](../../2-handbook/swarm/matrix.md#operators-are-homeserver-admins).
|
||||
|
||||
Everything else here is rebuildable once the store holds the webhook secret:
|
||||
the legacy `webhook-secret` file, the forge avatar markers
|
||||
`forge-config-org-avatar-set` and `forge-service-avatar-<login>` (losing one
|
||||
costs one re-upload), and the optional host-only `bao-client.pem` and
|
||||
`bao-client-key.pem`.
|
||||
|
||||
## Run-time dirs
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue