Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: user impersonation #18945

Merged
merged 41 commits into from Dec 4, 2023
Merged

feat: user impersonation #18945

merged 41 commits into from Dec 4, 2023

Conversation

alaister
Copy link
Member

@alaister alaister commented Nov 14, 2023

What kind of change does this PR introduce?

feature

Copy link

vercel bot commented Nov 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
database-new ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 4:45am
db-new ❌ Failed (Inspect) Dec 4, 2023 4:45am
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 4:45am
studio-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 4:45am
zone-www-dot-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 4:45am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
studio ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2023 4:45am
studio-self-hosted ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2023 4:45am
ui-storybook ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2023 4:45am

Copy link

supabase bot commented Nov 14, 2023

Updates to Preview Branch (feat/user-impersonation) ↗︎

Deployments Status Updated
Database Fri, 01 Dec 2023 10:15:11 GMT
Services Fri, 01 Dec 2023 10:15:11 GMT
APIs Fri, 01 Dec 2023 10:15:11 GMT

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
Migrations Fri, 01 Dec 2023 10:15:11 GMT
Seeding Fri, 01 Dec 2023 10:15:11 GMT

⚠️ Warning — Preview branch version (15.1.0.133) does not match production database version (15.1.0.33).


Connecting to this Preview Branch
URL
Database postgres://postgres:[PASSWORD]@db.ohhokvxboamchdhwpgev.supabase.co:5432/postgres
REST API https://ohhokvxboamchdhwpgev.supabase.co/rest/v1 ↗︎
GraphQL https://ohhokvxboamchdhwpgev.supabase.co/graphql/v1 ↗︎

Branching Preview Branches by Supabase.
Learn more about Supabase for Git ↗︎

alaister and others added 9 commits November 30, 2023 17:31
…erImpersonationSelector.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
…ons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
…ons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
…ons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
…ons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
…ons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
…erImpersonationSelector.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
@alaister alaister enabled auto-merge (squash) December 4, 2023 04:32
@alaister alaister merged commit e6006b9 into master Dec 4, 2023
14 checks passed
@alaister alaister deleted the feat/user-impersonation branch December 4, 2023 04:45
encima pushed a commit to faizanraso/supabase that referenced this pull request Jan 8, 2024
* feat: user impersonation

* refactor

* add anon impersonation

* add user impersonation to graphiql

* thanks Ivan for this one

* add radio buttons

* progress

* working user selector

* adds loading and error states to user selector

* nicer popover button

* default graphiql to use service role key

* styling updates

* fix padding in graphiql

* add service role warning to graphiql

* add user impersonation to realtime inspector

* add feature flag

* use Alert_Shadcn_ instead of old Alert

* Update apps/studio/lib/role-impersonation.ts

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* update title

* Update apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* add constant padding at the bottom of user selector

* update graphiql buttons font size

* make rls warning dismissable

* use text-foreground on rls warning title

* fix no results while impersonating a role

* fix error line number when impersonating a role

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
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.

None yet

4 participants