Document Claimable Neon expirations and neon deploy for Auth - #5646
Merged
Conversation
auth.md and the reference docs mixed project lifetime with claim-code TTL, and did not say Auth and the Data API can be added after claim.
andrelandgraf
requested review from
danieltprice,
philip and
ruf-io
as code owners
August 26, 2026 21:33
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The docs page still said that token was poll-only. Pin the hosted neon skill to the agent-skills commit so check:skills-sync passes before that PR lands on main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Agents read
https://neon.com/auth.md, then mint a claim link. Humans read/docs/reference/claimable-neon. Both described a 72-hour unclaimed project and a claim ceremony. Neither said that the claim code is a second, much shorter clock, or that Auth and the Data API can be added after create — including on the unclaimed project.A 15-minute code looks like the project died. A Postgres-only create looks like Auth cannot be turned on.
Diagnosis
Two independent fields:
project.expires_at— unclaimed project TTL, 72 hours todayexpires_in— claim code TTL, 900 seconds todayOpening
verification_uri_completedoes not freeze access. Continuing to Neon starts a transfer, starts a newexpires_inwindow, and revokes the project key, access tokens, and database password. POST/v1/projects/{id}/claimagain if the unused code expires, or if that transfer window expires before the human accepts. Re-issue only whileproject.expires_atis still in the future.claim_in_progressmeans the transfer window is still live.Auth and the Data API can be requested at registration. They can also be enabled later with
neon.tsandneon deployon the unclaimed project. After claim, the same config talks to Neon directly. An external JWKS is only accepted after claim.neon checkoutdoes not apply that to an existing branch.After the human continues to Neon, the replacement access token has no project scopes. It authorizes claim-status polling and a replacement claim code if that transfer window expires.
The user-facing interface
https://neon.com/auth.md(this PR'spublic/auth.md):The unclaimed project expires at
project.expires_at(72 hours today). A claim code expires inexpires_inseconds (900 today). If the unused code expires, POST this endpoint again. Each POST cancels the previous unused code and returns a new one.Add Auth or the Data API before or after claim:
Data API with the default auth provider requires Auth. An external JWKS is not accepted on the unclaimed project.
The human docs page repeats that HTTP and the same
neon.tssnippet.claim_in_progressnow means: poll status; mint a new code after the transfer window expires.Existing create-time Auth and Data API requests do not change.
Also in here
Hosted skill copies under
public/docs/ai/skills/neon/so the neon.com skill URL matches agent-skills#99.config/skills.jsonpinsneonto5460c18205b8f7a5bb3bafa173b82e5f53d7f605socheck:skills-synccompares that commit instead ofmain. After #99 lands, flip the pin back tomain.Skill discovery digests in
public/.well-known/agent-skills/index.json(and the/docs/copy) match the updatedSKILL.mdbytes.Verification
GITHUB_TOKEN="$(gh auth token)" npm run check:skills-sync -- --skill neonPassed against
neondatabase/agent-skills@5460c182. Readpublic/auth.mdagainst the docs page: both allow POST/claimagain after the transfer window expires, and both documentneon deployon the unclaimed project.No new tests. Preview after merge:
https://neon.com/auth.md,https://neon.com/docs/reference/claimable-neon,https://neon.com/docs/ai/skills/neon/references/claimable-neon.md.For your attention
config/skills.jsonneon.refback tomain.