Skip to content

Expose User config through the CLI, Console API and page - #1808

Merged
JacobStephens2 merged 4 commits into
issue-1768from
issue-1770
Nov 6, 2026
Merged

JacobStephens2 merged 4 commits into
issue-1768from
issue-1770

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

Read and change the User config through the binary, an admin-scoped API and the Console page. Read sessions get a read-only page; sign-in access settings remain under shell control.

thirdshift config [key [value]]
  shared validated, comment-preserving User config
    /api/v1/config[/key]
    Console User config page

Test seams: the binary's config command; the Console over HTTP; the Console browser page; the existing route-table parity test.

Evidence

Execution evidence

  • Before: cargo test --test user_config config_reads_defaults_and_sets_one_value_without_changing_layout -- --exact failed with not a GitHub issue URL: config (Some(2) instead of Some(0)).
    After: the same command passed: 1 passed; 0 failed.
  • Before: node --test --test-name-pattern='User config is editable' console/tests/accounts.test.cjs failed with 404 !== 200.
    After: the same command passed: tests 1, pass 1, fail 0, covering admin saves and read sessions at 1440×900 and 390×844.
  • Review reproduced both Spec findings with the reviewers' exact commands, then reran those exact commands successfully after fixing removed-map-entry comments and credential-bearing TOML diagnostics. Kept both regressions in tests/user_config.rs.
  • scripts/affected-tests issue-1768: site checks passed (94.36s), Console browser checks passed (213.52s). Its Rust run stopped on an existing Architect test's systemd scope collision; that exact test passed alone. The duplicate one-thread local retry was deliberately stopped after CI passed the exact final head.
  • Full Rust suite: cargo nextest run in CI on f91e0a04697f4d6c3a32e94b4c56517e3ede6bb3: 3808 passed, 83 skipped, 1073.700s execution plus 50.83s compilation. Reused this successful exact-head run as docs/testing.md directs.
  • Final-head CI also passed cargo fmt --check, cargo clippy --all-targets -- -D warnings, site and Console browser checks. The compact-help and protected-access HTTP regressions pass locally.

Visual evidence

/config, initial load with an isolated fixture home and local admin access. Before is the same URL returning 404; After is the new User config page.

1440×900 desktop:

Before
After

390×844 mobile:

Before
After

Review coverage

Reviewed against issue-1768 (8ee0544034522da2a57c52f35eebfb01320d73b6): Standards 0 findings; Spec 2, both fixed. Both axes read all 23 changed files, including the coverage follow-up for the protected-access HTTP regression and the generated manual hunks. Changed files left unread: none. Generated-output exclusions: none.

Unaddressed findings

Standards

None.

Spec

None. Both findings were reproduced and fixed.

Security

None.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

The CLI and routes can be rolled back; successful saves persist the requested User config values. Configured values apply on subsequent reads; a new Console port needs a restart.

Blast Radius: machine

An admin can change future factory defaults on this machine. Access-control settings remain refused, and export URLs and TOML source diagnostics do not expose credentials.

Closes #1770

Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh

@JacobStephens2
JacobStephens2 merged commit a7d6e62 into issue-1768 Nov 6, 2026
16 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1770 branch November 6, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant