home / github / issues_fts

Menu
  • GraphQL API

issues_fts: 268469569

This data as json

rowid title body
268469569 Protect against malicious SQL that causes damage even though our DB is immutable I’m currently operating under the assumption that it’s safe to allow arbitrary SQL statements because we are dealing with an immutable database. But this might not be the case - there are some pretty weird SQLite language extensions (ATTACH, PRAGMA etc) and I’m not certain they cannot be used to break things in a way that would affect future requests to the API. Solution: provide a “safe mode” option which disables the ?sql= mechanism. This still leaves the URL filter lookups, so I need to make sure that those are “safe”. In the future I may also implement a whitelist option where datasets can be configured to only allow specific filters against specific columns.
Powered by Datasette · Queries took 3.005ms