Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I prevent accidental deletion of records in QuestDB?

Tags:

questdb

I want to expose a QuestDB instance publicly with the web interface so that users and visitors can make queries against the data. How can I make sure data won't be deleted from this dataset? Is there a way to prevent malicious queries?

like image 667
funnymay Avatar asked Sep 12 '25 16:09

funnymay


1 Answers

One approach that's possible here is to set the server configuration to be readonly via HTTP. This can be set in the server.conf file with the following key:

http.security.readonly=true

This will disable commands which modify or delete data. For info on the available keys, see the HTTP server configuration documentation

like image 75
Brian Smith Avatar answered Sep 16 '25 09:09

Brian Smith