m1guelpf / m1guelpf/ensemble

Sweep: Add support for RLS (Postgres)

Open
#7 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

sweep
Dominant language
Rust
Stars
32
Forks
2
PR merge metrics
No merged PRs in 30d

Description

When connecting to a Postgres database with RLS (like Supabase), Ensemble should let you assume a role for the duration of a session (defined as a tokio thread).

Checklist

- [X] Modify `ensemble/src/connection.rs` ✓ https://github.com/m1guelpf/ensemble/commit/bc87ea10d2a602ba47726b54c3dce42c1e9d5413 [Edit](https://github.com/m1guelpf/ensemble/edit/sweep/postgres-rls-support/ensemble/src/connection.rs)
- [X] Running GitHub Actions for `ensemble/src/connection.rs` ✓ [Edit](https://github.com/m1guelpf/ensemble/edit/sweep/postgres-rls-support/ensemble/src/connection.rs)
- [X] Modify `ensemble/src/lib.rs` ✓ https://github.com/m1guelpf/ensemble/commit/22e0ad118962845ea55048a3a252a156e6f8f7bc [Edit](https://github.com/m1guelpf/ensemble/edit/sweep/postgres-rls-support/ensemble/src/lib.rs)
- [X] Running GitHub Actions for `ensemble/src/lib.rs` ✓ [Edit](https://github.com/m1guelpf/ensemble/edit/sweep/postgres-rls-support/ensemble/src/lib.rs)
- [X] Create `ensemble/src/tests/connection_tests.rs` ✓ https://github.com/m1guelpf/ensemble/commit/e48ee80d9588899de8b3941369f40fe1e00720e6 [Edit](https://github.com/m1guelpf/ensemble/edit/sweep/postgres-rls-support/ensemble/src/tests/connection_tests.rs)
- [X] Running GitHub Actions for `ensemble/src/tests/connection_tests.rs` ✓ [Edit](https://github.com/m1guelpf/ensemble/edit/sweep/postgres-rls-support/ensemble/src/tests/connection_tests.rs)

![Flowchart](https://raw.githubusercontent.com/m1guelpf/ensemble/sweep/assets/04c31e891ce64308f5c18e29a91c606f6ad8a1eb2ad97879a4f8f0e038f16436_7_flowchart.svg)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review ensemble/src/connection.rs and ensemble/src/lib.rs, then inspect ensemble/src/tests/connection_tests.rs and the linked commits on the sweep branch. The checklist marks all requested files and GitHub Actions checks complete, so confirm whether any remaining review or follow-up is needed before treating the RLS session-role support as done.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, rust
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.