design-console-secrets
Settings and secrets in the console (slice 2)
The app settings page's Environments section becomes editable. Any account member can now do there what carlos env set|unset and carlos secrets set|unset do, under the same rules.
Spec: docs/superpowers/specs/2026-11-08-console-secrets-design.md (rev 3.1, approved by Paul 2026-11-08). Plan: docs/superpowers/plans/2026-11-08-console-secrets.md. Approved mockup: docs/superpowers/specs/2026-11-08-console-secrets-mockup-v3.html.
What changes
- Settings page: one card per bundle, "All environments" first. Each card has compact variable rows, Edit, Replace and Remove, an add row with a Secret box, and a save bar that appears only while something is staged. One Save makes one conditional write of one bundle, at the version the page showed. Save requests no restart.
- Secrets are sealed in the browser: the inline
configseal.jsuses WebCrypto with the app's key, in the same v1/v2 envelope format asappconfig/crypto.go. The console never sees the plaintext. Secret controls are disabled without JavaScript; ordinary settings still work without it. - After you save: the page sorts the routes the write reaches using one shared classifier,
appconfig.ClassifyWrite: updates itself, restart it yourself (with how), asleep or not running, can't see from here, plus blocked, couldn't check and doesn't get these.AwaitingRestartis now its projection, and its legacy output is unchanged. - Config door and CLI: additive
self,yours,starting,unseenandunresolved_routesfields on therestartobject. The CLI prints them when present, and older CLIs read exactly what they read before. The CLI door uses this box's facts only; the page's Save also reads provision records and box reports. - Shared validation:
checkConfigSets,checkConfigEnvironmentandwriteConfigserve both the JSON door and the form door. The JSON door's responses are byte-identical. - CAS:
appconfig.GetBundle,BundleVersionandApplyAtVersion. Unsetting a key that is already gone writes nothing. - Box reports: an additive
HostRollout.Managedfield, set only by the rollout manager. Until boxes are released with it, sidecars report "restart it yourself", which is the safe direction.
Rulings
- Paul (2026-11-09, stopping rule 2): refuse up front. Any storage failure on a form Save, or any bundle read failure on a form post, makes the section unavailable for that request, and nothing submitted is drawn back.
- Controller rulings are listed in the session report to the coordinator. Among them: one bundle per Save, and a Save is refused when another card has edits; the CLI door uses local facts only; "Asleep" requires the new Managed field.
Tests and reviews
- Targeted tests per task, including headless Chromium and node interop: browser envelopes open with Go
Open, and v2 fails for the wrong account or app. JS and Go value predicates are checked against one shared case table. - Astra reviews: classifier (READY after fixes), CAS and shared validation (R2 READY), browser sealing (R2 READY), form door (R1 5 P1, R2 2 P1 then stopping rule 2 and Paul's cut, R3 READY after fixes), whole branch (R1 READY after fixes, five P2s fixed and scoped-checked).
- Copy: Luna pass under Paul's delegation, with four controller overrides.
- Census: approved on #280 at 3eaf36e5, envelope
.re-approved at a2c27984. - CI: see branch status.
Follow-ups
- Mockup-kit generated whitespace (P3).
- Pre-existing: a console with no bucket panics when rendering app pages.
- Box release for the Managed field.
Commits
41
Discussions
4
4 open
Tasks
0/0
done
Discussions 4 open
Tasks
- No tasks yet.
Activity
- claude agent, operated by paul@keymail.dev replied to Console with no deployment bucket panics rendering app pages
- claude agent, operated by paul@keymail.dev replied to Mockup kit: generated files carry trailing whitespace
- claude agent, operated by paul@keymail.dev replied to Fleet secrets copy deck still names apiconfig.go
- claude agent, operated by paul@keymail.dev replied to Getting started: link the secrets step to the Environments settings page
- claude agent, operated by paul@keymail.dev opened Console with no deployment bucket panics rendering app pages
- claude agent, operated by paul@keymail.dev opened Mockup kit: generated files carry trailing whitespace
- claude agent, operated by paul@keymail.dev opened Fleet secrets copy deck still names apiconfig.go
- claude agent, operated by paul@keymail.dev opened Getting started: link the secrets step to the Environments settings page
- paul@keymail.dev pushed 677d50d4d merge main into design-console-secrets
- paul@keymail.dev pushed fd33427e1 console: env Save shows the section unavailable on a seal-key read failure
- paul@keymail.dev pushed a2c27984e census: re-pin the root envelope for the CLI notice fixes
- paul@keymail.dev pushed 985c25a34 console: branch review P2 fixes for secrets slice 2
- paul@keymail.dev pushed 4e65088c1 console: env Save shows the section unavailable on any storage failure
- paul@keymail.dev pushed b3ac5cd38 console: env Save treats a bundle read failing in the write as unread
- paul@keymail.dev pushed 3eaf36e50 console: env form refuses up front when any bundle read fails
- paul@keymail.dev pushed fcf358289 provision: re-pin NewServer for the Environments form route
- paul@keymail.dev pushed ceaaed997 console: claim census door for the Environments form Save
- paul@keymail.dev pushed 6b53c2a07 console: settings section test reads the new Environments markup
- paul@keymail.dev pushed 441cc05a2 console: session S3 ceiling 416 to 418 for the Environments page
- paul@keymail.dev pushed 5010abb6f console: CLI config door classifies with local facts only
- paul@keymail.dev pushed 44bb563ac census: proposal for console secrets (appconfig classifier)
- paul@keymail.dev pushed 104ab3a03 console: env form admits, reads and carries a post exactly once
- paul@keymail.dev pushed 37db19083 copy: console secrets, Luna pass under Paul's delegation
- paul@keymail.dev pushed ffd35bc65 notes: console secrets copy brief for the Luna pass
- paul@keymail.dev pushed 842f70b37 console: land Save on its outcome, refuse other-card edits, limit Retry
- paul@keymail.dev pushed 80d3b7836 console: save settings and say where they land
- paul@keymail.dev pushed 901a40b69 console: show the env save bar on the first edit, Edit/Close in CSS
- paul@keymail.dev pushed a32a18ee7 console: edit an app's settings and secrets on the settings page
- paul@keymail.dev pushed 066346db3 test: fleet secrets copy rows C39-C42 now live in configwrite.go
- paul@keymail.dev pushed 9b644546e config door: report where a write lands, bucket by bucket