Skip to content

feat: add ReplicationPlugin for inbound data synchronization#135

Open
Myc911 wants to merge 2 commits intoouterbase:mainfrom
Myc911:feat/replication-plugin
Open

feat: add ReplicationPlugin for inbound data synchronization#135
Myc911 wants to merge 2 commits intoouterbase:mainfrom
Myc911:feat/replication-plugin

Conversation

@Myc911
Copy link
Copy Markdown

@Myc911 Myc911 commented Apr 23, 2026

Summary

This PR implements the new ReplicationPlugin (#72) and provides critical security fixes for the core RLS (Row Level Security) system (#71).

Key Features & Improvements

  • Replication Plugin: Fully implemented the StarbasePlugin interface to handle data synchronization from external sources (Postgres, MySQL, etc.) into StarbaseDB.
  • RLS Security Fixes (Improve test coverage with Vitest #71):
    • Fixed table matching to correctly handle schema-qualified names (e.g., public.users).
    • Improved subquery recursion to ensure RLS policies are applied to nested SELECT statements.
    • Enforced a strict security model where unauthorized actions (DELETE/UPDATE/INSERT) are denied by default if no matching policy exists.
  • Full Test Coverage: Added comprehensive Vitest unit tests for both the Replication Plugin and the RLS system. All tests are passing.

Verify

  • Replication Plugin implemented in plugins/replication/index.ts.
  • RLS fixes verified in src/rls/index.ts and src/rls/index.test.ts.

/claim #72
/claim #71

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant