Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This branch has not been deployed
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.
Closes DOCS-1659
Problem
Nothing measures whether the Vault guide leads an agent to keep a credential safe. A database function that calls out with a key needs somewhere to keep it. Customers and agents put the key in the function body, a trigger, a migration file, or a database setting the platform refuses.
Evidence:
ALTER DATABASE ... SET app.*. Hosted refuses it with42501, and so does the local stack.get_secret(secret_name text).No existing eval covers Vault.
Sources reached: Linear, Slack, agent-skills issues, supabase/supabase issues. Not reached: Hex, Supacademy, troubleshooting guides.
Changes
Adds
build-docs-034-vault. An app signs CDN download links in the database. The seed fixes the function contract and keeps the key in.env. The prompt asks for three things: the key stays out of the repo and the database copies, app users never get it, and a changed key takes effect without a code change.Checks:
Expected signal: The guide shows
vault.create_secretin SQL but not where that SQL goes, so a migration that carries the key is the likely failure. The guide also does not show how a signed-in user's request reaches the decrypted view. A function that runs as the caller fails the link check.What part of the guide this tests:
Verification
pnpm exec biome check evals/docs/build-docs-034-vaultpasses.pnpm --filter @supabase-evals/framework typecheckpasses.pnpm eval:dry -- --suite docs --eval build-docs-034-vaultplans one pair oncodex-gpt-6-luna-no-skills.codex-gpt-6-luna-no-skillsin therun-evals-changedrun. All three passed all eight checks, including the guide read. No run put the key in a migration. A full-marks pass does not show the page carried the run, since a model that knows Vault produces the same result. Braintrust run.For new or changed evals (see Submitting evals for review):
run-evals-changedlabel or the Refresh eval results workflow (suite: regressionfor framework changes), and linked the Braintrust run here.