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

[Feature Request] Support user defined target port at runtime #4347

Open
yongzhang opened this issue Feb 1, 2024 · 3 comments
Open

[Feature Request] Support user defined target port at runtime #4347

yongzhang opened this issue Feb 1, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@yongzhang
Copy link
Contributor

yongzhang commented Feb 1, 2024

Is your feature request related to a problem? Please describe.
I'm not sure if this feature is in place or not, but I didn't find it from the docs.

When creating a target, there's a default port (the target port, not proxy port), e.g. 1234 for a generic tcp target.

I want the worker connect to a different port when do boundary connect, something like

boundary connect -target-id=ttcp_123456789 -target-port=5678

This is very useful if the target address is a fixed one, but that target has many other services listening on it with dynamic ports.

Describe the solution you'd like

  • Add a new flag to boundary connect something like -target-port.
  • Add optional target port when clicking "connect" in the desktop client.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Explain any additional use-cases
If there are any use-cases that would help us understand the use/need/value please share them as they can help us decide on acceptance and prioritization.

Additional context
Add any other context or screenshots about the feature request here.

@yongzhang yongzhang added the enhancement New feature or request label Feb 1, 2024
@AdamBouhmad
Copy link
Contributor

Hey @yongzhang, thanks for using Boundary!

When using boundary connect, this should already be possible using the -listen-port flag documented here: https://developer.hashicorp.com/boundary/docs/commands/connect#listen-port.

Via the Desktop client, there isn't a way to set a user defined default listening port or address at session establishment time, but that's an interesting feature request that I can share with folks internally.

Hope this helps!

@yongzhang
Copy link
Contributor Author

Hey @yongzhang, thanks for using Boundary!

When using boundary connect, this should already be possible using the -listen-port flag documented here: https://developer.hashicorp.com/boundary/docs/commands/connect#listen-port.

Via the Desktop client, there isn't a way to set a user defined default listening port or address at session establishment time, but that's an interesting feature request that I can share with folks internally.

Hope this helps!

If I understand the doc correctly, -listen-port should be the port in local machine to proxy request right? This feature request is asking a port used by workers connecting to the target.

@yongzhang
Copy link
Contributor Author

@AdamBouhmad I found a very similar request:
#2649

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

2 participants