What is the recommended way to disable local filesystem access? #12636
-
|
I am exposing a datafusion context via FlightSQL and I would like to prevent queries from reading and writing data to the local filesystem. I see a few approaches... Empty ObjectStoreRegistryI could implement the ObjectStoreRegistry and return an error for all local urls. Replace ObjectStore for local urlsI could replace the default ObjectStore for the local urls with an implementation of the ObjectStore that returns not found/not supported for methods Something Else?Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Or is the recommended way to simply rely on the SQLOptions? Is the intent that if a query cannot create a new table pointing to the local filesystem they cannot read/write to it? |
Beta Was this translation helpful? Give feedback.
That is how we do it in InfluxDB
This sounds like a good idea too