Skip to content

test: deep public access and production scope checks - #267

Closed
BigSimmo wants to merge 3 commits into
cursor/content-access-review-a385from
cursor/deep-access-testing-d970
Closed

test: deep public access and production scope checks#267
BigSimmo wants to merge 3 commits into
cursor/content-access-review-a385from
cursor/deep-access-testing-d970

Conversation

@BigSimmo

Copy link
Copy Markdown
Owner

Adds tests/public-access-deep.test.ts to codify additional access-control checks discovered during the content-access review:

  • Operator-only routes (/api/jobs, ingestion, bulk delete, summarize, eval capture) reject unauthenticated callers with 401
  • /api/health?deep=1 never serializes secret env values
  • Production anonymous global retrieval fails closed when requireOwnerScope is invoked without an owner (documents a known gap between public API routes and RAG owner scoping)
  • Test-runtime retrieval remains permissive under Vitest, matching existing route-test behavior

Verification: npm run test -- tests/public-access-deep.test.ts and full npm run verify:cheap (1065 tests) passed.

Open in WebOpen in Cursor

Create missing retrieval-support indexes (trgm, composite btree, partial
miss log) that were absent or only present under legacy names on live.
Update search_schema_health() to accept verified functional equivalents
during rollout. Set search_path for pg_trgm gin_trgm_ops in extensions.
Verified on linked project: search_schema_health() ok=true, missing=[].
@supabase

supabaseBot commented Jul 5, 2026

Copy link
Copy Markdown

Updates to Preview Branch (cursor/deep-access-testing-d970) ↗︎

DeploymentsStatusUpdated
DatabaseSun, 05 Jul 2026 12:27:24 UTC
ServicesSun, 05 Jul 2026 12:27:24 UTC
APIsSun, 05 Jul 2026 12:27:24 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

TasksStatusUpdated
ConfigurationsSun, 05 Jul 2026 12:27:26 UTC
MigrationsSun, 05 Jul 2026 12:27:28 UTC
SeedingSun, 05 Jul 2026 12:27:29 UTC
Edge FunctionsSun, 05 Jul 2026 12:27:30 UTC

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

…board
Delete post-extraction dead code left in the monolith and trim unused imports. Also fix minor lint issues in favourites-hub, visual-evidence, and services-navigator.
@BigSimmo

Copy link
Copy Markdown
OwnerAuthor

Superseded by #269 (consolidated platform fixes branch).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@BigSimmo