Giter VIP home page Giter VIP logo

Comments (4)

tulusibrahim avatar tulusibrahim commented on July 30, 2024

Hi @rustamd thanks for stopping by this repo and gave me some suggestions.

First, I don't really get use different supabase project with keys/project ref names that are not in public repo. Is it mean that I just need to hit API within a private repo, then from the private repo, go to this supabase project keys?

Another thing that comes to my mind is since this project using nextjs, is it just simply put the key and ref in the env file to solve this?

from simpledb.

rustamd avatar rustamd commented on July 30, 2024
In my eyes the issue is that none of data/API's are secure.

There should be no way for me to get/delete/modify data that another user "owns". But currently that is possible.
The reasons that is possible is because:

  • Supabase project ref and apikey are accessible here
  • Table name where user data is stored is accessible here

With that information anyone can poke around in your database. My original thought was to use separate project, who's apikey are secure/private. But that would only get you certain amount of "security".

But proper solution would be to enable Row Level Security

Here are some policies to get started:

  • Anyone can insert into simpleDB-token
  • No one can modify simpleDB-token
  • Anyone can delete simpleDB-token if they know the token
  • Anyone can insert/modify/delete simpleDB-data if they know userId
  • Anyone can insert/modify/delete simpleDB-property if they know userId

from simpledb.

rustamd avatar rustamd commented on July 30, 2024

I'm not sure what I expected, but I did not expect to be ignored and my comment minimized. Was just trying to help...

from simpledb.

tulusibrahim avatar tulusibrahim commented on July 30, 2024

Hi, sorry. I get some other things to do here and not replying to your suggestion immediately. But thanks for your suggestion, gonna try to implement them one by one

from simpledb.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.