Question
Is it safe to paste my database URL into Cursor's chat?
Cursor asked for the connection string to 'help debug'.
What I’ve tried
Did not paste it yet. Searched here and in the docs, found nothing that matched my case.
2 answers
If you want Cursor to actually query the database while debugging, give it its own read-only role instead of your password:
create role cursor_ro login password '...' ;
grant usage on schema public to cursor_ro;
grant select on all tables in schema public to cursor_ro;Use it against a local copy or a staging project, never production. And drop the role when you're done.
A separate login for the AI. Obvious once you say it. rosa_m