Skip to content

fix(memory): harden Supabase vector RPC - #1390

Merged
EmersonBraun merged 1 commit into
mainfrom
codex/harden-supabase-vector-rpc
Aug 5, 2026
Merged

fix(memory): harden Supabase vector RPC#1390
EmersonBraun merged 1 commit into
mainfrom
codex/harden-supabase-vector-rpc

Conversation

@EmersonBraun

Copy link
Copy Markdown
Member

What changed

  • replace the generic arbitrary-SQL Supabase RPC path with direct PostgREST upsert and delete operations
  • restrict vector search to a purpose-specific, configurable RPC (match_agentskit_vectors by default)
  • document a bounded security invoker SQL function with explicit grants and least-privilege guidance
  • add coverage for the direct operations, configurable search function, filtering, ordering, thresholds and error handling
  • add a patch Changeset for @agentskit/memory

Why

The previous integration documented and invoked a generic SQL-execution RPC. That made the database boundary broader than the vector-memory adapter required. This change narrows the adapter to the three operations it actually needs and keeps database authorization under the application's existing Supabase role and RLS configuration.

Validation

  • pnpm --filter @agentskit/core build
  • pnpm --filter @agentskit/memory test
  • pnpm --filter @agentskit/memory lint
  • pnpm --filter @agentskit/memory build
  • pnpm docs:bridge:gate
  • git diff --check
  • exact-diff credential scan

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Lighthouse

URL Performance Accessibility Best practices SEO
http://127.0.0.1:3000/ 41 92 96 100
http://127.0.0.1:3000/docs 75 100 96 100
http://127.0.0.1:3000/docs/get-started/getting-started/quickstart 71 96 96 100
http://127.0.0.1:3000/stack 91 100 96 100
http://127.0.0.1:3000/showcase 92 100 96 100

Run by .github/workflows/lighthouse.yml.

@EmersonBraun
EmersonBraun merged commit e47f30c into main Aug 5, 2026
18 of 20 checks passed
@EmersonBraun
EmersonBraun deleted the codex/harden-supabase-vector-rpc branch August 5, 2026 01:30
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