Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

steampipe config option port to allow ranges of ports #4465

Open
TheWing opened this issue Jan 14, 2025 · 3 comments
Open

steampipe config option port to allow ranges of ports #4465

TheWing opened this issue Jan 14, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@TheWing
Copy link

TheWing commented Jan 14, 2025

We are using steampipe on a shared virtual machine with multiple concurrent users, and noticed it tries to run all instances using the same port defined in the options.

Instead of modifying the port config per user manually, it would be nice if one could specify a range of ports to use.

According to https://steampipe.io/docs/reference/config-files/options, the port parameter can be used to set a port used for the database connection. This seems to only be a single port, but could perhaps support a port range?

We've contemplated writing a small bash wrapper to check the ports that are in use and select next available one, or to instruct users to specify their own port manually

@TheWing TheWing added the enhancement New feature or request label Jan 14, 2025
@TheWing
Copy link
Author

TheWing commented Jan 14, 2025

our actual solution might be to run the database as a service, but in that case we'd like to run steampipe query and have it connect to a database open elsewhere

@pskrbasu
Copy link
Contributor

Thanks for raising the issue @TheWing. This is a feature request that would require some thought and design discussions. Meanwhile, if you have a way in mind, you can have a stab and create a pull request. We would be more than willing to assist you if you decide to contribute.

@e-gineer
Copy link
Contributor

BTW you can already connect steampipe CLI to a separate running steampipe instance - e.g. Steampipe hosted on Turbot Pipes - please see workspaces https://steampipe.io/docs/managing/workspaces

If you use --install-dir and --port then you can set a separate port for each running steampipe instance. This allows you to run multiple at once. Workspaces also make these easier to work with.

I don't really understand the case for a range of ports? I'll also note that the CLI experience tries to optimize for a single user on their machine overall. For multiple users I'd recommend you check out Turbot Pipes https://turbot.com/pipes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants