question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Realtime Row Level security broken for database-wide subscriptions on PG12

See original GitHub issue

Bug report

Describe the bug

Affects

  • PG12
  • PG14 (although these will only be new use-cases, so nobody should be experiencing the bug)

Unaffected

  • PG13 users. If you are experiencing problems with PG13, it is probably because your Policies are not allowing access (whereas previously Policies weren’t applied). This is intended behaviour - your database security is working properly

Description

We’re discovered an issue as a result of our Row-Level Security Realtime updates for that affects any database-wide publications. (eg CREATE PUBLICATION supabase_realtime FOR ALL TABLES;)

To Reproduce

Realtime subscription may have stopped you are on PG12 and you have a Publication in your database set up like

Screenshot 2021-12-01 at 7 49 05 PM

Workaround

Disable the FULL publication (red) and enable each table individually (green) Screenshot 2021-12-01 at 7 50 51 PM

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:43 (25 by maintainers)

github_iconTop GitHub Comments

7reactions
w3b6x9commented, Dec 3, 2021

UPDATE

We’re currently rolling out the fixes to all projects, and some projects may have already been fixed depending on your project’s region.

6reactions
w3b6x9commented, Dec 5, 2021

UPDATE

We have rolled out the fixes to all projects. If you’re still experiencing Realtime issues then please drop a comment here and/or email support@supabase.io with your project ref and we’ll investigate. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Row Level Security - Supabase
Secure your data using Postgres Row Level Security. ... REALTIME SUBSCRIPTIONS * Realtime enables listening to any table in your public schema.
Read more >
Row level Security not working right now?
Solved: Hi, could anyone confirm that the RLS is not working at the moment? the RLS setting I set up worked before. But...
Read more >
Row-Level Security and Object-Level Security together in ...
Struggling with using Row - Level Security (RLS) together with Object-Level Security (OLS) in Power BI? You think it can't be done?
Read more >
QlikView row level security is not working - Qlik Community
QlikWorld 2023, a live, in-person thrill ride. Save $400 before Dec 31st: REGISTER NOW!
Read more >
Row Level Security not working in Power BI with Groups
The typical "gotcha" is that the Power BI App Workspace (group) settings are left to the default: Members can edit Power BI content....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found