|
|
|
|
|
by jmull
1101 days ago
|
|
SQL doesn’t necessarily have to mean full database access. I known it’s pretty common to have apps connect to a database with a db user with full access to do anything, but that’s definitely not the only way. If you’re interested in being safer, it’s worth learning the security features built in to your database. |
|
The problem isn't that there's no way to be safe, the problem is that OpenAI's documentation does not do anything to discourage developers from implementing this in the most dangerous way possible. Like you suggest, the most common way this will be implemented is via a db user with full access to do anything.
Developers would be far more likely to implement this safely if they were discouraged from using direct SQL queries. Developers who know how to safely add SQL queries will still know how to do that -- but developers who are copying and pasting code or thinking naively "can't I just feed my schema into GPT" should be pushed towards an implementation that's harder to mess up.