feat(#2035): auto-discover dashboard-provisioned matrix accounts via token+homeserver sidecar
This commit is contained in:
parent
cc73bc7cd0
commit
3b0a914487
6 changed files with 112 additions and 11 deletions
|
|
@ -389,6 +389,13 @@ pub enum PrivRequest {
|
|||
/// Extra-account suffix. `None` → `matrix-token` (the hive account);
|
||||
/// `Some(name)` → `matrix-token-<name>` (validated as a plain ident).
|
||||
account: Option<String>,
|
||||
/// Homeserver URL for an extra account. When `Some` (only meaningful
|
||||
/// alongside `account: Some`), hive-priv also writes the sidecar
|
||||
/// `matrix-account-<name>.json` (`{"homeserver": <url>}`, 0600,
|
||||
/// chowned to the agent) so the daemon can auto-discover the account
|
||||
/// without a config declaration. `None` → no sidecar written.
|
||||
#[serde(default)]
|
||||
homeserver: Option<String>,
|
||||
},
|
||||
|
||||
/// Restart `hive-matrix-daemon.service` inside an agent container via
|
||||
|
|
|
|||
Loading…
Reference in a new issue