matrix, docs: drop the last admin framing, fix tense and prose lint
Three leftovers from the rename, plus the gating prose job.
`nix/packages/default.nix` still described the minter as the "matrix
admin credential's minter", and shipped that claim in the package's
`meta.description` — a PR-visible string.
`promote_user_to_admin`'s doc comment pointed at the `admin_execute`
entry in `hive-matrix.nix` as the thing that bootstraps the first
admin. That entry is gone, so the comment referenced nothing. It now
records that the account is ordinary, that the call therefore has no
working sender, and that rehoming at swarm level is the fix rather than
re-granting. `reset_user_password` gained the matching warning; it had
none.
The prose fixes clear all 8 `CI / prose lint (vale, errors)` failures,
all of which were in docs this branch touches. No vale config change,
no exception, no carve-out: contractions, one recast sentence, one
de-hyphenation and one dropped "simply".
Tense: four docs described system behaviour in the future ("will
refuse", "will fetch and trust"). Reference docs get read from the
other side of the change, so they say what the system does.
This commit is contained in:
parent
88b4a7841d
commit
bbb4e471ea
5 changed files with 27 additions and 19 deletions
|
|
@ -1103,8 +1103,12 @@ mod is_make_admin_success_tests {
|
|||
///
|
||||
/// ⚠️ Requires the **sender** to be an admin already — tuwunel only
|
||||
/// treats a message as a command when its sender is in the admin room.
|
||||
/// So this promotes a *second* user; it cannot bootstrap the first one.
|
||||
/// That is what the `admin_execute` entry in `hive-matrix.nix` is for.
|
||||
/// `@hive:` is an ordinary account (`hive-matrix.nix` grants it no
|
||||
/// `admin_execute` promotion), so this call has no working sender from
|
||||
/// the hive and fails with the admin room's refusal. Promotion is a
|
||||
/// swarm-level operation and is being rehomed as such; this stays here,
|
||||
/// failing loudly, rather than justifying an over-privileged token that
|
||||
/// all 13 ordinary call sites would also carry.
|
||||
///
|
||||
/// Goes through the admin room rather than a direct HTTP call because
|
||||
/// tuwunel implements parts of the Synapse admin API but not user
|
||||
|
|
@ -1144,6 +1148,10 @@ pub async fn promote_user_to_admin(
|
|||
/// it to the non-purgeable creds path so [`ensure_user_for`] can re-login
|
||||
/// on the next provisioning sweep.
|
||||
///
|
||||
/// ⚠️ Same admin-**sender** requirement as [`promote_user_to_admin`], and
|
||||
/// the same consequence: `@hive:` is an ordinary account, so this fails
|
||||
/// from the hive until the operation is rehomed at swarm level.
|
||||
///
|
||||
/// Returns the new password for use in subsequent `login_user` calls.
|
||||
pub async fn reset_user_password(
|
||||
client: &reqwest::Client,
|
||||
|
|
|
|||
Loading…
Reference in a new issue