Neon Authorize Anonymous role
don't get angry if the question is dumb, but I'm trying to setup Row-Level Security (RLS) on my DB,
I saw that neon auth already supports that with clerk (auth provider), I saw the neon exposes anonymous role, if I'm not mistaken it's for the guests,
when I request the connection string from the neon dashboard it will not have a password, and if I use it, it will give an error about missing password (because I should be either provide a password or use authToken),
can someone point me to an example how to use this anonymous role, I didn't find many useful examples in neon
6 Replies
rare-sapphire•12mo ago
cc @David Gomes
don't get angry if the question is dumbThere are no dumb questions. + we're happy that you're reaching out 😄
fascinating-indigo•12mo ago
Hi @hmid, we're going to take another look at the anonymous implementation. I believe this role needs to be changed such that no authToken has to be passed.
This may take a while. In the meantime I'd recommend creating a separate role that has a real password and just using that one.
yappiest-sapphireOP•12mo ago
Okay, I already did that as a workaround, Thanks for letting me know ❤️
vicious-gold•11mo ago
@David Gomes Is there an update on this, or is there a place where i can track the progress on this issue?
fascinating-indigo•11mo ago
No update, I don’t know if we have a good way to “track” progress on these things today but we’ll definitely update this Discord thread!
firm-tan•10mo ago
My solution right now is to sign a dummy token for anonymous users and just route them through authenticated url, e.g. { sub: "anonymous" }