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

Handle TCP connections in a single command invocation #58

Open
ms1111 opened this issue Apr 28, 2022 · 1 comment
Open

Handle TCP connections in a single command invocation #58

ms1111 opened this issue Apr 28, 2022 · 1 comment
Assignees
Labels
NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. NeedsMoreData Waiting for additional user feedback or case studies WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@ms1111
Copy link

ms1111 commented Apr 28, 2022

It'd be nice to have a single instance of pomerium-cli that could handle multiple TCP connections at a time.

For example, if you have an internal development server with services on a few different ports (database, SSH, etc.), it’d be handy to give users a single command they can run to open those ports all at once, and CTRL+C when they’re done.

pomerium-cli tcp host1.internal.example.com:22 --listen :2022 \
    host1.internal.example.com:5432 --listen :55432 \
    host2.internal.example.com:12345 --listen :12345

As a single process, theoretically it could even cache authentication across the services so the user would only need to authenticate once.

As it stands now, my options are:

  • document individual commands to run for individual ports
  • or, create a script that launches a few instances of pomerium-cli in the background, which will look confusing and make it harder for users to shut them all down.
  • or, prepare some connections in Pomerium Desktop (I understand there's an export/import process) and guide users through importing that.
@wasaga
Copy link
Contributor

wasaga commented Apr 28, 2022

prepare some connections in Pomerium Desktop (I understand there's an export/import process)

that outputs a JSON file, and in principle the cli may accept pomerium-cli --from-config config.json and start listening to all connections part of this configuration file that was exported from Pomerium Desktop.

@desimone desimone added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. NeedsMoreData Waiting for additional user feedback or case studies labels May 2, 2022
@wasaga wasaga added NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. and removed NeedsDiscussion labels Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. NeedsMoreData Waiting for additional user feedback or case studies WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants