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
|
|
@ -11,8 +11,9 @@
|
|||
//!
|
||||
//! It keeps the webhook HMAC secret in the swarm secret store (see `webhook`),
|
||||
//! because that key is handed to Forgejo at registration and so cannot be
|
||||
//! regenerated per boot, and the operator admin sync's granted set under its
|
||||
//! `StateDirectory` (see `matrix_account::operator_admin`).
|
||||
//! regenerated per boot, and the operator admin sync's granted set in a NATS
|
||||
//! KV bucket (see `matrix_account::operator_admin`). Its `StateDirectory` holds
|
||||
//! only files it can re-derive.
|
||||
//!
|
||||
//! Distinct from `hive-c0re`, which is per-hive: c0re owns the agents on
|
||||
//! one host, this owns what is true across hives.
|
||||
|
|
@ -181,7 +182,7 @@ async fn main() -> Result<()> {
|
|||
hive_jobq::resources::ResourceTable::new(),
|
||||
)));
|
||||
let hives = load_hives().into_entries();
|
||||
spawn_matrix_account_backfill(&jobq, deps.matrix_homeserver.clone(), auth.clone());
|
||||
spawn_matrix_account_backfill(&jobq, &deps);
|
||||
spawn_jobq_worker(Arc::clone(&jobq), deps);
|
||||
// Bound to a named variable, not `_` — dropping the provider stops its
|
||||
// `PeriodicReader`, so it must live as long as `main` does (which it
|
||||
|
|
|
|||
Loading…
Reference in a new issue