Server admin 22: apps/fluxer administration runtime #690

Closed
opened 2026-11-15 19:01:29 +00:00 by charles · 0 comments
Owner

Task 22 of the Server administration plan (docs/superpowers/plans/2026-11-15-serveradmin.md, section "### Task 22:"). The plan on the serveradmin branch is the source of truth; this copy is for reading.

Closes: —
Depends on: 4, 5, 9a, 21b

Files:

  • Create: apps/fluxer/src/admin_rt.rs, apps/fluxer/tests/admin_runtime.rs
  • Modify: apps/fluxer/src/{runtime.rs,record.rs,lib.rs} (one routing arm; the 501 stubs of Task 9a go away; redaction), README

Interfaces:

  • Produces: admin_rt::perform(request) -> ApiResult — one fluxer-api call for each ApiRequest of Task 9a; guild icon and banner FileRefs read through the existing UploadReader into data URIs (as dailyuse_rt::image_data_uri); the sudo token: kept by the runtime (never in the store), attached to sudo-capable calls, replaced by the one an answer carries, dropped 4.5 minutes after it was received (feat/auth/state/AuthSudo.ts) and on logout, and reported to the store as CoreEvent::SudoToken { valid_until }; a SudoAnswer is moved into the request body and dropped; --record redacts password, mfa_code and the sudo header in both directions and a test asserts the recorded file holds none of them.

  • Step 1: Write failing tests (devserver + fakes): guild_overview_save_round_trip, role_create_edit_reorder_round_trip, channel_edit_and_overwrites_round_trip, channel_move_round_trip, member_role_toggle_round_trip, timeout_kick_ban_round_trip, bans_and_invites_lists, members_search_round_trip, icon_sent_as_data_uri, delete_guild_asks_sudo_then_succeeds, second_sudo_action_within_4_5_minutes_is_not_asked, token_dropped_after_expiry_and_on_logout, record_file_has_no_password_code_or_token, no_request_answers_501.

  • Step 2–5: FAIL → implement → PASS → commit feat(app): administration runtime.

Task 22 of the Server administration plan (`docs/superpowers/plans/2026-11-15-serveradmin.md`, section "### Task 22:"). The plan on the `serveradmin` branch is the source of truth; this copy is for reading. **Closes:** — **Depends on:** 4, 5, 9a, 21b **Files:** - Create: `apps/fluxer/src/admin_rt.rs`, `apps/fluxer/tests/admin_runtime.rs` - Modify: `apps/fluxer/src/{runtime.rs,record.rs,lib.rs}` (one routing arm; the 501 stubs of Task 9a go away; redaction), README **Interfaces:** - Produces: `admin_rt::perform(request) -> ApiResult` — one `fluxer-api` call for each `ApiRequest` of Task 9a; guild icon and banner `FileRef`s read through the existing `UploadReader` into data URIs (as `dailyuse_rt::image_data_uri`); the sudo token: kept by the runtime (never in the store), attached to sudo-capable calls, replaced by the one an answer carries, dropped 4.5 minutes after it was received (`feat/auth/state/AuthSudo.ts`) and on logout, and reported to the store as `CoreEvent::SudoToken { valid_until }`; a `SudoAnswer` is moved into the request body and dropped; `--record` redacts `password`, `mfa_code` and the sudo header in both directions and a test asserts the recorded file holds none of them. - [ ] **Step 1: Write failing tests** (devserver + fakes): `guild_overview_save_round_trip`, `role_create_edit_reorder_round_trip`, `channel_edit_and_overwrites_round_trip`, `channel_move_round_trip`, `member_role_toggle_round_trip`, `timeout_kick_ban_round_trip`, `bans_and_invites_lists`, `members_search_round_trip`, `icon_sent_as_data_uri`, `delete_guild_asks_sudo_then_succeeds`, `second_sudo_action_within_4_5_minutes_is_not_asked`, `token_dropped_after_expiry_and_on_logout`, `record_file_has_no_password_code_or_token`, `no_request_answers_501`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(app): administration runtime`.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#690
No description provided.