Slides' object store is PLATFORM: the audit admits CARLOS_STORE_* on Slides only
Human
Prompt
Paul ruled 2026-11-12 that Slides uploads are on for the whole app (private-storage policy, Paul runs it). Make Alta's Slides recipe accept CARLOS's CARLOS_STORE_* keys as platform keys: Alta never writes them, the managed-key guard still refuses them, the audit admits them on Slides only; tests.
From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.
Summary
App.Store (Slides) and StoreKeys, CARLOS's objstore names (BUCKET, REGION env; ACCESS_KEY, SECRET_KEY sealed; ENDPOINT optional). The audit admits the set whole on Slides, optional (an instance created before the policy has none), with kinds checked; partial is audit-store-partial; any other app holding them is audit-extra-key. Kept out of step 7's binding: the store arrives at step 8. The fake console provisions a store at instance create under PrivateStorage. Guard test covers all five names, set and unset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 files changed,
+262
−14
PRODUCT.md+2 −1README.md+12 −5console/fakeconsole/fakeconsole.go+19 −1internal/web/words.go+1 −0provision/apps.go+44 −6provision/guard_test.go+1 −1provision/steps.go+16 −0provision/store_keys_test.go+167 −0
CI passed — run details
diff --git a/PRODUCT.md b/PRODUCT.md| index f5a2a3f..a862da2 100644 |
| --- a/PRODUCT.md |
| +++ b/PRODUCT.md |
| @@ -34,7 +34,8 @@ pages, against Home's own copy of the plan, after a fresh sign-in. |
| blank, Calls' quality reports off) or **own** (Paul's own teams: |
| quality reports on, dashboards named, Memoria AI Paul's to turn on with |
| his own key after the run). Docs' sample documents are a separate |
| - per-run choice. Slides ships without uploads either way. |
| + per-run choice. Slides has uploads either way: each team's Slides gets |
| + its own bucket from CARLOS, never a value Alta holds. |
| - Alta never holds or writes Paul's SMTP or relay secrets: CARLOS mints |
| them per team environment. |
| - No live updates: refresh to see progress. |
diff --git a/README.md b/README.md| index f3151cd..638576f 100644 |
| --- a/README.md |
| +++ b/README.md |
| @@ -50,10 +50,15 @@ form, recorded on the run and shown with its plan on Alta's run page |
| - **samples**, a separate box: `DOCS_SAMPLE_DOCUMENTS=1`, for a sample |
| team only. |
| -Slides stays without uploads in both profiles: a team credential cannot |
| -declare an object store (CARLOS's store doors are Admin-only), and the |
| -only store a create provisions comes from the app-wide private-storage |
| -policy, which a run cannot choose. Step 7 records the choice each |
| +Slides has uploads in both profiles (Paul, 2026-11-12): Slides' |
| +app-wide private-storage policy (`carlos instances enable --app slides |
| +--private-storage`, Paul's to run) gives every instance Alta creates its |
| +environment's own bucket at step 8, and CARLOS's objstore walk delivers |
| +`CARLOS_STORE_BUCKET`, `_REGION`, `_ACCESS_KEY`, `_SECRET_KEY` (and |
| +`_ENDPOINT` where the deployment has one). They are PLATFORM keys: Alta |
| +never writes them (the console guard refuses), and the audit admits the |
| +whole set on Slides only, optionally, since an instance created before |
| +the policy has none. Any other app holding them fails the audit. Step 7 records the choice each |
| environment was written with (the team page shows it per app), and the |
| audit checks against that. A written environment is never rewritten, so |
| a run whose choice differs from an app's written one is refused |
| @@ -126,7 +131,9 @@ labels and retired hostnames are never reused. |
| 5. **Mail and relay**: each app's mail declared under the prefix its binary |
| reads — `DOCS_SMTP` for Docs — and the relay enabled for Calls, so the |
| CARLOS walks mint per-environment credentials. Alta is given no SMTP or |
| - relay value. |
| + 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. |
| 6. **Versions**: ship team apps with `carlos ship --version` equal to the |
| app Makefile's `VERSION` (`git describe --tags --always`) if you want |
| the box's serving name and `/api/version` to match. Step 10 does not |
diff --git a/console/fakeconsole/fakeconsole.go b/console/fakeconsole/fakeconsole.go| index b5d74a1..df8995b 100644 |
| --- a/console/fakeconsole/fakeconsole.go |
| +++ b/console/fakeconsole/fakeconsole.go |
| @@ -67,6 +67,13 @@ type Console struct { |
| // mail enabled. Relay lists the apps with the relay enabled. |
| MailPrefix map[string]string |
| Relay map[string]bool |
| + // PrivateStorage lists the apps with the private-storage policy on |
| + // (`carlos instances enable --private-storage`): an instance create |
| + // provisions its environment's own store and delivers CARLOS_STORE_* |
| + // into that environment, as CARLOS's objstore walk does. |
| + // StoreEndpoint, when set, is the deployment's endpoint. |
| + PrivateStorage map[string]bool |
| + StoreEndpoint string |
| // Versions is what each app's build answers on /api/version, and what |
| // a box reports serving. |
| Versions map[string]string |
| @@ -96,7 +103,7 @@ type Console struct { |
| func New(account, scope string) *Console { |
| priv, _ := ecdh.P256().GenerateKey(rand.Reader) |
| c := &Console{Account: account, Scope: scope, tokens: map[string]string{}, priv: priv, envs: map[string]map[string]*bundle{}, instances: map[string]*inst{}, domains: map[string]*claim{}, |
| - MailPrefix: map[string]string{}, Relay: map[string]bool{}, Versions: map[string]string{}, DomainPolls: 1, Roster: "ok", SecretWrites: map[string]int{}, ServingName: map[string]string{}, VersionAnswer: map[string]string{}} |
| + MailPrefix: map[string]string{}, Relay: map[string]bool{}, PrivateStorage: map[string]bool{}, Versions: map[string]string{}, DomainPolls: 1, Roster: "ok", SecretWrites: map[string]int{}, ServingName: map[string]string{}, VersionAnswer: map[string]string{}} |
| c.srv = httptest.NewServer(http.HandlerFunc(c.serve)) |
| return c |
| } |
| @@ -477,6 +484,17 @@ func (c *Console) serve(w http.ResponseWriter, r *http.Request) { |
| refuse(w, 409, "host already exists") |
| return |
| } |
| + if c.PrivateStorage[app] { |
| + // The store first, then the record (CARLOS's create door). |
| + b := c.envs[app][env] |
| + b.vars["CARLOS_STORE_BUCKET"] = Var{Kind: "env", Value: "carlos-" + c.Account + "-" + app + "-" + env} |
| + b.vars["CARLOS_STORE_REGION"] = Var{Kind: "env", Value: "eu-west-1"} |
| + if c.StoreEndpoint != "" { |
| + b.vars["CARLOS_STORE_ENDPOINT"] = Var{Kind: "env", Value: c.StoreEndpoint} |
| + } |
| + b.vars["CARLOS_STORE_ACCESS_KEY"] = Var{Kind: "secret", Envelope: c.sealCanary(app)} |
| + b.vars["CARLOS_STORE_SECRET_KEY"] = Var{Kind: "secret", Envelope: c.sealCanary(app)} |
| + } |
| c.instances[host] = &inst{env: env, app: app, serving: c.Versions[app]} |
| writeJSON(w, 200, map[string]any{"host": host, "environment": env}) |
| case strings.HasPrefix(rest, "/instances/"): |
diff --git a/internal/web/words.go b/internal/web/words.go| index dfa1e0a..9b33cf8 100644 |
| --- a/internal/web/words.go |
| +++ b/internal/web/words.go |
| @@ -78,6 +78,7 @@ var words = map[string]string{ |
| "audit-extra-key": "The environment holds a key the recipe does not name", |
| "audit-missing-key": "The environment is missing a recipe key", |
| "audit-value": "A value differs from the recipe", |
| + "audit-store-partial": "The object store's keys are incomplete: CARLOS delivers the whole set at once", |
| "audit-kind": "A key has the wrong kind", |
| "audit-allowlist-empty": "The allowlist is empty", |
| "team-not-seeded": "The team was never created at Home", |
diff --git a/provision/apps.go b/provision/apps.go| index a0d8cdd..13a8292 100644 |
| --- a/provision/apps.go |
| +++ b/provision/apps.go |
| @@ -73,6 +73,10 @@ type App struct { |
| MailPrefixes []string |
| // Relay is true when CARLOS_RELAY is a PLATFORM key (Calls). |
| Relay bool |
| + // Store is true for an app whose instances may carry an object store |
| + // of their own (Slides: the private-storage policy). Its StoreKeys |
| + // are PLATFORM keys the audit admits, and never requires. |
| + Store bool |
| // Dashboard is true for an app whose binary reads |
| // OFICINA_DASHBOARD_TEAM (internal/<app>/dashboard.go): the own |
| // profile names the team there. |
| @@ -83,7 +87,7 @@ type App struct { |
| var Apps = []App{ |
| {Slug: "docs", Name: "Docs", Prefix: "DOCS", Roster: true, MailPrefixes: []string{"DOCS_SMTP"}, Dashboard: true}, |
| {Slug: "sheets", Name: "Sheets", Prefix: "SHEETS", Roster: true, MailPrefixes: []string{"CARLOS_SMTP"}, Dashboard: true}, |
| - {Slug: "slides", Name: "Slides", Prefix: "SLIDES", Roster: true, MailPrefixes: []string{"SLIDES_SMTP", "CARLOS_SMTP"}, Dashboard: true}, |
| + {Slug: "slides", Name: "Slides", Prefix: "SLIDES", Roster: true, MailPrefixes: []string{"SLIDES_SMTP", "CARLOS_SMTP"}, Dashboard: true, Store: true}, |
| {Slug: "calendar", Name: "Calendar", Prefix: "CALENDAR", Roster: true, MailPrefixes: []string{"CALENDAR_SMTP", "CARLOS_SMTP"}, Dashboard: true}, |
| {Slug: "calls", Name: "Calls", Prefix: "CALLS", Roster: true, MailPrefixes: []string{"CALLS_SMTP", "CARLOS_SMTP"}, Relay: true}, |
| {Slug: "memoria", Name: "Memoria", Prefix: "MEMORIA", Roster: true, MailPrefixes: []string{"CARLOS_SMTP"}}, |
| @@ -253,11 +257,13 @@ func Recipe(app App, in Inputs) []Key { |
| keys = append(keys, Key{Name: "SHEETS_DEK", Class: Generated, Secret: true}) |
| keys = append(keys, teamKeys(p, in)...) |
| case "slides": |
| - // No uploads (Paul): no CARLOS_STORE_*, so uploads answer 503. The |
| - // own profile would want a bucket, but a team credential cannot |
| - // declare one: CARLOS's store doors are Admin-only, and the one |
| - // path that provisions a store at instance create is the app-wide |
| - // private-storage policy, which no run can choose. |
| + // Uploads (Paul, 2026-11-12): Slides' app-wide private-storage |
| + // policy gives every instance Alta creates, under either profile, |
| + // its environment's own bucket at step 8, and CARLOS's objstore |
| + // walk delivers CARLOS_STORE_* into the environment. Those are |
| + // PLATFORM keys (StoreKeys): never written by Alta, admitted by |
| + // the audit, and optional, since an instance created before the |
| + // policy has none and its uploads answer 503. |
| // Team mode (oficina/slides team-mode @ 80fd3c9, through Home's |
| // teammode): SLIDES_ALLOWED_ADDRESSES is optional beside |
| // SLIDES_TEAM_*, so the owner is not written. |
| @@ -469,6 +475,31 @@ type PlatformState struct { |
| // WrongPrefix names an SMTP prefix delivered that the binary does not |
| // read: a declaration under the wrong prefix (§5, §6 step 0). |
| WrongPrefix string |
| + // Store is the object-store keys present, for an app with a Store. |
| + // Kept apart from Keys: the store arrives at step 8, after step 7 |
| + // records the binding, and is never waited for. |
| + Store []string |
| +} |
| + |
| +// StoreKey is one object-store coordinate as CARLOS's objstore walk |
| +// delivers it (internal/objstore EnvNames and writeEnv, prefix |
| +// CARLOS_STORE, the one Slides' declaration and rastrillo's |
| +// blobs.S3FromEnv use): bucket and region as env, both key halves sealed. |
| +// The endpoint is delivered only by a deployment that has one. |
| +type StoreKey struct { |
| + Name string |
| + Secret bool |
| + Optional bool |
| +} |
| + |
| +// StoreKeys is the set, all-or-none but for the endpoint. Alta's console |
| +// guard refuses any write of them (console.PlatformManaged). |
| +var StoreKeys = []StoreKey{ |
| + {Name: "CARLOS_STORE_BUCKET"}, |
| + {Name: "CARLOS_STORE_REGION"}, |
| + {Name: "CARLOS_STORE_ENDPOINT", Optional: true}, |
| + {Name: "CARLOS_STORE_ACCESS_KEY", Secret: true}, |
| + {Name: "CARLOS_STORE_SECRET_KEY", Secret: true}, |
| } |
| // PlatformKeys classifies an environment's present key names against |
| @@ -500,6 +531,13 @@ func PlatformKeys(app App, present map[string]bool) PlatformState { |
| if app.Relay { |
| want = append(want, "CARLOS_RELAY") |
| } |
| + if app.Store { |
| + for _, k := range StoreKeys { |
| + if present[k.Name] { |
| + st.Store = append(st.Store, k.Name) |
| + } |
| + } |
| + } |
| for _, k := range want { |
| if present[k] { |
| st.Keys = append(st.Keys, k) |
diff --git a/provision/guard_test.go b/provision/guard_test.go| index 153c95e..19b5883 100644 |
| --- a/provision/guard_test.go |
| +++ b/provision/guard_test.go |
| @@ -110,7 +110,7 @@ func TestGuardRefusesDeleteOutsideADeprovisionRun(t *testing.T) { |
| func TestGuardRefusesPlatformManagedKeys(t *testing.T) { |
| h, e := guardHarness(t) |
| before := len(h.con.Requests) |
| - for _, k := range []string{"CARLOS_SMTP_PASS", "DOCS_SMTP_USER", "SHEETS_SMTP_HOST", "CARLOS_RELAY", "CARLOS_MAIL_EVENTS_KEY", "SLIDES_SCAN_CALLBACK_SECRET", "CARLOS_STORE_BUCKET"} { |
| + for _, k := range []string{"CARLOS_SMTP_PASS", "DOCS_SMTP_USER", "SHEETS_SMTP_HOST", "CARLOS_RELAY", "CARLOS_MAIL_EVENTS_KEY", "SLIDES_SCAN_CALLBACK_SECRET", "CARLOS_STORE_BUCKET", "CARLOS_STORE_REGION", "CARLOS_STORE_ENDPOINT", "CARLOS_STORE_ACCESS_KEY", "CARLOS_STORE_SECRET_KEY"} { |
| _, err := e.cfg.Console.PutConfig(h.ctx(), "sheets", "alpha", map[string]console.SetVar{k: {Kind: "env", Value: "x"}}, nil, "") |
| refusedLocally(t, h, "set "+k, err) |
| _, err = e.cfg.Console.PutConfig(h.ctx(), "sheets", "alpha", nil, []string{k}, "") |
diff --git a/provision/steps.go b/provision/steps.go| index 9a0eec5..43e17e1 100644 |
| --- a/provision/steps.go |
| +++ b/provision/steps.go |
| @@ -870,6 +870,22 @@ func (e *Engine) AuditEnvironment(ctx context.Context, label string, app App) er |
| for _, k := range ps.Keys { |
| want[k] = Key{Name: k, Class: Platform} |
| } |
| + // The object store (Slides): CARLOS's walk delivers the whole set in |
| + // one write, so it is admitted whole, each with its kind, or refused. |
| + if len(ps.Store) > 0 { |
| + for _, k := range StoreKeys { |
| + have, ok := present[k.Name] |
| + switch { |
| + case !ok && !k.Optional: |
| + return fail("audit-store-partial") |
| + case !ok: |
| + case k.Secret && have.Kind != "secret", !k.Secret && have.Kind != "env": |
| + return fail("audit-kind") |
| + default: |
| + want[k.Name] = Key{Name: k.Name, Class: Platform} |
| + } |
| + } |
| + } |
| // Paul's post-run group (an own team's Memoria AI) is admitted |
| // whole or not at all, never one key of it. |
| operator := OperatorKeys(app, in.Profile) |
diff --git a/provision/store_keys_test.go b/provision/store_keys_test.go| new file mode 100644 |
| index 0000000..ecb7c53 |
| --- /dev/null |
| +++ b/provision/store_keys_test.go |
| @@ -0,0 +1,167 @@ |
| +package provision |
| + |
| +import ( |
| + "errors" |
| + "maps" |
| + "testing" |
| + |
| + "amadan.net/oficina/alta/console" |
| + "amadan.net/oficina/alta/console/fakeconsole" |
| + "amadan.net/oficina/alta/homeop" |
| +) |
| + |
| +// The names are CARLOS's (internal/objstore EnvNames, default prefix |
| +// CARLOS_STORE) and the ones rastrillo's blobs.S3FromEnv reads; every one |
| +// is the platform's alone. |
| +func TestStoreKeysAreCARLOSsAndPlatformManaged(t *testing.T) { |
| + want := map[string]bool{"CARLOS_STORE_BUCKET": false, "CARLOS_STORE_REGION": false, "CARLOS_STORE_ENDPOINT": false, "CARLOS_STORE_ACCESS_KEY": true, "CARLOS_STORE_SECRET_KEY": true} |
| + if len(StoreKeys) != len(want) { |
| + t.Fatalf("store keys %v", StoreKeys) |
| + } |
| + for _, k := range StoreKeys { |
| + secret, ok := want[k.Name] |
| + if !ok || secret != k.Secret || k.Optional != (k.Name == "CARLOS_STORE_ENDPOINT") { |
| + t.Fatalf("store key %+v", k) |
| + } |
| + if !console.PlatformManaged(k.Name) { |
| + t.Fatalf("%s is not platform-managed", k.Name) |
| + } |
| + } |
| + for _, a := range Apps { |
| + if a.Store != (a.Slug == "slides") { |
| + t.Fatalf("%s store %v", a.Slug, a.Store) |
| + } |
| + for _, p := range Profiles { |
| + for _, k := range Recipe(a, Inputs{Label: "x", RunOptions: RunOptions{Profile: p, Samples: true}}) { |
| + if console.PlatformManaged(k.Name) { |
| + t.Fatalf("%s %s recipe names %s", a.Slug, p, k.Name) |
| + } |
| + } |
| + } |
| + } |
| +} |
| + |
| +// Paul's ruling, 2026-11-12: Slides' private-storage policy is on, so |
| +// every Slides instance Alta creates arrives with its own store. The run |
| +// finishes and the audit passes, under either profile, with or without a |
| +// deployment endpoint; Alta writes none of the store keys. |
| +func TestSlidesWithItsOwnStorePassesTheAudit(t *testing.T) { |
| + for _, c := range []struct { |
| + label string |
| + opt RunOptions |
| + endpoint string |
| + }{ |
| + {"store-out", RunOptions{Profile: ProfileOutside}, ""}, |
| + {"store-own", RunOptions{Profile: ProfileOwn}, "https://s3.example.test"}, |
| + } { |
| + h := newHarness(t) |
| + h.initialized() |
| + h.con.PrivateStorage["slides"] = true |
| + h.con.StoreEndpoint = c.endpoint |
| + e := h.engine(nil) |
| + run, err := e.CreateTeam(h.ctx(), NewTeam{Label: c.label, Name: "Store", Owner: ownerCanary, Apps: []string{"slides", "docs"}, Options: c.opt}) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + h.confirm(homeop.KindCreateTeam) |
| + if r := h.drive(e, run, 30); r.State != "done" { |
| + t.Fatalf("%s: %s %s", c.label, r.State, r.Code) |
| + } |
| + vars, _, _ := h.con.Env("slides", c.label) |
| + for _, k := range StoreKeys { |
| + if _, ok := vars[k.Name]; !ok && !(k.Optional && c.endpoint == "") { |
| + t.Fatalf("%s: no %s", c.label, k.Name) |
| + } |
| + } |
| + if got := vars["CARLOS_STORE_BUCKET"].Value; got != "carlos-"+account+"-slides-"+c.label { |
| + t.Fatalf("the bucket was rewritten: %q", got) |
| + } |
| + slides, _ := AppBySlug("slides") |
| + if err := e.AuditEnvironment(h.ctx(), c.label, slides); err != nil { |
| + t.Fatalf("%s audit: %v", c.label, err) |
| + } |
| + if h.scan("carlos-" + account + "-slides-" + c.label) { |
| + t.Fatal("a store coordinate reached Alta's database") |
| + } |
| + // Docs has no store: the policy is Slides' alone. |
| + if vars, _, _ := h.con.Env("docs", c.label); vars["CARLOS_STORE_BUCKET"] != (fakeconsole.Var{}) { |
| + t.Fatal("docs got a store") |
| + } |
| + } |
| +} |
| + |
| +// The store is Slides' alone: any other app holding the keys fails the |
| +// audit, and Slides holding part of the set, or a key in the wrong kind, |
| +// fails too. |
| +func TestStoreKeysOutsideSlidesOrIncompleteFailTheAudit(t *testing.T) { |
| + h := newHarness(t) |
| + h.initialized() |
| + e := h.engine(nil) |
| + apps := []string{"docs", "sheets", "slides", "calendar", "calls", "memoria"} |
| + run, err := e.CreateTeam(h.ctx(), NewTeam{Label: "nostore", Name: "No store", Owner: ownerCanary, Apps: apps}) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + h.confirm(homeop.KindCreateTeam) |
| + if r := h.drive(e, run, 40); r.State != "done" { |
| + t.Fatalf("%s %s", r.State, r.Code) |
| + } |
| + secret := fakeVar{Kind: "secret", Envelope: sealFor(t, h, "slides", "store-secret")} |
| + store := map[string]fakeVar{ |
| + "CARLOS_STORE_BUCKET": {Kind: "env", Value: "b"}, |
| + "CARLOS_STORE_REGION": {Kind: "env", Value: "eu-west-1"}, |
| + "CARLOS_STORE_ACCESS_KEY": secret, |
| + "CARLOS_STORE_SECRET_KEY": secret, |
| + } |
| + audit := func(slug string, extra map[string]fakeVar, drop ...string) error { |
| + t.Helper() |
| + base, owner, _ := h.con.Env(slug, "nostore") |
| + vars := maps.Clone(base) |
| + maps.Copy(vars, extra) |
| + for _, d := range drop { |
| + delete(vars, d) |
| + } |
| + h.con.SetEnv(slug, "nostore", owner, vars) |
| + defer h.con.SetEnv(slug, "nostore", owner, base) |
| + app, _ := AppBySlug(slug) |
| + return e.AuditEnvironment(h.ctx(), "nostore", app) |
| + } |
| + var fl *Fail |
| + for _, slug := range apps { |
| + err := audit(slug, store) |
| + if slug == "slides" { |
| + if err != nil { |
| + t.Fatalf("slides with its store: %v", err) |
| + } |
| + continue |
| + } |
| + if !errors.As(err, &fl) || fl.Code != "audit-extra-key" { |
| + t.Fatalf("%s with a store: %v", slug, err) |
| + } |
| + } |
| + if err := audit("slides", nil); err != nil { |
| + t.Fatalf("slides without a store (created before the policy): %v", err) |
| + } |
| + for _, drop := range []string{"CARLOS_STORE_BUCKET", "CARLOS_STORE_REGION", "CARLOS_STORE_ACCESS_KEY", "CARLOS_STORE_SECRET_KEY"} { |
| + if err := audit("slides", store, drop); !errors.As(err, &fl) || fl.Code != "audit-store-partial" { |
| + t.Fatalf("slides store without %s: %v", drop, err) |
| + } |
| + } |
| + plain := maps.Clone(store) |
| + plain["CARLOS_STORE_SECRET_KEY"] = fakeVar{Kind: "env", Value: "plain"} |
| + if err := audit("slides", plain); !errors.As(err, &fl) || fl.Code != "audit-kind" { |
| + t.Fatalf("plain secret key: %v", err) |
| + } |
| + sealedBucket := maps.Clone(store) |
| + sealedBucket["CARLOS_STORE_ENDPOINT"] = secret |
| + if err := audit("slides", sealedBucket); !errors.As(err, &fl) || fl.Code != "audit-kind" { |
| + t.Fatalf("sealed endpoint: %v", err) |
| + } |
| + // A key outside CARLOS's set, under the store's prefix, is no |
| + // coordinate of it. |
| + odd := maps.Clone(store) |
| + odd["CARLOS_STORE_OTHER"] = fakeVar{Kind: "env", Value: "x"} |
| + if err := audit("slides", odd); !errors.As(err, &fl) || fl.Code != "audit-extra-key" { |
| + t.Fatalf("unknown store key: %v", err) |
| + } |
| +} |