carlos / platform Public

copy: console secrets, Luna pass under Paul's delegation

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 37db1908373316930dd99593367240f7b8c8a67d parent ffd35bc
7 files changed, +42 −42
  • appconfig_cli.go +5 −5
  • appconfig_cli_test.go +3 −3
  • internal/console/appsettings_env_test.go +2 −2
  • internal/console/configseal.js +3 −3
  • internal/console/envcopy.go +20 −20
  • internal/console/envform_test.go +3 −3
  • internal/console/envsave_test.go +6 −6

Intent

Human

<task-notification> <task-id>bc0g5s3s7</task-id> <tool-use-id>toolu_01VfrRTcKXmqP3xKvAJP6gbe</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/abe35d56-e4c2-40df-9005-6e66b76b1f50/tasks/bc0g5s3s7.output</output-file> <status>completed</status> <summary>Background command "until [ -f $HOME/.cache/console-secrets-copy/luna.done ]; do sleep 30; done; wc -l $HOME/.cache/console-secrets-copy/luna.md" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>ba7cjq5vk</task-id> <tool-use-id>toolu_019biDsj3P4Gq3PNdU4kcvYz</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/abe35d56-e4c2-40df-9005-6e66b76b1f50/tasks/ba7cjq5vk.output</output-file> <status>completed</status> <summary>Background command "until [ -f .superpowers/sdd/2026-11-08-console-secrets/astra-t8.done ]; do sleep 30; done; tail -2 .superpowers/sdd/2026-11-08-console-secrets/astra-t8-findings.md" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 5.25 g CO₂e (641,781 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-console-secrets, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/appconfig_cli.go b/appconfig_cli.go
index 398262904..6952f493e 100644
--- a/appconfig_cli.go
+++ b/appconfig_cli.go
@@ -219,11 +219,11 @@ const (
restartCopyBlocked = "delivery to %s is blocked: %s"
// The classifier's buckets, from a console that sends them. Not yet
// through a copy pass.
- restartCopySelf = "%s gets the new values. carlos restarts it."
- restartCopyYoursSidecar = "%s has the file, but nothing on its box restarts it. Check that it is running the new values."
- restartCopyAsleep = "%s is asleep. It picks up the new values when it wakes."
- restartCopyStarting = "%s is not running. It picks up the new values when it starts."
- restartCopyUnseen = "could not tell whether %s picked this up. It is not on this machine."
+ restartCopySelf = "%s will get the new values. carlos will restart it."
+ restartCopyYoursSidecar = "the settings file will reach %s, but carlos will not restart it. check that it is running the new values."
+ restartCopyAsleep = "%s is asleep. it will pick up the new values when it wakes."
+ restartCopyStarting = "%s is not running. it will pick up the new values when it starts."
+ restartCopyUnseen = "could not tell whether %s got the new values. it is not listed on this machine."
)
const envUsage = `usage: carlos env <command>
diff --git a/appconfig_cli_test.go b/appconfig_cli_test.go
index e5300cf14..2420498c9 100644
--- a/appconfig_cli_test.go
+++ b/appconfig_cli_test.go
@@ -56,12 +56,12 @@ func TestRestartNoticeNewBuckets(t *testing.T) {
}))
got := b.String()
order := []string{
- "sock.shop.example.com gets the new values",
+ "sock.shop.example.com will get the new values",
"addr.shop.example.com has the file but is still running the old values",
- "worker.shop.example.com has the file, but nothing on its box restarts it",
+ "the settings file will reach worker.shop.example.com, but carlos will not restart it",
"nap.shop.example.com is asleep",
"boot.shop.example.com is not running",
- "could not tell whether remote.shop.example.com picked this up. It is not on this machine.",
+ "could not tell whether remote.shop.example.com got the new values. it is not listed on this machine.",
"stray.shop.example.com has the file",
"did not reach plain.shop.example.com",
restartCopyScope,
diff --git a/internal/console/appsettings_env_test.go b/internal/console/appsettings_env_test.go
index 82eb1d91f..b27155a44 100644
--- a/internal/console/appsettings_env_test.go
+++ b/internal/console/appsettings_env_test.go
@@ -51,8 +51,8 @@ func TestSettingsPageShowsEnvironments(t *testing.T) {
"https://acme.example.com", // and an ordinary setting's value (spec "What")
"ACME_API_KEY", // including the sealed one, by name
"carlos-bab-sprout-acme", // the store that belongs to it
- "Nothing uses this yet.", // nothing is bound to it
- "no instance reads it", // ...so the bucket is billing for nobody
+ "No host is listed for this environment.", // nothing is bound to it
+ "no instance reads it", // ...so the bucket is billing for nobody
} {
if !strings.Contains(body, want) {
t.Fatalf("the environments section is missing %q:\n%s", want, body)
diff --git a/internal/console/configseal.js b/internal/console/configseal.js
index ab246964c..8d4b98e29 100644
--- a/internal/console/configseal.js
+++ b/internal/console/configseal.js
@@ -17,10 +17,10 @@
"use strict";
var MSG = {
- chars: "A value can't contain a backslash, a quote, a newline or a NUL character.",
+ chars: "A value can't contain a backslash, a quote, a line break or a NUL character.",
empty: "A secret can't be empty.",
- seal: "Your browser couldn't seal this value, so nothing was sent.",
- changed: "The form changed while sealing, so nothing was sent. Check it and save again."
+ seal: "The browser couldn't seal this value, so it was not sent.",
+ changed: "The form changed while sealing, so nothing was sent. Check the form and save again."
};
// The same rule as appconfig.ValidVarValue, plus the empty-secret rule
diff --git a/internal/console/envcopy.go b/internal/console/envcopy.go
index 63a95db7e..9334b3700 100644
--- a/internal/console/envcopy.go
+++ b/internal/console/envcopy.go
@@ -134,7 +134,7 @@ var envCopyDraft = envPageCopy{
Intro: "Settings your app reads when it starts. Anything a named environment doesn't set comes from All environments.",
AllTitle: "All environments",
UsedBy: "Used by {hosts}",
- UsedByNone: "Nothing uses this yet.",
+ UsedByNone: "No host is listed for this environment.",
Sealed: "Sealed",
Edit: "Edit",
Close: "Close",
@@ -149,10 +149,10 @@ var envCopyDraft = envPageCopy{
Secret: "Secret",
Add: "Add",
Stage: "Change",
- SealingNote: "Secrets are sealed in your browser. Nobody can read them back, only replace them.",
- NeedsScript: "Setting a secret here needs JavaScript. Your agent or the carlos CLI can set one without it.",
- KeylessFlt: "{fleet} has no secrets key yet, so secrets can't be set for this app. Ordinary settings still work.",
- NoKey: "{console} has no secrets key set up, so secrets can't be set here. Ordinary settings still work.",
+ SealingNote: "Secrets are sealed in your browser. You can replace them, but you cannot read them back.",
+ NeedsScript: "You need JavaScript to set a secret here. You can set one with carlos from your terminal instead.",
+ KeylessFlt: "{fleet} has not set up a secrets key yet, so you cannot set secrets for this app. Regular settings still work.",
+ NoKey: "{console} has not set up a secrets key, so you cannot set secrets here. Regular settings still work.",
StoreUnread: "This environment has its own object store, but no instance reads it. The bucket still exists and still costs money. Nothing removes a store on its own, so it stays until you destroy it.",
StoreNamed: "This environment has its own object store, {bucket}, but no instance reads it. The bucket still exists and still costs money. Nothing removes a store on its own, so it stays until you destroy it.",
StoreLink: "See it under Storage",
@@ -182,25 +182,25 @@ var envCopyDraft = envPageCopy{
CouldNotRead: "Couldn't read this app's settings just now. Try again in a moment.",
EnvelopeStale: "The sealed value for {name} couldn't be read, so it was dropped. Enter it again.",
- MsgChars: "A value can't contain a backslash, a quote, a newline or a NUL character.",
+ MsgChars: "A value can't contain a backslash, a quote, a line break or a NUL character.",
MsgEmpty: "A secret can't be empty.",
- MsgSeal: "Your browser couldn't seal this value, so nothing was sent.",
- MsgChanged: "The form changed while sealing, so nothing was sent. Check it and save again.",
+ MsgSeal: "The browser couldn't seal this value, so it was not sent.",
+ MsgChanged: "The form changed while sealing, so nothing was sent. Check the form and save again.",
RefEnvName: "That environment name isn't valid.",
RefEnvDefault: "That environment name isn't valid.",
RefVarName: "{name} isn't a valid name. Use letters, digits and underscores, and start with a letter or underscore.",
- RefVarValue: "The value of {name} can't contain a backslash, a quote, a newline or a NUL character.",
- RefEnvEnvelope: "{name} is an ordinary setting but arrived sealed. Reload the page and try again.",
+ RefVarValue: "The value of {name} can't contain a backslash, a quote, a line break or a NUL character.",
+ RefEnvEnvelope: "{name} is a regular setting but arrived sealed. Reload the page and try again.",
RefSecretEnvelope: "The sealed value for {name} couldn't be read. Enter it again.",
RefSecretPlaintext: "{name} reached {console} without being sealed, so it was thrown away. If it was a real credential, treat it as exposed and replace it.",
RefVarKind: "{name} isn't a setting or a secret. Reload the page and try again.",
RefKeylessFleet: "{fleet} has no secrets key yet, so secrets can't be set for this app.",
- RefSealedWrongKey: "{name} was sealed to a key this app's boxes don't hold. Reload the page and enter it again.",
+ RefSealedWrongKey: "{name} was sealed to a key this app's servers don't have. Reload the page and enter it again.",
RefSealedUnchecked: "{console} couldn't check which key sealed {name}. Reload the page and enter it again.",
- RefSealedOld: "{name} was sealed in an older format this app's boxes don't accept. Reload the page and enter it again.",
+ RefSealedOld: "{name} was sealed in an older format this app's servers don't accept. Reload the page and enter it again.",
RefNotFound: "This app or environment isn't here any more.",
- RefConflict: "Someone else saved these settings first. Your other changes are still here; enter your secrets again.",
+ RefConflict: "Someone else saved these settings first. Your other changes are still here. Enter your secrets again.",
RefNothingToRemove: "{name} is already gone.",
RefStore: "Couldn't save just now. Nothing changed. Try again.",
RefSealKey: "Couldn't read this app's secrets key just now. Nothing changed. Try again.",
@@ -211,11 +211,11 @@ var envCopyDraft = envPageCopy{
OutcomeSelf: "Updates itself",
OutcomeSelfHelp: "it restarts with the new settings on its own, within a minute.",
OutcomeYou: "Restart it yourself",
- OutcomeYouHelp: "{console} delivered the settings but can't restart this one for you.",
+ OutcomeYouHelp: "{console} will deliver the settings but cannot restart this one for you.",
OutcomeAsleep: "Asleep",
OutcomeAsleepHlp: "it picks up the change when it next wakes.",
- OutcomeCantSee: "Can't see",
- OutcomeCantHelp: "it runs on a box {console} can't check from here. It picks up the change when it next restarts, or you can restart it now:",
+ OutcomeCantSee: "Can't see from here",
+ OutcomeCantHelp: "it runs on a server {console} cannot check from here. It will pick up the change the next time it restarts, or you can restart it now:",
OutcomeCantCmd: "carlos restart --host {host}",
OutcomePartial: "Copies on other boxes may not all be listed here.",
OutcomeSeeRun: "See what's running",
@@ -227,15 +227,15 @@ var envCopyDraft = envPageCopy{
OutcomeNotRunning: "Not running",
OutcomeNotRunHlp: "it picks up the change when it starts.",
OutcomeBlocked: "Blocked",
- OutcomeBlockedHlp: "its box won't apply settings to it as it is set up now.",
+ OutcomeBlockedHlp: "its server will not apply the settings in its current setup.",
OutcomeUnresolved: "Couldn't check",
OutcomeUnresHlp: "{console} couldn't read the settings it would get, so it can't say whether it picks this up.",
- OutcomeUndeliv: "Doesn't get these",
- OutcomeUndelivHlp: "nothing delivers settings to it. If your app reads a settings file, turn on file delivery with carlos env exec-delivery --app {app} file.",
+ OutcomeUndeliv: "Doesn't get these settings",
+ OutcomeUndelivHlp: "it will not get these settings. If your app reads a settings file, turn on file delivery with carlos env exec-delivery --app {app} file.",
OutcomeNone: "Nothing on this box uses these settings.",
OutcomeUnknown: "Saved, but {console} couldn't check what uses these settings just now.",
OutcomeRetry: "Retry",
- OutcomeCheckBad: "Couldn't check that save again. Reload the page.",
+ OutcomeCheckBad: "Couldn't check the save again. Reload the page.",
RateLimited: "Too many changes at once. Nothing was saved. Try again in a minute.",
NothingToSave: "There's nothing to save.",
CheckLimited: "Too many checks at once. Try again in a minute.",
diff --git a/internal/console/envform_test.go b/internal/console/envform_test.go
index d8e41431a..051198d1a 100644
--- a/internal/console/envform_test.go
+++ b/internal/console/envform_test.go
@@ -493,7 +493,7 @@ func TestEnvSecretControlsDisabledWithoutScript(t *testing.T) {
if controls != 2 { // STRIPE_KEY's Replace, the add row's Secret box
t.Fatalf("found %d secret controls, want 2:\n%s", controls, form)
}
- mustContain(t, form, "<noscript>", "Setting a secret here needs JavaScript.")
+ mustContain(t, form, "<noscript>", "You need JavaScript to set a secret here.")
mustNotContain(t, form, e.envelope)
}
@@ -555,7 +555,7 @@ func TestEnvSealAttributes(t *testing.T) {
t.Fatalf("keyless fleet form carries a key: %v", a)
}
form := envSection(t, body)
- mustContain(t, form, "home has no secrets key yet, so secrets can&#39;t be set for this app.",
+ mustContain(t, form, "home has not set up a secrets key yet, so you cannot set secrets for this app.",
`<input type="checkbox" id="add.default.secret" name="add.default.secret" value="1" disabled>`)
mustNotContain(t, form, "data-secret-", `name="sealed_to"`)
mustNotContain(t, body, "carlosConfigSeal")
@@ -564,7 +564,7 @@ func TestEnvSealAttributes(t *testing.T) {
e := newEnvFx(t)
e.fx.srv.cfg.SecretsPub = ""
form := envSection(t, e.page(t))
- mustContain(t, form, "has no secrets key set up, so secrets can&#39;t be set here.")
+ mustContain(t, form, "has not set up a secrets key, so you cannot set secrets here.")
mustNotContain(t, form, "data-secret-", "data-seal-pub")
})
}
diff --git a/internal/console/envsave_test.go b/internal/console/envsave_test.go
index a933d7698..2dcc259ae 100644
--- a/internal/console/envsave_test.go
+++ b/internal/console/envsave_test.go
@@ -182,7 +182,7 @@ func TestEnvSaveConflictKeepsOrdinaryDropsSecrets(t *testing.T) {
t.Fatalf("stored moved: %+v, was %+v", after, before)
}
_, ver, _ := appconfig.GetBundle(context.Background(), e.fx.rel, e.fx.sqid, "shop", "")
- mustContain(t, body, "Someone else saved these settings first. Your other changes are still here; enter your secrets again.",
+ mustContain(t, body, "Someone else saved these settings first. Your other changes are still here. Enter your secrets again.",
`name="val.default.LOG_LEVEL" value="warn"`, `name="new.default.MODE" value="fast"`,
`name="ver.default" value="`+ver.String()+`"`, `name="val.default.OTHER" value="1"`,
"2 changes in All environments: LOG_LEVEL changed, new setting MODE.")
@@ -212,7 +212,7 @@ func TestEnvSaveRefusalsPersonCopy(t *testing.T) {
if status != http.StatusBadRequest {
t.Fatalf("status = %d", status)
}
- mustContain(t, body, "The value of LOG_LEVEL can&#39;t contain a backslash, a quote, a newline or a NUL character.",
+ mustContain(t, body, "The value of LOG_LEVEL can&#39;t contain a backslash, a quote, a line break or a NUL character.",
`name="new.default.MODE" value="fast"`, `<details class="envvar" open><summary><code class="envvar-name">LOG_LEVEL</code>`)
mustNotContain(t, body, "bad-value-marker")
if w := e.written(); len(w) != 0 {
@@ -230,7 +230,7 @@ func TestEnvSaveRefusalsPersonCopy(t *testing.T) {
if status != http.StatusBadRequest {
t.Fatalf("status = %d", status)
}
- mustContain(t, body, "STRIPE_KEY was sealed to a key this app&#39;s boxes don&#39;t hold. Reload the page and enter it again.")
+ mustContain(t, body, "STRIPE_KEY was sealed to a key this app&#39;s servers don&#39;t have. Reload the page and enter it again.")
mustNotContain(t, body, env)
if w := e.written(); len(w) != 0 {
t.Fatalf("wrote %v", w)
@@ -291,7 +291,7 @@ func TestEnvSaveRefusalsPersonCopy(t *testing.T) {
f.Del("sealed_to")
return env
}},
- {"sealed-old", "API_KEY was sealed in an older format this app&#39;s boxes don&#39;t accept.", true, func(f url.Values, k skFleetKey, fx *consoleFixture) string {
+ {"sealed-old", "API_KEY was sealed in an older format this app&#39;s servers don&#39;t accept.", true, func(f url.Values, k skFleetKey, fx *consoleFixture) string {
env := skSeal(t, fx, k.pub, false)
f.Set("newenv.default.API_KEY", env)
return env
@@ -333,7 +333,7 @@ func TestEnvSaveSealedToChecked(t *testing.T) {
if status != http.StatusBadRequest {
t.Fatalf("wrong sealed_to = %d:\n%s", status, body)
}
- mustContain(t, envBanner(body), "API_KEY was sealed to a key this app&#39;s boxes don&#39;t hold.")
+ mustContain(t, envBanner(body), "API_KEY was sealed to a key this app&#39;s servers don&#39;t have.")
mustNotContain(t, body, env, "newenv.")
if m := skStored(t, fx); m != nil {
if _, ok := m.Vars["API_KEY"]; ok {
@@ -475,7 +475,7 @@ func TestEnvSaveCheckRerunsWithoutWrite(t *testing.T) {
if status != http.StatusBadRequest {
t.Fatalf("%s: check = %d", name, status)
}
- mustContain(t, envBanner(body), "Couldn&#39;t check that save again. Reload the page.")
+ mustContain(t, envBanner(body), "Couldn&#39;t check the save again. Reload the page.")
mustNotContain(t, body, `class="env-outcome"`)
}
e.spy.none(t)