hashicorp / hashicorp/boundary
[Feature Request] Support user defined target port at runtime
- Dominant language
- Go
- Stars
- 4.1k
- Forks
- 317
- Avg merge
- 5h 10m
- Merged PRs (30d)
- 1
Description
**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.
Contributor guide
Research direction
Start at the `boundary connect` CLI entry point and the desktop client's Connect action; trace how the target's default port is selected and passed to the worker. Done means both entry points accept an optional runtime port without changing the configured target port, with coverage for the new behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, desktop
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100