You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order for python code written by users in python to interact with the database, they need a python API that allows various operations. As an initial list, they should be able to
Access database schema information, including listing out all of the tables with their schemas and metadata.
Write data back into a possibly new database in the table. To start with this will be writing line protocol data into a table, similar to the /api/v3/write_lp API call.
Run queries against existing data in the database.
This should behave somewhat similar to an active client making API calls to a remote server, even though it will in fact be making direct calls against Rust types passed through python using PyO3.
The text was updated successfully, but these errors were encountered:
In order for python code written by users in python to interact with the database, they need a python API that allows various operations
What is the authz here? It seems clear (to me anyway!) that script invocations should have database permissions associated with them. One way to do this is to associate a token with a given invocation of the script. Please see my thoughts in #25537 (comment)
What is the authz here? It seems clear (to me anyway!) that script invocations should have database permissions associated with them. One way to do this is to associate a token with a given invocation of the script. Please see my thoughts in #25537 (comment)
After internal discussion with @pauldix - AIUI (please correct me!) OSS will have an 'all or nothing token' for all aspects of interacting with the influxdb API (meaning database read/write as well as script upload; if a script was successfully uploaded then it will have access to the database). My suggestion of "associate a token with a given invocation of the script" is consistent with this: since there are only all access tokens and an all access token allowed upload of the script and the script has access to read and write to the database.
I might suggest when implementing considering how you might disallow scripts from accessing the scripts API or accessing influxdb files directly. I wouldn't say this is strictly required for a prototype or even MVP, but it would help keep the system robust in the face of scripting errors.
In order for python code written by users in python to interact with the database, they need a python API that allows various operations. As an initial list, they should be able to
/api/v3/write_lp
API call.This should behave somewhat similar to an active client making API calls to a remote server, even though it will in fact be making direct calls against Rust types passed through python using PyO3.
The text was updated successfully, but these errors were encountered: