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

@BigSimmo BigSimmo commented Jul 5, 2026

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 Web Open in Cursor 

BigSimmo added 2 commits July 5, 2026 20:12
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

supabase Bot commented Jul 5, 2026

Copy link
Copy Markdown

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

Deployments Status Updated
Database Sun, 05 Jul 2026 12:27:24 UTC
Services Sun, 05 Jul 2026 12:27:24 UTC
APIs Sun, 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.

Tasks Status Updated
Configurations Sun, 05 Jul 2026 12:27:26 UTC
Migrations Sun, 05 Jul 2026 12:27:28 UTC
Seeding Sun, 05 Jul 2026 12:27:29 UTC
Edge Functions Sun, 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

BigSimmo commented Jul 5, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #269 (consolidated platform fixes branch).

@BigSimmo BigSimmo closed this Jul 5, 2026
Sign up for free to 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