Repository navigation
docs: amend and accept ADR 077 on the /api/v1 prefix - #2356
Conversation
Checking the proposal against the code showed that more moves than the mount and the client base URL. The project secret, the SDKs' session-cookie handling, the dev proxies the CLI writes and the production proxies the docs describe all decide by exact path; so do the session no-store rule and the audit's route fallback in the server. The amendment keeps the probes in the spec and at the root for good, gives the root alias a Deprecation header and a measure of its traffic, has every path check accept both spellings until 1.0.0 (with a doctor --fix migration for scaffolded proxies), and orders the rollout so every mix of versions keeps working. The design docs say the prefix is accepted but not shipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
…mpact-506209 No conflicts. Brings the branch up to date so the PRs stacked on it show only their own changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hosted cloud's functions check the sign-in widget's flow writes for bots by path (ADR 084), so section 5 lists them with the checks that accept both spellings. The version check a separate PR proposed for every CLI command is not part of this rollout; section 5 names the checks zitadel start and zitadel setup already make. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ath-gates Stacks this PR on #2356 (ADR 077's amendment), so the stack's top tests the whole change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stacks this PR on #2358 instead of the merge branch of #2357 and #2358, and brings in main through them. Conflicts: - ADR 077, its README row and the design docs keep this PR's "Implemented" and "shipped" wording, with #2356's new section 5 text and main's other edits to the resource map. - The console's Vite config is main's, restructured for the cloud's add-on, with this PR's proxy for /api/v1; the test base moved to vitest.config.ts, which now names the origin. The console's specs that main added or changed call /api/v1, as the rest do. - sdk-core's revokeSession (ADR 083, main) asks for the CSRF token and revokes under the prefix; its tests and the six server SDKs' tests take main's cookie names and this PR's prefixed URLs. - The scaffold guidance, sdk-next's docs, the CLI's SKILL.md, the console README and src/api/zitadel.ts take main's text with this PR's /api/v1 paths. The CLI's local-server tests and console-real's response match take main's cases on the prefixed paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🟢 Approval recommended
The documentation-only change has no outstanding review comments or unresolved defects, as the status consistency, cross-references, dates, and changeset determination were all checked without any issues raised.
No open issues 🎉
What changed in this PR
This PR amends and accepts ADR 077, which moves the resource API from the root to the /api/v1/ prefix. It's the bottom of a four-PR stack (#2356→#2357→#2358→#2359); this step is documentation-only and flips the ADR from Proposed to Accepted after reconciling the proposal with the actual code, without shipping any behavior change. The amendment expands §2 (probes stay spec operations and answer under both the root and the prefix), §4 (the root alias carries Deprecation/Link headers and its traffic is measured), and §5 (the by-path checks, client/server version ordering, and rollout sequencing), and propagates the "accepted but not shipped" state to the design docs.
Changes:
- Updates ADR 077's status to Accepted and rewrites §2/§4/§5, Risks, and Documentation impact to match the real implementation plan.
- Flips the ADR index row for 077 to Accepted with an expanded summary.
- Updates the glossary, resource-map, and API design README from RECOMMENDED/Proposed to LOCKED/Accepted ("not shipped yet"), and drops the login UI from the root-path lists.
| File | Description |
|---|---|
docs/adrs/077-api-path-prefix.md |
Core amendment: status → Accepted, revised §2 (probes), §4 (deprecation headers/measurement), §5 (by-path checks, versions, rollout), Risks, and Documentation impact. |
docs/adrs/README.md |
Index row for ADR 077 updated to Accepted with an expanded summary; status matches the ADR body for the index checker. |
docs/design/glossary.md |
§7 and the renames row changed from RECOMMENDED/Proposed to LOCKED/Accepted, "not shipped yet"; login UI dropped from root list. |
docs/design/api/resource-map.md |
"How to read" note updated to ADR 077 Accepted, prefix not yet implemented. |
docs/design/api/README.md |
Thesis updated to Accepted framing and drops the login UI from the root-path list. |
Review effort: Balanced
…-catalog-mock Main serves the API under /api/v1 and routes only the server's own paths to it in the cloud (#2356 to #2359, #2566): - buildHTTPMux takes main's api.Servers and keeps this branch's cron triggers; a job no trigger runs leaves its path to the root alias. - vercel.json and the cloud runbook route /cron/usage to the server, as /cron/events-retention, or the usage cron would reach the website. - The functions' and the console's usage specs answer under /api/v1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Context
/api/v1(feat: serve the API under /api/v1 and deprecate the root paths #2358), and every client moves to the prefix (feat!: call the API under /api/v1 #2359), whose CI and preview test the whole change.Summary
Checking the proposal against the code showed that more moves than the mount and the client base URL. This amends ADR 077 before accepting it:
/livezand/readyzstay operations of the spec, which the console reads through the client, so they answer under/api/v1too; the root stays their home for good./healthzis gone since fix!: make /readyz check the database and remove /healthz #2308. The protocol bullet cites ADR 081's/oauth/.Deprecation(the date the prefix shipped) andLink rel="deprecation"; probes and 405s never do; noSunsetuntil GA has a date. GA removes the alias once the measured root-path traffic has died down./api/v1drops it.zitadel doctor --fixrewrites a dev proxy an earlier CLI wrote; a hand-written proxy must be changed before its app upgrades.zitadel startandzitadel setupcheck the version of a local server they find running; a client that getsreq.not_foundsays the server may predate the prefix.Validation
node scripts/check-adrs-index.mjs: ok (82 records).node scripts/check-pr-title.mjs --title "docs: amend and accept ADR 077 on the /api/v1 prefix": ok.Release notes / changeset
Notes
mainis merged in once (no conflicts) so the PRs stacked on this one show only their own changes. The second commit names the cloud's bot check (ADR 084) in §5 and the version checkszitadel startandzitadel setupalready make, in place of a check for every CLI command that this rollout no longer includes.docs/design/api/conventions.mdis left as it is: its text is still accurate, and refactor: move the Go server module into apps/api #2271 edits it.cmd/server/server.go); they move with the Go module stack (refactor: move the Go server module into apps/api #2271–build: serve Go vanity-import metadata for go.zitadel.com from the cloud #2274) or with the server PR's port onto it.🤖 Generated with Claude Code