Advanced Row Level Security (RLS) Policies // Authorization Deep Dive

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • НаукаНаука

Комментарии • 22

  • @chips4real1
    @chips4real1 3 месяца назад +11

    Please do a video on including additional data from the public schema in the session

    • @JonMeyers
      @JonMeyers 2 месяца назад +2

      That’s a good one! Will add it to the list! 💯

  • @sergeyagronov9650
    @sergeyagronov9650 3 месяца назад +1

    superb videos, content and delivery, hope supabase will continue to rock!!!

    • @JonMeyers
      @JonMeyers 2 месяца назад

      It definitely will! Glad you enjoyed the video! 🙌

  • @caseyspaulding
    @caseyspaulding 3 месяца назад +1

    Great! Love the content ! Thanks

    • @JonMeyers
      @JonMeyers 2 месяца назад

      Thanks! Glad you enjoyed it! 🙌

    • @JonMeyers
      @JonMeyers 2 месяца назад

      Thanks! Glad you enjoyed it! 🙌

  • @jonathangamble
    @jonathangamble 3 месяца назад +1

    you should be using select with auth.uid()... need a video on policies and speed

    • @JonMeyers
      @JonMeyers 2 месяца назад

      Yep, good call! This would be more efficient!

  • @wiesson1546
    @wiesson1546 3 месяца назад +3

    Is there a good naming pattern for the policies? I have like 70+ tables and Somehow I write "users can read" "users can select", "users can see" … I ended up to copy select / update / ... so that is it at least a bit unified

    • @JonMeyers
      @JonMeyers 2 месяца назад +1

      Yeah, can get a little out of hand! I would recommend using the name to describe the policy to make it easier to parse later - “authenticated users can select their own todos” rather than “select todos policy”

  • @samds7750
    @samds7750 19 дней назад

    Can you do a video showing RBAC in Supabase with a permissions table for multiple roles where RLS policies grab the current user's role from a JWT, for instance Clerk's supabase JWT with the role embedded in public metadata?

    • @GlaucoTabet
      @GlaucoTabet 3 дня назад +1

      also need that content, need to create an admin and member kind of permissions table ...

  • @TorstenFischer-gj4cs
    @TorstenFischer-gj4cs Месяц назад

    When I have a 1:1 relationship between an user and its DB objects: Is it suitable to use "ALL" RLS with "(auth.jwt() ->> 'sub'::text) = (user_id)::text"?

  • @sconsalter
    @sconsalter 2 месяца назад

    I created schemas to organize my tables in Supabase, but I am unable to load them in FlutterFlow. On the schema screen in FlutterFlow, only the tables in the 'public' schema appear. What configuration should I make in Supabase so that these schemas I created appear in the API?

    • @JonMeyers
      @JonMeyers 2 месяца назад

      @dshukertjr any ideas?

  • @OlivierMARTINEAU
    @OlivierMARTINEAU 3 месяца назад

    Strange, I don't have the "definition" button on the view in the table editor section. Have you the same issue ?

    • @JonMeyers
      @JonMeyers 2 месяца назад

      Oh weird! I thought this was rolled out to all projects. If you submit a support ticket to supabase.com/support someone can take a look 👍

  • @Hagemony
    @Hagemony 3 месяца назад

    Supabase getting overcomplicated..... Let me give surrealDB a shot

    • @BenjaminMichotte
      @BenjaminMichotte 3 месяца назад +4

      It’s not Supabase being complicated, it’s Postgres being powerful 😂

    • @JonMeyers
      @JonMeyers 2 месяца назад

      @@BenjaminMichottenailed it!

    • @innovatorshome
      @innovatorshome Месяц назад

      Yes​@@BenjaminMichotte