Slides is a roster-mode app: its team recipe
Slides' team mode (oficina/slides #33, team-mode @ 80fd3c9, through
Home's teammode.ConfigFromEnv("SLIDES") and EnvNames): Roster true, the
five SLIDES_TEAM_* keys from teamKeys as Docs and Sheets (the roster
token Home's bearer, fetched by replaying step 5), and
SLIDES_ALLOWED_ADDRESSES no longer written: resolveAllowlist admits an
empty list beside team configuration. SLIDES_HOME_* and
HOME_DIRECTORY_ORIGIN stay; no uploads still. Step 11 verifies Slides
through its /api/team (teammode.Probe, Docs' shape).
TestRosterRecipes pins Slides' exact names; the fake console serves
/api/team for Slides; the end-to-end run, the crash suite and homecompat
(Home's real 0cee9ba engine) activate Slides, with Calendar asserted
still pending. The README names the three roster apps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 files changed,
+23
−11
README.md+6 −3console/fakeconsole/fakeconsole.go+2 −2homecompat/compat_test.go+4 −1provision/apps.go+5 −2provision/apps_test.go+5 −2provision/review_test.go+1 −1
CI passed — run details
diff --git a/README.md b/README.md| index 1ff91e6..558add6 100644 |
| --- a/README.md |
| +++ b/README.md |
| @@ -127,10 +127,13 @@ recorded here instead (Fable's rulings on oficina/alta #1): |
| (`activationVersion` in `provision/steps.go`): a version Home would |
| refuse parks there as `version-unacceptable` instead of failing |
| activation. |
| -- **§6 step 11, `/api/team`**: Docs serves the readiness probe on main |
| - (`e58a22f`); until the next Docs deploy, Docs parks at |
| +- **§6 step 11, `/api/team`**: the roster-mode apps are Docs, Sheets and |
| + Slides (team mode on each app's main or team-mode branch: Docs |
| + `e58a22f`, Sheets #52, Slides #33). Each serves the readiness probe |
| + once that build is deployed; until then it parks at |
| `no-readiness-probe` (its directory row stays pending, and the owner's |
| - address is deleted all the same). |
| + address is deleted all the same). Calendar, Calls and Memoria have no |
| + roster mode yet and keep the owner allowlist. |
| - **§11, Help**: the account menu has no Help items yet (no Colophon page). |
| ## Developing |
diff --git a/console/fakeconsole/fakeconsole.go b/console/fakeconsole/fakeconsole.go| index 9760e88..b11a3c9 100644 |
| --- a/console/fakeconsole/fakeconsole.go |
| +++ b/console/fakeconsole/fakeconsole.go |
| @@ -576,8 +576,8 @@ func (c *Console) Transport() http.RoundTripper { |
| } else { |
| rec.WriteString(i.serving) |
| } |
| - case r.URL.Path == "/api/team" && (i.app == "docs" || i.app == "sheets") && !c.NoTeamProbe: |
| - // The roster-mode apps: Docs, and Sheets since its team mode. |
| + case r.URL.Path == "/api/team" && (i.app == "docs" || i.app == "sheets" || i.app == "slides") && !c.NoTeamProbe: |
| + // The roster-mode apps: Docs, Sheets and Slides. |
| p := strings.ToUpper(i.app) |
| b := c.envs[i.app][i.env] |
| _, token := b.vars[p+"_TEAM_ROSTER_TOKEN"] |
diff --git a/homecompat/compat_test.go b/homecompat/compat_test.go| index d522fad..e43f5da 100644 |
| --- a/homecompat/compat_test.go |
| +++ b/homecompat/compat_test.go |
| @@ -376,9 +376,12 @@ func TestAltaAgainstHomesRealOperator(t *testing.T) { |
| if err := r.home.dirDB.QueryRow("SELECT state FROM team_instances WHERE consumer_id='lagged-sheets'").Scan(&state); err != nil || state != "live" { |
| t.Fatalf("sheets at the directory: %q %v", state, err) |
| } |
| - if err := r.home.dirDB.QueryRow("SELECT state FROM team_instances WHERE consumer_id='lagged-slides'").Scan(&state); err != nil || state != "pending" { |
| + if err := r.home.dirDB.QueryRow("SELECT state FROM team_instances WHERE consumer_id='lagged-slides'").Scan(&state); err != nil || state != "live" { |
| t.Fatalf("slides at the directory: %q %v", state, err) |
| } |
| + if err := r.home.dirDB.QueryRow("SELECT state FROM team_instances WHERE consumer_id='lagged-calendar'").Scan(&state); err != nil || state != "pending" { |
| + t.Fatalf("calendar at the directory: %q %v", state, err) |
| + } |
| var n int |
| _ = r.home.credDB.QueryRow("SELECT count(*) FROM consumers WHERE state='active'").Scan(&n) |
| if n != 6 { |
diff --git a/provision/apps.go b/provision/apps.go| index 74175ec..b23b89d 100644 |
| --- a/provision/apps.go |
| +++ b/provision/apps.go |
| @@ -45,7 +45,7 @@ type App struct { |
| var Apps = []App{ |
| {Slug: "docs", Name: "Docs", Prefix: "DOCS", Roster: true, MailPrefixes: []string{"DOCS_SMTP"}}, |
| {Slug: "sheets", Name: "Sheets", Prefix: "SHEETS", Roster: true, MailPrefixes: []string{"CARLOS_SMTP"}}, |
| - {Slug: "slides", Name: "Slides", Prefix: "SLIDES", MailPrefixes: []string{"SLIDES_SMTP", "CARLOS_SMTP"}}, |
| + {Slug: "slides", Name: "Slides", Prefix: "SLIDES", Roster: true, MailPrefixes: []string{"SLIDES_SMTP", "CARLOS_SMTP"}}, |
| {Slug: "calendar", Name: "Calendar", Prefix: "CALENDAR", MailPrefixes: []string{"CALENDAR_SMTP", "CARLOS_SMTP"}}, |
| {Slug: "calls", Name: "Calls", Prefix: "CALLS", MailPrefixes: []string{"CALLS_SMTP", "CARLOS_SMTP"}, Relay: true}, |
| {Slug: "memoria", Name: "Memoria", Prefix: "MEMORIA", MailPrefixes: []string{"CARLOS_SMTP"}}, |
| @@ -162,7 +162,10 @@ func Recipe(app App, in Inputs) []Key { |
| keys = append(keys, teamKeys(p, in)...) |
| case "slides": |
| // No uploads (Paul): no CARLOS_STORE_*, so uploads answer 503. |
| - keys = append(keys, owner("SLIDES_ALLOWED_ADDRESSES")) |
| + // 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. |
| + keys = append(keys, teamKeys(p, in)...) |
| case "calendar": |
| keys = append(keys, Key{Name: "CALENDAR_DEK", Class: Generated, Secret: true}, owner("CALENDAR_ALLOWED_ADDRESSES")) |
| case "calls": |
diff --git a/provision/apps_test.go b/provision/apps_test.go| index 60682c7..e0b8953 100644 |
| --- a/provision/apps_test.go |
| +++ b/provision/apps_test.go |
| @@ -5,7 +5,9 @@ import ( |
| "testing" |
| ) |
| -// The recipes against each app's own config readers. Sheets follows |
| +// The recipes against each app's own config readers. Slides follows |
| +// oficina/slides team-mode @ 80fd3c9 (Home's teammode.EnvNames("SLIDES"); |
| +// SLIDES_ALLOWED_ADDRESSES optional beside them). Sheets follows |
| // oficina/sheets team-mode @ b0264ff (internal/sheets/team_config.go, |
| // auth.go): SHEETS_TEAM_* all or none, SHEETS_OWNERS not needed beside |
| // them. |
| @@ -13,6 +15,7 @@ func TestRosterRecipes(t *testing.T) { |
| in := Inputs{Label: "lagged", Owner: "o@x.test", TeamSQID: "Uk", Record: []byte("{}"), Home: HomeConfig{Issuer: "https://id.oficina.works", Directory: "https://oficina.works", Provisioner: "AQ"}} |
| want := map[string][]string{ |
| "docs": {"DOCS_ALLOWED_ADDRESSES", "DOCS_CONTENT_KEY", "DOCS_HOME_CONSUMER_ID", "DOCS_HOME_DEK_BASE64", "DOCS_HOME_ISSUER", "DOCS_HOME_KEYS_BASE64", "DOCS_INSTANCE_KEY", "DOCS_ORIGIN", "DOCS_TEAM_DIRECTORY_ORIGIN", "DOCS_TEAM_ID", "DOCS_TEAM_OPERATOR_KEYS_BASE64", "DOCS_TEAM_PROVISIONING_BASE64", "DOCS_TEAM_ROSTER_TOKEN", "HOME_DIRECTORY_ORIGIN"}, |
| + "slides": {"HOME_DIRECTORY_ORIGIN", "SLIDES_HOME_CONSUMER_ID", "SLIDES_HOME_DEK_BASE64", "SLIDES_HOME_ISSUER", "SLIDES_HOME_KEYS_BASE64", "SLIDES_INSTANCE_KEY", "SLIDES_ORIGIN", "SLIDES_TEAM_DIRECTORY_ORIGIN", "SLIDES_TEAM_ID", "SLIDES_TEAM_OPERATOR_KEYS_BASE64", "SLIDES_TEAM_PROVISIONING_BASE64", "SLIDES_TEAM_ROSTER_TOKEN"}, |
| "sheets": {"HOME_DIRECTORY_ORIGIN", "SHEETS_DEK", "SHEETS_HOME_CONSUMER_ID", "SHEETS_HOME_DEK_BASE64", "SHEETS_HOME_ISSUER", "SHEETS_HOME_KEYS_BASE64", "SHEETS_INSTANCE_KEY", "SHEETS_ORIGIN", "SHEETS_TEAM_DIRECTORY_ORIGIN", "SHEETS_TEAM_ID", "SHEETS_TEAM_OPERATOR_KEYS_BASE64", "SHEETS_TEAM_PROVISIONING_BASE64", "SHEETS_TEAM_ROSTER_TOKEN"}, |
| } |
| for slug, names := range want { |
| @@ -39,7 +42,7 @@ func TestRosterRecipes(t *testing.T) { |
| } |
| } |
| for _, a := range Apps { |
| - if a.Roster != (a.Slug == "docs" || a.Slug == "sheets") { |
| + if a.Roster != (a.Slug == "docs" || a.Slug == "sheets" || a.Slug == "slides") { |
| t.Fatalf("%s roster mode %v", a.Slug, a.Roster) |
| } |
| } |
diff --git a/provision/review_test.go b/provision/review_test.go| index 2eaae07..f1876b3 100644 |
| --- a/provision/review_test.go |
| +++ b/provision/review_test.go |
| @@ -25,7 +25,7 @@ func TestOwnerForgottenWhileAnAppIsParked(t *testing.T) { |
| if r.State != "parked" { |
| t.Fatalf("run %s %s", r.State, r.Code) |
| } |
| - for _, app := range []string{"docs", "sheets"} { |
| + for _, app := range []string{"docs", "sheets", "slides"} { |
| if st, _, _ := h.store.Step(h.ctx(), "lagged", app, StepVerify); st.Code != "no-readiness-probe" { |
| t.Fatalf("%s verify %s %s", app, st.State, st.Code) |
| } |