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-1663
Problem
Nothing measures whether the multi-factor authentication guide leads an agent to rules that lock data behind a second step. The page's opt-in rule reads
auth.mfa_factorsinside a policy. On a local stack,authenticatedcannot read that table, so the rule refuses every request with42501. Customers who copy it lock everyone out, and the ones who work around it often let a session that skipped the code through.Evidence:
documentation: "MFA Policy from documentation dont work", with42501onmfa_factors.config.tomlhas authenticator codes off. The TOTP page says codes are on for every project.auth.mfa_factorsfor a custom flow.aal1token still reaches data for a user with a code.The ticket's claim was "a TOTP factor enrolls and verifies, and a policy requires aal2". That is the page's "enforce for all" case. The evidence and the confirmed gap are in the opt-in case, so the eval measures that.
No existing eval covers MFA.
deploy-nav-004-require-two-factoris about dashboard team 2FA.Sources reached: Linear, Slack, supabase/supabase, supabase/auth and supabase/cli issues, agent-skills issues. Not reached: Hex, Supacademy.
Changes
Adds
build-docs-039-auth-mfa. A journaling app lets people turn on an authenticator-app code. Once it is on, their rows stay locked after a password sign-in until they type a code, on every device. People without a code keep using the app with a password. The seed has two tables, each with a permissive owner policy, and the CLI defaultconfig.toml.The scorer restarts the stack and checks whether the agent's config lets a person set up a code. If it does not, the scorer turns codes on and restarts, so one config line costs one check. It then signs people up, sets up and types codes itself, and probes both tables at each level.
Checks:
Expected signal: The page's opt-in rule as written fails the no-code checks, the halfway check and the typed-code checks, because every request gets
42501. A permissive rule fails the skipped-code refusals.What part of the guide this tests:
Verification
pnpm exec biome check evals/docs/build-docs-039-auth-mfapasses.pnpm --filter @supabase-evals/framework typecheckpasses.pnpm eval:dry -- --suite docs --eval build-docs-039-auth-mfaplans one pair oncodex-gpt-6-luna-no-skills.codex-gpt-6-luna-no-skillsin therun-evals-changedrun. All three passed all twelve checks, including the guide read. A full-marks pass does not show the page carried the run, since a model that knows restrictive policies 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.