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

supabase cdc is broken #20113

Open
pkit opened this issue Jan 12, 2025 · 0 comments
Open

supabase cdc is broken #20113

pkit opened this issue Jan 12, 2025 · 0 comments
Labels
type/bug Something isn't working
Milestone

Comments

@pkit
Copy link

pkit commented Jan 12, 2025

Describe the bug

Supabase CDC is currently unusable

  • IPV6 resolver is not supported
  • IPV4 connection fails because of a sloppy permission check

Error message/log

INVALID_ARGUMENT: Postgres user must have select privilege on table 'public.test1' (SQLSTATE XX000)

To Reproduce

IPV6 connection

CREATE SOURCE IF NOT EXISTS supabase_test WITH (
   connector='postgres-cdc',
   hostname='db.blablabla.supabase.co',
   port='5432',
   username='postgres',
   password='*********',
   database.name='postgres',
   slot.name='test_slot',
   publication.name='test_pub'
);

Fails with:

Internal error: The connection attempt failed. (SQLSTATE XX000)

because IPV6-only DNS resolve is needed.

IPV4 connection

CREATE SOURCE IF NOT EXISTS supabase_test WITH (
   connector='postgres-cdc',
   hostname='aws-0-us-east-2.pooler.supabase.com',
   port='5432',
   username='postgres.blablaba',
   password='********',
   database.name='postgres',
   slot.name='test_slot',
   publication.name='test_pub'
);

Fails with:

INVALID_ARGUMENT: Postgres user must have select privilege on table 'public.test1' (SQLSTATE XX000)

because it uses the username from the connector instead of current_user

Expected behavior

Should work

How did you deploy RisingWave?

it's a cloud version

The version of RisingWave

cloud

Additional context

No response

@pkit pkit added the type/bug Something isn't working label Jan 12, 2025
@github-actions github-actions bot added this to the release-2.3 milestone Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant