RLS State Filter #196258
Answered
by
jalonsea
eltico21
asked this question in
Code Security
RLS State Filter
#196258
-
🏷️ Discussion TypeQuestion 💬 Feature/Topic AreaCode quality Discussion DetailsIm building a car tracking app I'm using RLS security wise So, now that that's known I need to isolate states, so if I select NY, I shouldn't be able to see cars from NJ for example, how do I achieve this filter policy? |
Beta Was this translation helpful? Give feedback.
Answered by
jalonsea
May 19, 2026
Replies: 1 comment
-
|
Tie the RLS policy directly to a State column in your users/drivers profile table. I'd also recommend to leave a column set for maybe Counties or Cities, to also leave doors open for expanding the filter feature in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
eltico21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tie the RLS policy directly to a State column in your users/drivers profile table.
I'd also recommend to leave a column set for maybe Counties or Cities, to also leave doors open for expanding the filter feature in the future.