Alta: pin the review's mail cases, and say to wait out a stray From
Fable's review (no High or Medium): a partly gone five beside the From, a stray From beside the read one, the read From beside five under a wrong prefix. SubmitPrefix is required; the README says to wait for the walk to take a stray From out before re-running.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+7
−2
README.md+2 −1provision/apps.go+2 −1provision/submission_test.go+3 −0
CI passed — run details
CI log
=== vet === go vet ./... === fmt === === test === CGO_ENABLED=0 go test ./... ok amadan.net/oficina/alta/adopt 16.886s ok amadan.net/oficina/alta/carlosop (cached) ? amadan.net/oficina/alta/carlosop/fakecarlos [no test files] ok amadan.net/oficina/alta/cmd/alta 0.159s ok amadan.net/oficina/alta/cmd/alta-adopt 21.699s ok amadan.net/oficina/alta/console (cached) ? amadan.net/oficina/alta/console/fakeconsole [no test files] ok amadan.net/oficina/alta/homeop (cached) ok amadan.net/oficina/alta/homeop/fakehome (cached) ok amadan.net/oficina/alta/internal/web 0.129s ok amadan.net/oficina/alta/provision 11.715s === compat === cd homecompat && go vet ./... && CGO_ENABLED=0 go test ./... ok amadan.net/oficina/home/altacompat 0.551s
diff --git a/README.md b/README.md| index 450747e..bca1bb2 100644 |
| --- a/README.md |
| +++ b/README.md |
| @@ -138,7 +138,8 @@ labels and retired hostnames are never reused. |
| only that one From, so a switched app must be declared under |
| `CARLOS_SMTP` (Docs: `DOCS_SMTP`), even one whose SMTP also reads its |
| own prefix (Slides, Calendar, Calls); a From under any other stem fails |
| - step 7 with `mail-prefix-<app>`. Alta is given no SMTP, From or |
| + step 7 with `mail-prefix-<app>`; after redeclaring, wait for the walk |
| + to take the stray From out before re-running. Alta is given no SMTP, From or |
| relay value. Slides' private-storage policy on (`carlos instances |
| enable --app slides --private-storage`, Paul), so each team Slides gets |
| its own bucket; Alta is given no store value either. |
diff --git a/provision/apps.go b/provision/apps.go| index 589c0fd..b6b26da 100644 |
| --- a/provision/apps.go |
| +++ b/provision/apps.go |
| @@ -78,7 +78,8 @@ type App struct { |
| // of the app's declared prefix, so a switched app declared under any |
| // other prefix (Slides under SLIDES_SMTP, say) gets a From its binary |
| // never reads, and step 7 refuses it. CARLOS_SMTP for every app but |
| - // Docs, which is declared and read as DOCS_SMTP. |
| + // Docs, which is declared and read as DOCS_SMTP. Required: an app |
| + // with none refuses every From. |
| SubmitPrefix string |
| // Relay is true when CARLOS_RELAY is a PLATFORM key (Calls). |
| Relay bool |
diff --git a/provision/submission_test.go b/provision/submission_test.go| index 2f9747b..d7d8342 100644 |
| --- a/provision/submission_test.go |
| +++ b/provision/submission_test.go |
| @@ -40,6 +40,9 @@ func TestPlatformKeysAcceptEitherMailChannel(t *testing.T) { |
| {"switched still waits for the relay", calls, set("CARLOS_MAIL_FROM"), []string{"CARLOS_MAIL_FROM"}, []string{"CARLOS_RELAY"}, ""}, |
| {"slides reads the CARLOS From", slides, set("CARLOS_MAIL_FROM"), []string{"CARLOS_MAIL_FROM"}, nil, ""}, |
| {"slides' own SMTP prefix mid-flip", slides, set(append(SMTPKeys("SLIDES_SMTP"), "CARLOS_MAIL_FROM")...), append([]string{"CARLOS_MAIL_FROM"}, SMTPKeys("SLIDES_SMTP")...), nil, ""}, |
| + {"switched, the five partly gone", calls, set("CARLOS_MAIL_FROM", "CARLOS_SMTP_HOST", "CARLOS_RELAY"), []string{"CARLOS_MAIL_FROM", "CARLOS_SMTP_HOST", "CARLOS_RELAY"}, SMTPKeys("CARLOS_SMTP")[1:], ""}, |
| + {"a stray From beside the read one", slides, set("CARLOS_MAIL_FROM", "SLIDES_MAIL_FROM"), []string{"CARLOS_MAIL_FROM"}, nil, "SLIDES_SMTP"}, |
| + {"the read From beside five under a wrong prefix", docs, set(append(SMTPKeys("CARLOS_SMTP"), "DOCS_MAIL_FROM")...), []string{"DOCS_MAIL_FROM"}, nil, "CARLOS_SMTP"}, |
| {"docs reads DOCS only", docs, set("DOCS_MAIL_FROM"), []string{"DOCS_MAIL_FROM"}, nil, ""}, |
| {"a From under a prefix the binary does not read", docs, set("CARLOS_MAIL_FROM"), nil, SMTPKeys("DOCS_SMTP"), "CARLOS_SMTP"}, |
| } |