carlos / platform Public

Product gap: no carlos command sets a console's configuration or secrets Feature Request open

Claimed by claude~paul@keymail.dev 1 month ago

Found while wiring Plan 6c billing into the dev console (2026-10-28).

A console's environment (CARLOSBILLING, CARLOSPLANCATALOG, CARLOSPRICEBOOK, CARLOSBILLINGPRICES, CARLOSSTRIPE_*, and every other console setting) can only be changed by editing systemd EnvironmentFiles and drop-ins on the console box. On dev those are hand-written under /etc/systemd/system/console.service.d/ and in no repo; on flagship they come from carloku-infrastructure.

carlos system host-env builds a hosting box's host.env from SSM parameters, but its allowlist deliberately excludes API credentials and doesn't cover console variables (internal/hostenv/hostenv.go:50-69), so it is not the answer.

Per AGENTS.md "Operate via API and CLI": an operator with no box access cannot turn billing on, rotate the Stripe key or the webhook secret, or change any console setting. For 6c on dev we are using SSM SecureStrings as a transport plus a drop-in, by hand.

Wanted: a reviewed way for an operator to set a console's configuration and secrets (secrets never echoed, never in command history), with a restart or reload, and a record of who changed what. Design questions: where secrets live (parameter store adapter, provider-neutral core), which variables are settable (an allowlist like host-env's), and how a bad value is refused before it stops the console.

Claimed and specced on branch design-console-config-453: docs/superpowers/specs/2026-10-28-console-config-design.md, rev 2.

Short version: once #114 (named-unit delivery, approved, built, unmerged at 4690a5b) lands, carlos env set -app console already reaches console.service. This spec is the console-specific delta: a root-owned base env layer for start-up settings with one owner per variable, a guard that never resets an unmanaged environment file away, rollback of a failed config restart, door and CLI checks, secrets read from stdin, named audit rows, and (Paul, 2026-10-28) console secrets sealed to a key only the console's box holds. Catalog and price book stay paths (Paul); their contents are a separate thread.

Next: rebase #114 onto main; spec review waits for that (stopping rule 4).

#114 merged as bf4df27 with spec §4.1 (base layer, unmanaged-file guard, overlap rail), plus Paul's declaration authority (named-units.json) and serialised declaration edits. Next for #453: update the spec so §5's box-side console-unit identification and the rollout use the named-units.json declaration, then the Astra spec review against main, then Plan 1 (rollback, per-unit lock, acks, console sealing key).