Skip to content

feat(docs): add an S3 authentication guide eval - #560

Draft
czenko wants to merge 1 commit into
mainfrom
docs/s3-authentication-guide-eval
Draft

czenko wants to merge 1 commit into
mainfrom
docs/s3-authentication-guide-eval

Conversation

@czenko

@czenko czenko commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Closes DOCS-1654

Problem

Nothing measures whether the S3 authentication guide leads an agent to the right credential in the right place. An S3 client reaches Storage with the project's S3 keys, which skip every access rule, or as a signed-in person, which keeps them. A desktop app that ships with the S3 keys lets anyone read everyone's files. A signed-in client built with the wrong key gets SignatureDoesNotMatch.

Evidence:

Confirming the claim: The ticket's claim, valid keys accepted and others refused, holds locally on the storage-api the pinned CLI starts. The S3 keys get full access. The per-person credential works only as stub, the legacy anon key and the user's JWT. The publishable key, the secret key and the service role key as the secret all get SignatureDoesNotMatch. The eval narrows the claim to which credential goes where.

No existing eval uses the S3 protocol. build-docs-008 and build-docs-023 cover storage policies and buckets through the REST API.

Sources reached: Linear, Slack, supabase/storage, supabase/supabase and agent-skills issues. Not reached: Hex, Supacademy.

Changes

Adds build-docs-038-storage-s3-authentication. A notes app has a desktop client that ships to customers and a nightly backup job on its own server, and both use the AWS S3 SDK. Each person may only see and change their own notes, even with a tampered desktop app. The backup job reads everything. The seed fixes the two client factories in STORAGE.md, a private bucket with no policies, and a desktop/.env that holds only the URL and the publishable key.

The scorer installs the seed's locked dependencies with npm ci, copies desktop/ alone to a fresh directory, and runs it with only its own .env. Then it probes over S3 as two signed-in people and as the backup job.

Checks:

  • The agent applied the migrations it wrote, and the project dependencies installed.
  • A signed-in user can list and read their own notes, upload a new note, and sync a note again.
  • A signed-in user cannot read or list another user's notes, and cannot change them.
  • The backup job reads every user's notes.
  • No file in the desktop app holds a full-access key from the project. This is a literal scan; the refusal checks catch a key reached another way.
  • The agent read the S3 authentication guide.

Expected signal: Over S3, every upload is an upsert. A first upload needs a read rule as well as an insert rule, and an overwrite also needs an update rule. The guide names no policies, so a solution built from it fails the sync check. An agent that uses the publishable key already in desktop/.env fails the own-notes control.

Pinned behavior: Refusing the publishable key is what the pinned storage-api does. When Storage accepts the new keys, that agent turns green with no docs change. The README says to read a change after a CLI upgrade that way.

What part of the guide this tests:

Guide section Tested How
S3 access keys: full access, server only Yes The backup check, the refusal checks, the key scan
Session token: stub, anon key, user JWT Yes The desktop controls
Publishable key not supported Indirectly The seeded desktop/.env
Local region and endpoint Implicitly A wrong value fails the controls
~/.aws/credentials, direct storage hostname, self-hosted tenant No Hosted or out of reach

Verification

  • pnpm exec biome check evals/docs/build-docs-038-storage-s3-authentication passes.
  • pnpm --filter @supabase-evals/framework typecheck passes.
  • pnpm eval:dry -- --suite docs --eval build-docs-038-storage-s3-authentication plans one pair on codex-gpt-6-luna-no-skills.
  • Baseline: three runs of codex-gpt-6-luna-no-skills in the run-evals-changed run. All three passed all ten checks, including the guide read and the install. A full-marks pass does not show the page carried the run. Braintrust run.

For new or changed evals (see Submitting evals for review):

  • Ran the eval locally, and it completes without framework errors.
  • Ran it in CI with the run-evals-changed label or the Refresh eval results workflow (suite: regression for framework changes), and linked the Braintrust run here.

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
evals Ignored Ignored Preview Nov 25, 2026 8:20pm UTC

Request Review

@czenko czenko added the run-evals-changed Add to a PR to refresh only the benchmark evals that have had changes label Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-evals-changed Add to a PR to refresh only the benchmark evals that have had changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant