Skip to content

feat: draw the platform project at the console's root and keep its configuration to its admins - #3008

Merged
fforootd merged 12 commits into
mainfrom
claude/objective-swirles-478ef5
Nov 12, 2026
Merged

fforootd merged 12 commits into
mainfrom
claude/objective-swirles-478ef5

Conversation

@fforootd

@fforootd fforootd commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Summary

An operator administers every project (ADR 075), so the console listed the reserved platform project it signs in to as a project named Platform, in Projects, the switcher and search. It is not one of the projects. It is the root: still a project, with a project's screens under the same names, but never one to choose, and only for the people who may act on it. It holds who may use the platform (the console, the CLI, later MCP clients), never an application's end users (D42, amending D27, D29, D37, D39 and D40 and superseding D34; Console ADR 0001 and ADR 0004 §1, §3 and §5; root ADR 053 §9 and ADR 082).

Server

  • GET /console/runtime.json gains platform_project_id. It is set only when the console signs in to the built-in row that bootstrap provisioned (domain.ReservedPlatformProjectID): only bootstrap writes that id, and POST /projects never mints it.
  • GET /users/me/projects takes exclude_platform. The server applies it together with the grants and the name search, so pages stay whole. Without it the list is unchanged (ADR 075 §6), so the CLI still lists the project.
  • Writing the reserved project's configuration asks for its admin role, where another project asks for editor:
    • origins: addOrigin (removeOrigin asks admin everywhere)
    • releases: buildRelease, createRelease, revokeRelease
    • deployments: createDeployment, rollbackDeployment, removePreview
    • updateVariables, deleteVariable, createSchema, createFlowDefinition, publishPolicy, createBranding, createIdp
    • applications: createApplication
  • The admin check runs after the operation's own check, so answers to anyone else are unchanged. An editor of the platform project gets the resource's permission_denied (403). A platform operator holds admin. Reads, and writes of users, teams, grants and invitations, ask what they ask on any project.
  • Every one of those writes already passed one gate, Handler.requireProjectAccess. The gate's resources are now marked configuration, and the extra check sits there (requirePlatformConfigurationAdmin). The server's own start-up deploy calls the services, not the gate.
  • A platform.project_id pin to an ordinary project and the first-created fallback are not reserved: a self-hoster's only project keeps the relations every project asks.

The root

  • For someone who may act on the platform project, the root's sidebar lists Projects, then its screens (Teams, Users, User schemas, Login flows, Branding, Deployments, Authentication, Events), then Settings.
  • Those are the project screens themselves, with the platform project selected: a row of the root's sets ?project= to it. No screen is copied, and one a project gains later is the root's too. Overview is left out, since the root's home is Projects.
  • Its own Settings pages, General and Admins, head the root's Settings list, before what the hosted cloud adds (Billing, Support, Email). With nothing in that list the row is left out.
  • While the platform project is the selection the chrome is the root's: the sidebar is the root's list, the pill says "All projects", and Events and Settings lead back to Projects. The switcher's list and its recent projects never hold it.
  • "May act on it" is GET /projects/{id}: it answers for an operator or anyone granted on the platform project and refuses everyone else. For them the _authed guard drops the selection, as for any project they cannot choose, and the root lists Projects and Settings.
  • The root no longer lists a project's screens for everyone (D34). A project's are reached by choosing the project.
  • Profile moves to /account, opened from the account menu.

Never a project to choose

  • Projects, the switcher, search's project rows and the default selection all send exclude_platform. An operator with one customer project now lands in it.
  • Search lists the root's screens as "Account", beside the selected project's. What it finds in the platform project reads as the screen that lists it ("Users", "Teams") and opens there.

Earlier versions of this PR

  • The first drew five copied pages under /platform/…; the second cut them to Users and Events and had the server refuse every configuration write. Both are gone: the Users, Events, Login flows, Branding and Authentication screens are as main has them, and the diff is mostly the shell.

What it changes for existing use

  • Signing up, signing in, creating and claiming projects, the CLI: unchanged.
  • A platform operator or admin: reaches the platform project's screens from the root's sidebar instead of a project named Platform. Links with ?project=proj_platform keep working for them.
  • An editor of the platform project (a grant only the API can create today): can no longer write its configuration.
  • Everyone else: the root's sidebar is Projects and Settings; it no longer lists a project's screens that ask for a project.
  • Links: /settings/profile is now /account.
  • On preview.zitadel.com nothing writes the platform project's configuration through the API today: read with an operator's session on 2026-11-11, it has one origin (the console's), three deployments that are all the server's own start-up deploys, no variables, the default branding and no identity provider.

Validation

  • turbo run lint typecheck test --filter=@zitadel/server --filter=@zitadel/console: passes. The console's 56 test files and 968 tests; the server's lint (vet, format, the OpenAPI lint, the analyzers and check-generate, which finds no drift) and its test (the unit suite and the SQLite integration suite over every package).
  • turbo run typecheck console-platform --filter=@zitadel/e2e: passes. The lane's 2 tests pass against the built binary.
  • In the server's unit suite: TestPlatformProjectConfigurationWritesRefuseAnEditor runs each of the 15 editor-level writes on the reserved project with a caller whose editor check passes and admin check fails, and TestRequirePlatformConfigurationAdmin covers admins, reads, removals, other projects, a pinned project and a server with no platform project. TestEveryGatedResourceIsClassedForThePlatformProject reads the gate's declared resources from its source and fails until a new one is classed, whether or not the contract's table has a row for it.
  • The SQLite integration suite includes TestPinnedPlatformProjectKeepsItsRelations (an editor of the harness's pinned platform project adds an origin).
  • Not run locally: the Postgres and Spanner lanes.
  • The admin check reuses each resource's existing permission_denied, so the OpenAPI contract is unchanged since the first commits.
  • Walked locally as an operator (NEXTGEN_PLATFORM_OPERATORS=user_localadmin on zitadel start, one customer project from setup), on a server built from this branch:
    • The root's sidebar is Projects, Teams, Users, User schemas, Login flows, Branding, Deployments, Authentication, Events and Settings.
    • Deployments opens at /deployments?project=proj_platform with the pill "All projects" and the server's own deployment live.
    • Settings opens the platform project's General (name, origins, variables, policies) under the root's Settings list, with Admins beside it.
    • With that operator's session, adding a preview origin to proj_platform answers 201 and removing it 204.
  • turbo run lint --filter=// (the ADR index, the Go workspace, Biome) and turbo run check-changesets --filter=@zitadel/release: pass.
  • turbo boundaries: no issues.
  • node scripts/check-pr-title.mjs: ok.

Release notes / changeset

.changeset/console-platform-root.md (@zitadel/server, @zitadel/api): the platform project is the root, with its screens in the root's sidebar for someone who can act on it; everyone else's root no longer lists a project's screens; Profile moves to the account menu; writing the platform project's configuration asks for its admin role; listMyProjects takes exclude_platform.

Notes

  • The harness's platform project is an ordinary pinned one, so no integration test drives the admin check against proj_platform over HTTP. The gate contract's fixture does it at the handler, operation by operation.
  • The platform e2e lane's operator holds no grant on the platform project, so it checks the runtime marker, that Platform is never listed, and that selecting it lands them in their own project. The root for someone who may act on it is covered in apps/console (src/app-shell/app-shell.spec.tsx, "platform root").
  • Open calls, recorded under D42:
    • Governance (policies, and what projects are allowed to do) is the platform's own next page and needs an ADR.
    • Single sign-on for an account's staff is the account's own, a connection of its team, not a platform setting. Whether a tenant may configure anything is open in ADR 066.
    • The root lists its screens for anyone who can read the platform project, an editor or viewer too. Listing by role waits for a read of effective permissions (Console ADR 0004 §5).
    • Sign-up to the platform project is open by default (proof of work only), on a self-hosted server too.
    • The root has no name: the pill says "All projects" and search says "Account".
    • Add user and Add team at the root create an account outside sign-up.
  • Follow-ups:
    • A team per person is still created at sign-up (ADR 046 §4). Creating it when they first own a project, and offering it to any project as an option of sign-up, come later.
    • Deploying to the platform project from a folder (ADR 084 §8.1) needs a credential an admin holds: it has no project secret, and the CLI's platform login is not built.
    • Search reads only the newest ten projects, so an operator with more than ten finds nothing of the platform project while a customer's project is selected (ADR 087 §6).
    • An Operators page waits for an operator read under ADR 054 §10.
    • The schema has no root: the platform project is the projects row with the built-in id. A marker column belongs with ADR 0004 §2's cutover.
    • The docs site's project picker (apps/docs/components/session-auth.tsx) still lists the platform project.
    • The api-mock's runtime document leaves platform_project_id out, so the console's dev on the mock shows no root screens.
    • The gate contract still lists createApplication and getApplicationById as not implemented, though both answer and are gated since feat: create, revise and read registered applications #2901. Their rows belong in its table (authz_contract_internal_test.go); until then this PR's test holds createApplication with a row of its own (platformUnlistedWrites).

🤖 Generated with Claude Code

fforootd and others added 2 commits November 11, 2026 12:56
…leave it out

runtime.json names the reserved platform project (platform_project_id) only when
the console signs in to the built-in row bootstrap provisioned; a pinned
ordinary project and the first-created fallback stay unmarked (Console ADR 0004
§3, D41). GET /users/me/projects takes exclude_platform, applied with the
grants and the name search so pages stay whole.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ect to choose

The reserved platform project the console signs in to is the root level, as
Vercel's team is (D41). Its People, Authentication, Login flows, Branding and
Audit log are root Settings pages, listed for someone who can act on it and
drawn by the project screens' components through ManagedProject. Projects, the
switcher, search's project rows and the default selection send
exclude_platform; a ?project= naming it is dropped; its search hits read as the
Settings page they open. Profile moves to /account, opened from the account
menu. Console ADR 0004 §3 and §5 are amended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cloud Ready Ready Preview Nov 12, 2026 9:58pm UTC

Request Review

Copilot AI balanced review requested due to automatic review settings November 11, 2026 21:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-11T21:12:15.670648Z 4cea299 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦋 Changeset detected

Latest commit: 19d1acd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 25 packages
Name Type
@zitadel/server Minor
@zitadel/api Minor
@zitadel/cli Minor
@zitadel/components Minor
@zitadel/config Minor
@zitadel/sdk-angular Minor
@zitadel/sdk-core Minor
@zitadel/sdk-next Minor
@zitadel/sdk-nuxt Minor
@zitadel/sdk-qwik Minor
@zitadel/sdk-qwik-router Minor
@zitadel/sdk-react Minor
@zitadel/sdk-solid Minor
@zitadel/sdk-solid-start Minor
@zitadel/sdk-svelte Minor
@zitadel/sdk-sveltekit Minor
@zitadel/sdk-tanstack-start Minor
@zitadel/sdk-vue Minor
@zitadel/testing Minor
@zitadel/cloud Patch
@zitadel/server-linux-x64 Minor
@zitadel/server-linux-arm64 Minor
@zitadel/server-darwin-x64 Minor
@zitadel/server-darwin-arm64 Minor
@zitadel/server-win32-x64 Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Resolve the event drawer against #3006: its login flow timeline moves into the
shared loadEvent, and its 'List all' link goes through the list's filtered
links, so the root's Audit log offers none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🟡 Changes recommended

A critical TypeScript issue remains in apps/console/src/features/users/load.ts where a type-only import is later used in a typeof reference for LoadedUser, which will break typechecking and requires correction.

1 open issue
What changed in this PR

Reworks the Console so the reserved platform project is managed from root Settings (and never from the project switcher), supported by new runtime and API signals, plus a Profile move to /account.

Changes:

  • Add platform_project_id to /console/runtime.json and introduce exclude_platform on GET /users/me/projects.
  • Move platform management surfaces into root Settings (People, Authentication, Login flows, Branding, Audit log) with access gating and ManagedProject behavior.
  • Ensure project lists/switcher/search exclude the platform project and drop ?project= when it targets the platform project.
  • Refactor shared loaders/screens so root and project routes reuse the same implementations; update tests, docs, and generated OpenAPI/client code.
  • Address outstanding issue: a critical TypeScript type-only import usage in apps/console/src/features/users/load.ts needs correction.
File Description
packages/​go/​api/​oas_parameters_gen.go Updates generated Go client parameter types to support the exclude_platform query parameter for listing projects.
packages/​go/​api/​oas_client_gen.go Updates the generated Go client to encode and send the exclude_platform query parameter when listing projects.
e2e/​console/​src-real/​profile.spec.ts Updates real-instance e2e coverage to validate Profile navigation at /account.
e2e/​console/​src-platform/​platform-console.spec.ts Extends platform e2e coverage to verify runtime marking and that the platform project is not listed/selectable in the Console.
docs/​design/​decisions.md Adds/updates decision documentation to record the platform-project-as-root behavior and related Console rules.
apps/​console/​src/​runtime/​runtime.ts Extends runtime parsing/types to include platform_project_id and exposes a helper to read it safely.
apps/​console/​src/​runtime/​runtime.spec.ts Adds unit tests covering platform_project_id runtime parsing and accessors.
apps/​console/​src/​routes/​landing.spec.tsx Updates landing/empty-state route tests to reflect the new Settings and Profile navigation behavior.
apps/​console/​src/​routes/​auth-guard.spec.tsx Adjusts auth-guard tests for updated redirects and next targets after moving Profile to /account and restricting platform selection.
apps/​console/​src/​routes/​_authed/​users/​$userId.tsx Refactors the project user detail route to reuse the extracted user detail screen and link wiring.
apps/​console/​src/​routes/​_authed/​settings/​people/​people.spec.tsx Adds tests for the new root Settings → People pages and their access gating.
apps/​console/​src/​routes/​_authed/​settings/​people/​index.tsx Introduces the root Settings → People list route backed by platform access checks and managed-project context.
apps/​console/​src/​routes/​_authed/​settings/​people/​$userId.tsx Introduces the root Settings → People detail route using the shared user detail screen under platform scope.
apps/​console/​src/​routes/​_authed/​settings/​login-flows/​login-flows.spec.tsx Adds tests for root Settings → Login flows list/detail behavior and access gating.
apps/​console/​src/​routes/​_authed/​settings/​login-flows/​index.tsx Adds the root Settings → Login flows list route reusing the shared login flows screen/loader.
apps/​console/​src/​routes/​_authed/​settings/​login-flows/​$definitionId.tsx Adds the root Settings → Login flow definition detail route reusing the shared flow-definition screen/loader.
apps/​console/​src/​routes/​_authed/​settings/​index.tsx Replaces redirect-only Settings behavior with a landing that forwards to available Settings pages or shows an empty state.
apps/​console/​src/​routes/​_authed/​settings/​branding.tsx Adds the root Settings → Branding route that operates on the platform project while preserving the selected project.
apps/​console/​src/​routes/​_authed/​settings/​branding.spec.tsx Adds tests for root Branding behavior under managed platform-project context.
apps/​console/​src/​routes/​_authed/​settings/​authentication/​index.tsx Adds the root Settings → Authentication route reusing shared authentication screens and loaders.
apps/​console/​src/​routes/​_authed/​settings/​authentication/​idps/​$idpId.tsx Adds the root Settings → IdP detail route to view provider details under platform scope.
apps/​console/​src/​routes/​_authed/​settings/​authentication/​authentication.spec.tsx Adds tests for root Authentication list/detail routing and access behavior.
apps/​console/​src/​routes/​_authed/​settings/​audit-log/​route.tsx Adds the root Settings → Audit log route using shared events loading and drawer patterns under platform scope.
apps/​console/​src/​routes/​_authed/​settings/​audit-log/​index.tsx Wires the Audit log entry into the Settings route structure/navigation.
apps/​console/​src/​routes/​_authed/​settings/​audit-log/​$eventId.tsx Adds an Audit log event drawer route for viewing event details under root Settings.
apps/​console/​src/​routes/​_authed/​projects/​projects.spec.tsx Updates projects tests to ensure the platform project is excluded from listings and cannot be selected via URL/search.
apps/​console/​src/​routes/​_authed/​flow-definitions/​index.tsx Refactors the project login flows list route to use the shared loader and extracted screen component.
apps/​console/​src/​routes/​_authed/​flow-definitions/​$definitionId.tsx Refactors the project flow definition detail route to use the shared loader and extracted screen component.
apps/​console/​src/​routes/​_authed/​events/​$eventId.tsx Refactors the project event detail drawer route to use shared loading and standardized panel behavior.
apps/​console/​src/​routes/​_authed/​branding/​index.tsx Refactors the project Branding route to reuse the extracted branding loader and screen component.
apps/​console/​src/​routes/​_authed/​authentication/​index.tsx Refactors the project Authentication route to reuse shared loaders, validation, and extracted screen components.
apps/​console/​src/​routes/​_authed/​authentication/​idps/​$idpId.tsx Refactors the project IdP detail route to use the shared IdP loader and extracted detail screen component.
apps/​console/​src/​routes/​_authed/​account/​profile.spec.tsx Updates Profile route tests to validate the /account location and navigation behavior.
apps/​console/​src/​routes/​_authed/​account/​index.tsx Moves Profile into the /account route group and aligns the account page composition accordingly.
apps/​console/​src/​routes/​_authed.tsx Updates the authenticated route guard to drop ?project= when it references the platform project so it cannot be selected.
apps/​console/​src/​features/​users/​load.ts Refactors user loading/types to support explicit project contexts and shared detail typing (but currently contains a critical type-only import issue).
apps/​console/​src/​features/​users/​list.ts Adds users-search validation and list helpers to support reused screens across root and project contexts.
apps/​console/​src/​features/​users/​links.ts Centralizes link targets for user-related navigation so the same screens work for People (root) and Users (project).
apps/​console/​src/​features/​users/​components/​user-row-actions.tsx Adjusts user row actions to navigate using injected link targets rather than hard-coded routes.
apps/​console/​src/​features/​users/​components/​user-revision-sheet.tsx Updates the revision sheet to use configurable navigation targets for user detail flows.
apps/​console/​src/​features/​users/​components/​user-profile-card.tsx Makes schema/team references and related links configurable so root People can show text where pages are hidden.
apps/​console/​src/​features/​users/​components/​user-detail-screen.tsx Extracts a reusable user detail screen that can render in both project Users and root People contexts.
apps/​console/​src/​features/​users/​components/​user-cells.tsx Generalizes user table cells to support configurable links and root-safe rendering when certain pages are unavailable.
apps/​console/​src/​features/​users/​components/​user-authentication.tsx Adjusts authentication/IdP link generation so navigation works correctly in both root and project contexts.
apps/​console/​src/​features/​users/​components/​team-cell.tsx Allows team names to render without links in contexts where team pages are intentionally hidden at root.
apps/​console/​src/​features/​users/​components/​attribute-fields.tsx Fixes attribute overflow navigation so 'View all' routes correctly for both People and Users contexts.
apps/​console/​src/​features/​projects/​project-scope.ts Introduces platform-project selection detection and ManagedProject to act on platform scope without changing the selected project.
apps/​console/​src/​features/​projects/​my-projects.ts Ensures all Console project list/search calls set exclude_platform so the platform project never appears in user-facing lists.
apps/​console/​src/​features/​platform/​access.ts Adds platform-root access probing and a requirePlatformRoot guard used by root Settings pages.
apps/​console/​src/​features/​flow-definitions/​load.ts Adds shared loaders for flow definitions so root and project routes can reuse the same data fetching.
apps/​console/​src/​features/​flow-definitions/​components/​login-flows-screen.tsx Extracts a reusable login flows list screen with configurable links and platform-root messaging.
apps/​console/​src/​features/​flow-definitions/​components/​flow-definition-screen.tsx Extracts a reusable flow definition detail screen with root-safe linking behavior.
apps/​console/​src/​features/​events/​load.ts Adds shared event list/detail loaders so Audit log (root) and Events (project) share data fetching.
apps/​console/​src/​features/​events/​components/​event-panel.tsx Generalizes the event drawer/panel to support configurable navigation and consistent error presentation.
apps/​console/​src/​features/​events/​api.ts Exports shared event paging/types used by the extracted event loaders/screens.
apps/​console/​src/​features/​branding/​load.ts Adds a shared branding loader so both root and project branding routes use the same fetching logic.
apps/​console/​src/​features/​branding/​components/​branding-screen.tsx Extracts a reusable branding screen component used by both root Settings and project routes.
apps/​console/​src/​features/​authentication/​model.ts Centralizes authentication search model/validation shared across root and project authentication routes.
apps/​console/​src/​features/​authentication/​load.ts Adds shared authentication and IdP-detail loaders reused by root Settings and project routes.
apps/​console/​src/​features/​authentication/​components/​idp-detail-screen.tsx Extracts a reusable IdP detail screen with configurable 'used by' navigation targets.
apps/​console/​src/​features/​authentication/​components/​authentication-tables.tsx Makes IdP row navigation configurable so tables route to root or project detail pages appropriately.
apps/​console/​src/​features/​authentication/​components/​authentication-screen.tsx Extracts a reusable authentication screen so root and project routes share the same UI implementation.
apps/​console/​src/​app-shell/​user-menu.tsx Updates the user/account menu to link Profile to /account instead of Settings.
apps/​console/​src/​app-shell/​use-nav-items.ts Updates navigation item generation to conditionally show platform-root pages and omit empty Settings rows.
apps/​console/​src/​app-shell/​search.tsx Updates search result labeling and routing so platform-project hits appear as root Settings entries and Profile appears under Account.
apps/​console/​src/​app-shell/​boundaries.tsx Adjusts navigation boundary handling to account for the new Settings-root routes and hidden resources at root scope.
apps/​console/​src/​app-shell/​app-shell.tsx Updates shell composition so /account is treated as an account view and Settings list omission logic works with root pages.
apps/​console/​src/​addon/​screens.spec.tsx Updates add-on screen tests to reflect the Settings list changes after moving Profile to /account.
apps/​console/​README.md Updates Console documentation to describe platform root behavior, Settings layout, and the /account Profile route.
apps/​console/​docs/​styling.md Updates styling/docs references to match the refactored screen/component locations.
apps/​console/​docs/​adrs/​0004-console-deployment-modes.md Updates ADR documentation to reflect the platform root behavior and runtime field usage.
apps/​console/​AGENTS.md Adds agent/dev rules documenting getPlatformProjectId() usage and the requirement to apply exclude_platform on project lists.
apps/​api/​internal/​service/​project.go Implements paging-safe exclusion filtering so exclude_platform can be applied alongside auth and search constraints.
apps/​api/​internal/​domain/​project.go Adds a helper to identify the reserved platform project ID distinct from pinned/ordinary projects.
apps/​api/​internal/​domain/​project_test.go Adds tests verifying reserved platform project identification behavior.
apps/​api/​internal/​api/​project.go Threads the exclude_platform parameter through API handling into the service layer using the reserved platform project marker.
apps/​api/​internal/​api/​integration_test/​my_projects_test.go Adds integration coverage ensuring exclude_platform works and pinned ordinary projects remain unaffected.
apps/​api/​internal/​api/​generated/​oas_unimplemented_gen.go Regenerates server stubs to reflect the updated OpenAPI contract and parameters.
apps/​api/​internal/​api/​generated/​oas_server_gen.go Regenerates server interface/types to include the new exclude_platform parameter plumbing.
apps/​api/​internal/​api/​generated/​oas_parameters_gen.go Regenerates parameter decoding/wiring to support exclude_platform on the relevant endpoint.
apps/​api/​internal/​api/​generated/​oas_handlers_gen.go Regenerates handler wiring to pass through the new exclude_platform parameter.
apps/​api/​cmd/​server/​console_runtime.go Adds platform_project_id to the console runtime document and sets it only for the reserved platform project sign-in.
apps/​api/​cmd/​server/​console_runtime_test.go Adds tests ensuring the runtime only marks the reserved platform project with platform_project_id.
apps/​api/​api/​openapi/​endpoints/​users/​me/​projects/​methods.yaml Extends the OpenAPI source for GET /users/me/projects with the exclude_platform query parameter and documentation.
apps/​api/​api/​openapi/​bundled/​openapi.json Updates the bundled OpenAPI output to include the new runtime/API fields and exclude_platform parameter.
.changeset/​console-platform-root.md Adds a changeset documenting the Console UX shift (platform root + Profile move) and the new API behavior.

Review effort: Balanced

Comment thread apps/console/src/features/users/load.ts Outdated
import { useSearchedLoad } from "@/hooks/use-searched-load";

import { columnsForUsers, fetchUsers } from "./api";
import { columnsForUsers, type fetchUserDetail, fetchUsers } from "./api";
…t pages

An operator and an administrator of the platform project read it; a person
homed in it is answered 404 and the owner of a team in it 403, which the
console takes alike. The platform e2e lane now opens a root page as someone
without access and lands on an empty Settings, instead of asserting a row's
absence before the read had answered.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ject's screens from it

The platform project is the root and the projects its spine (D41). The root's
sidebar lists Projects, then the platform project's People, Authentication,
Login flows, Branding and Audit log for someone who can act on it, then
Settings, which keeps what the hosted cloud adds. It no longer lists a
project's screens, which named the root's pages twice.

The pages move from /settings to /platform. On one the pill says All projects
whichever project the URL keeps selected, so the bar never names a customer's
project above the console's own people or sign-in. They say 'the console'
where a project's say 'this project'. Someone who cannot act on the platform
project lands on Projects.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@fforootd fforootd changed the title feat(console): manage the platform project from Settings, never from the project switcher feat(console): manage the platform project at the root, never from the project switcher Nov 11, 2026
fforootd and others added 2 commits November 11, 2026 20:42
The platform project manages who may use the platform, so it has a
project's resources under a project's names, and no configuration of its
own to show.

- The root's sidebar is Projects, Users, Events and Settings. People
  becomes Users and Audit log becomes Events, at /platform/users and
  /platform/events.
- The root's Events is the project's Events screen: it opens the Events
  list in the sidebar, with the views and the filters, under a heading
  that leads back to Projects. The list, its search and its drawer are told
  where they live (EventsHome) and never leave it.
- Login flows, Authentication and Branding leave the root: nobody sets the
  platform project's configuration, so those pages showed the server's
  defaults. Their project screens are as main has them again.
- A user's linked identity provider reads as text at the root, which has
  no page for it. Search opens a platform user in the root's Users and
  leaves the platform project's teams and configuration out.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The platform project holds who may use the platform, never an
application's end users: each of its users can be granted any project,
gets a team at sign-up and can claim. One admitted origin would let an
application sign its end users in there. Console ADR 0004 §1 said it is
never the project a customer's application signs its users into, and
nothing held that.

- On the reserved project the gate refuses every write of configuration
  with the resource's permission_denied: origins, releases, deployments
  and their rollback, previews, variables, schemas, flow definitions,
  policies, branding and identity provider connections.
- The refusal comes after the caller's own access check and holds for any
  role there, a platform operator included. Reads are unchanged.
- Every such write already passed Handler.requireProjectAccess, so the
  refusal sits there, on resources marked as configuration. The start-up
  deploy calls the services and is unaffected.
- A project the deployment pins and the first-created fallback are not
  reserved and keep their configuration.
- A test over the gate contract's table fails until a resource the API
  gains is classed as configuration or as the platform project's own.

D41 is rewritten to the model, and Console ADR 0004 §1, root ADR 053 §9,
ADR 082 and ADR 084 are amended: ADR 084's `zitadel apply` on the platform
project is withdrawn.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@fforootd fforootd changed the title feat(console): manage the platform project at the root, never from the project switcher feat: put the platform project at the console's root and refuse configuration writes on it Nov 12, 2026
fforootd and others added 2 commits November 11, 2026 21:23
…s admins

The platform project is still a project, with a project's screens under
the same names. What differs is where they are and who sees them: they are
the root's, it is never a project to choose, and only someone who may act
on it sees them.

- The root's sidebar lists Projects, then the platform project's screens
  (Teams, Users, User schemas, Login flows, Branding, Deployments,
  Authentication, Events), then Settings, for someone who may act on it.
  Its Settings pages, General and Admins, head the root's Settings list.
- Those are the project screens themselves with the platform project
  selected: a row of the root's sets `?project=` to it. The copied pages
  under /platform are gone, and the Users and Events screens are as main
  has them.
- While it is the selection the chrome is the root's: the root's list, the
  pill says All projects, Events and Settings lead back to Projects, and
  the switcher's list and recents never hold it.
- The `_authed` guard lets that selection stand only for someone who may
  act on the project, and drops it for anyone else.
- Search lists the root's screens as Account beside the selected
  project's, and a hit in the platform project reads as the screen that
  lists it and opens there.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ration

The previous commit on this branch refused every configuration write on
the reserved platform project. Its owners need to configure it, so the
write is theirs instead of nobody's.

- On the reserved project, a configuration write that asks editor on any
  project also asks admin: origins, releases, deployments and their
  rollback, previews, variables, schemas, flow definitions, policies,
  branding and identity provider connections. A platform operator holds it.
- The admin check runs after the operation's own, so answers to anyone
  else are unchanged, and an editor is answered the resource's
  permission_denied.
- A project the deployment pins and the first-created fallback are not
  reserved and keep the relations every project asks.

D41, Console ADR 0004 §1, root ADR 053 §9 and ADR 082 say so; the amendment
that withdrew ADR 084's `zitadel apply` on the platform project is gone.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@fforootd fforootd changed the title feat: put the platform project at the console's root and refuse configuration writes on it feat: draw the platform project at the console's root and keep its configuration to its admins Nov 12, 2026
fforootd and others added 2 commits November 12, 2026 08:50
main recorded D41, the shared detail layout, on the day this branch recorded
the platform project as the root under the same number. This branch's
decision is D42 now, above main's in the log, and every reference to it
follows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…orm project

main gained registered applications (#2901). An application's clients sign
people in to its project, so on the reserved platform project one is
configuration, as an origin is: applicationAccess sets `configuration`, and
createApplication there asks for the admin role (D42, Console ADR 0004 §1,
ADR 082).

The gate contract's table still lists createApplication as not implemented,
so its rows did not show the new resource. The platform test now reads the
resources the gate declares from its source, so one without a row in the
table has to be classed too, and it holds createApplication with a row of
its own until the table has one.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
main replaced moon with Turborepo (#2881), so the branch's checks run as
turbo tasks from here. Nothing conflicts: the branch adds no task and names
none.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@fforootd
fforootd added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit abe0207 Nov 12, 2026
18 of 19 checks passed
@fforootd
fforootd deleted the claude/objective-swirles-478ef5 branch November 12, 2026 22:13
@github-project-automation github-project-automation Bot moved this from Inbox to Done in Engineering Kanban Nov 12, 2026
fforootd added a commit that referenced this pull request Nov 12, 2026
#3012 landed as a squash, and #3008 took decision D42.

- session.go, token.go, events-catalog.md and events-for-people.md keep
  this branch's version: main's is #3012's squash, which this branch
  already holds.
- The Events decision becomes D43, above main's D42.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — 19d1acdc Deployed Nov 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants