Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

222
Views
is it a bad idea to establish a connection to a database from the client?

for example, if I wanted to establish a connection between my react app and snowflake and I wanted to do it all client side, would there be any issues?

This is a web app that won't be facing the public internet. To access it, you'd need to be a part of our vpn network.

there's this stackoverflow topic but the answer there is kind of ambivalent about whether I should be making API calls from the server or client so I thought I'd just go with client side but I'm wondering if the case is any different for establishing connections to a database.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

for example, if I wanted to establish a connection between my react app and snowflake and I wanted to do it all client side, would there be any issues?

Yes, there would probably be issues. In order for your client to connect to your database, you will have to give the client the credential for your database, but NOTHING in the client is secure. This means that any user of your system can get access to your database credentials. You do not want that.

Instead, your server should be the intermediary to your database. The client sends your server a request and your server then mediates and decides what is and isn't allowed to be changed in the database or what can be fetched from the database.

The only way this could be practical is if your database has some read-only API where you can control what they have access to and you only provide the client with the credentials for that read-only API.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!