https://supabase.com/ logo
Join Discord
Powered by
# help
  • d

    DharmaraJ

    07/31/2021, 8:53 AM
    How can I disable access to database by any user? Not even allow to edit their profile?
  • d

    DharmaraJ

    07/31/2021, 8:54 AM
    I want to allow my server only to edit it.. I'm not sure if there is any Admin SDK equivalent?
  • s

    silentworks

    07/31/2021, 8:58 AM
    Just enable RLS to all tables
  • s

    silentworks

    07/31/2021, 8:59 AM
    You just need to use the
    service_role
    secret
    instead with the JS SDK, please only use these in a server side environment, you don't want these leaking to the client.
  • d

    DharmaraJ

    07/31/2021, 9:02 AM
    Thanks again! I thought if the admin sdk was different than js client
  • s

    silentworks

    07/31/2021, 9:03 AM
    No its the same library, just different api keys being passed to it
  • l

    LeDragunov

    07/31/2021, 9:51 AM
    Noobest Question, How do I connect supabase to my domain😁
  • s

    silentworks

    07/31/2021, 10:44 AM
    At the moment Supabase doesn't host your project so you don't do things like CNAME setup with it, however you will need to setup Site URL and additional redirect URLs if you are using Supabase Auth. You can get to this by going to Authentication/Settings inside the Supabase Dashboard.
  • l

    LeDragunov

    07/31/2021, 10:48 AM
    Yup, I found the Site URL. But didnot know its purpose. I can write any URL without verification
    s
    • 2
    • 5
  • k

    Kosh

    07/31/2021, 12:03 PM
    Hi folks, how do you imports to auth from firebase? I already exported users from firebase auth and now i would like to import them to supabase but so far found no api to basically insert into private users db.
  • b

    burggraf

    07/31/2021, 12:30 PM
    https://supabase.io/docs/reference/javascript/rpc
  • s

    silentworks

    07/31/2021, 1:10 PM
    Site URL for verifying domain requests are coming from
  • s

    silentworks

    07/31/2021, 1:11 PM
    There are a number of discussions on the Supabase GitHub Discussion board that can help with this https://github.com/supabase/supabase/discussions
  • k

    Khan W

    07/31/2021, 1:29 PM
    Not quite what I was looking for. I can call them but there’s no docs on how to make them. I figured out that it’s just making a function in Postgres, but more docs would be nice for newcomers
  • j

    joshcawthorne

    07/31/2021, 2:29 PM
    Hi guys; I'm running into an issue with creating a foreign key in the table editor. Unsure if I'm doing something wrong - trying to create a field that links an id from one table into an 'owned_by' column in another. Both a type of int8, and the former field is a primary key. Is this a known issue?
  • s

    Scott P

    07/31/2021, 2:36 PM
    #870692478154571826 has some more details. The functions in the dashboard follow the same format as discussed there.
  • b

    burggraf

    07/31/2021, 2:39 PM
    > Yeah I was showing "how to call a function from the client" and you were asking "how do I create a PostgreSQL function?" But this should become a lot easier for newcomers since our new dashboard piece just came out for this purpose (although it's in Alpha right now).
    Dashboard
    /
    Database
    /
    Functions
    /
    Create New Function
    .
  • k

    Khan W

    07/31/2021, 2:43 PM
    I've been looking at it, I missed it somehow when looking last night. Thanks for the info there it was super helpful
  • k

    Khan W

    07/31/2021, 2:43 PM
    totally and thank you 🙏 That sounds awesome I'll check it out too
  • r

    Robert

    07/31/2021, 4:18 PM
    Hi. Regarding row level security, as seen in the Supabase guide, with
    name
    ,
    score
    , what if I want to restrict insert of
    score
    and instead a default value is set?
  • r

    Robert

    07/31/2021, 4:19 PM
    so basically column level security
  • r

    Robert

    07/31/2021, 4:19 PM
    could anyone help me with this?
  • s

    silentworks

    07/31/2021, 4:31 PM
    You can block all inserts on that table and use a stored function to update only the values you want to give a user access to
  • r

    Robert

    07/31/2021, 4:35 PM
    So I can't really just block inserting 1 specific column, right?
  • s

    silentworks

    07/31/2021, 4:37 PM
    It's a very long winded process that should be avoided as relational databases don't really work that way.
  • n

    NicoNico

    07/31/2021, 5:02 PM
    Hey folks! Has anyone seen any issues with auth endpoints returning 500 errors? I created a database back in December (so it's a bit older), and just came back to hack on the project a bit, but when I call
    supabase.auth.signUp(data)
    get a 500 error - I see it calling (https://{{myID}}.supabase.co/auth/v1/signup) in the network request
  • u

    6ary

    07/31/2021, 5:08 PM
    Yeah I'm also seeing 500 errors deleting accounts.
  • u

    6ary

    07/31/2021, 5:09 PM
    Copy code
    {message: "Database error deleting user", status: 500}
  • n

    NicoNico

    07/31/2021, 5:14 PM
    Yah I'm seeing this issue in the response:
    {"code":500,"msg":"Database error finding user","error_id":"945062e2-66c1-4e1b-8dfb-fe06e26efb19"}
    s
    b
    s
    • 4
    • 54
  • n

    NicoNico

    07/31/2021, 5:15 PM
    Just upgraded to the latest JS sdk too
    "@supabase/supabase-js": "^1.21.0",
    but nada
1...282930...316Latest