Comments (9)
We could add the ability to specify the config path but I'm not sure that it would solve your particular problem. The plugin configuration defines connections which are global - they are server-level objects, not client settings. A single Steampipe DB instance has the same connections for all clients. That means that if you want a different connection config for each user you would have to create a DB instance for each user. You can do this today using --install-dir
, STEAMPIPE_INSTALL_DIR
or the install_dir
workspace argument.
An alternative is to create a connection for every user and set the search path on a per-client basis to default to "their" connection. This doesn't preclude them from using any other connection however, just sets the connection that would be used for unqualified queries. You could conceivably use Postgres permissions to lock this down, but you would have to implement that yourself. Steampipe creates a single steampipe
user, as the Steampipe CLI is optimized for a single user.
You could also explore Turbot Pipes. Where Steampipe CLI is meant for a single person doing a single thing at a single point in time, Pipes is intended to allow many people doing many things over time.
from steampipe.
from steampipe.
I guess I misunderstood your request. It sounded like you wanted to share the same database instance from different clients, with different configurations for each. If you are going to start a separate DB instance for each user then it is reasonable to add a config path arg to the service start
command. Is that what you are looking for?
As for the --install-dir
, that needs to point to the equivalent of the ~/.steampipe
directory. The drawback is that you would have to install the plugins in each of these instances.
from steampipe.
Exactly.
I would like to add a config path argument to the Steampipe command.
The steampipe instances aren't long-running instances as I intend calling it from a web server context (with Python's subprocess
, then passing a config file containing the Stripe API key, that I created in that request cycle) and displaying the output in a dashboard.
Can I do this currently with Steampipe?
from steampipe.
When you say displaying output in a dashboard
do you mean a Steampipe/Powerpipe dashboard or your own application's dashboard?
from steampipe.
If you are treating these instances as ephemeral and short-lived, and you are only accessing them through your own code on the back end, perhaps the SQLite Extensions or Export CLIs might be a better, more lightweight fit?
from steampipe.
When you say
displaying output in a dashboard
do you mean a Steampipe/Powerpipe dashboard or your own application's dashboard?
My application's dashboard
from steampipe.
If you are treating these instances as ephemeral and short-lived, and you are only accessing them through your own code on the back end, perhaps the SQLite Extensions or Export CLIs might be a better, more lightweight fit?
I think I will try the export CLI, I see it allows me to pass a --config flag. Which is fits what I am trying to accomplish.
from steampipe.
closing this issue - please raise another or get in touch via the steampipe community of you have further issues/questions
from steampipe.
Related Issues (20)
- Query command should support legacy 'true' and 'false' for `--timing` flag
- Ability to get ALL inventory (exported to csv/whatever), so I can diff it between runs HOT 2
- Unusual query timing results with aggregator connection with caching enabled when some connections have errors HOT 1
- Query time decreasing on subsequent queries with caching disabled HOT 1
- Docker Image for latest steampipe HOT 4
- setting autocomplete in workspaces files has no effect HOT 2
- JSON metadata output should not contain scan info when `--timing=on`
- `sps` output not working
- fatal error: concurrent map read and map write HOT 2
- AWS authentication fails on a large number of accounts when using credential_process HOT 1
- Stemapipe service restart stuck after first attempt HOT 5
- Update JSON output to be consistent across pipelings - also handle duplicate column names HOT 1
- A segmentation violation occurs when using the `||`(concat) operator in the `on` clause of a `join`. HOT 1
- Make plugin startup timeout configurable HOT 2
- Unable to update plugins: "docker-credential-desktop... not found in $PATH" HOT 10
- v0.23.3
- Removing Docker credStore breaks plugin installations with private registries
- `steampipe plugin install aws` not working: `failed to resolve 0.144.0` HOT 4
- Sign RPM files and provide public GPG key HOT 1
- Batch query error message contains internal `executeQueries` in the response
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steampipe.