Skip to content

Commit ec31d93

Browse files
Merge pull request #5342 from hashicorp/backport/vanphan24-patch-1---HCP-worker-multi-hop/largely-choice-starling
This pull request was automerged via backport-assistant
2 parents 3890764 + 1e9097c commit ec31d93

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

website/content/docs/concepts/connection-workflows/multi-hop.mdx

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,63 @@ traffic to a target. Ingress worker filters determine which workers you
6969
connect with to initiate a session, and egress worker filters determine which
7070
workers are used to access targets.
7171

72+
## Use HCP-managed workers as ingress workers
73+
74+
Many organizations have strict network policies that prohibit all inbound traffic into their networks. In these scenarios, you can use HCP-managed workers as the ingress workers. To establish a connection into the network, a self-managed worker configured as an egress worker initiates an outbound connection to the HCP-managed worker, creating a persistent connection. As a result, when end users connect to a target, the end user's connection would hop from the Boundary client to the HCP-managed worker (ingress worker) to the self-managed worker (egress worker) to the target (or other intermediary workers if needed).
75+
76+
### Configure HCP-managed workers for ingress
77+
78+
To configure end user traffic to ingress through HCP-managed workers, you must configure the self-managed worker (enterprise version). On your self-managed worker that you use for egress to the HCP-managed worker, set the configuration file with the following parameters:
79+
- `hcp_boundary_cluster_id` - The HCP Boundary cluster ID, which can be found in the HCP Boundary cluster's URL.
80+
- Omit the `public_addr` parameter. A public address is not needed since the self-managed worker initiates the connection to HCP-managed workers.
81+
- Omit the `initial_upstreams` parameter. This is not needed because the `hcp_boundary_cluster_id` parameter is sufficent to indicate the HCP-managed workers as the upstream.
82+
- Include a [worker tag](/boundary/docs/concepts/filtering/worker-tags#target-worker-filtering) in the `worker` stanza which will be used to select multi-hop routes for each target.
83+
84+
### Example self-managed worker configuration:
85+
```
86+
hcp_boundary_cluster_id = "7acdefe2c-1234-4ff1-b710-123456789876"
87+
88+
listener "tcp" {
89+
address = "0.0.0.0:9202"
90+
purpose = "proxy"
91+
}
92+
93+
worker {
94+
auth_storage_path = "/home/ubuntu/boundary/worker1"
95+
tags {
96+
tag = ["multihop"]
97+
}
98+
recording_storage_path = "/tmp/worker1"
99+
}
100+
```
101+
### Allow-list outbound network traffic to HCP-managed workers
102+
103+
Some organizations require explicit destination addresses set in their network firewall rules for any outbound traffic. In this scenario, you should use the fully qualified domain name (FQDN) of the HCP-managed workers:
104+
105+
```
106+
<cluster_uuid>.proxy.boundary.hashicorp.cloud
107+
```
108+
109+
where the `cluster_uuid` is the HCP Boundary cluster ID. You can find your HCP Boundary cluster ID in the HCP Boundary cluster's URL.
110+
111+
<Note>
112+
113+
The Boundary cluster ID is derived from the Boundary address. For example, if
114+
your cluster URL is:
115+
116+
`https://abcd1234-e567-f890-1ab2-cde345f6g789.boundary.hashicorp.cloud`
117+
118+
Then your cluster id is `abcd1234-e567-f890-1ab2-cde345f6g789`.
119+
120+
</Note>
121+
122+
### Route end user traffic to targets through HCP-managed workers
123+
124+
To route traffic through the HCP-managed workers, you should set the egress filters of each target to match the tag set in the self-managed worker's configuration file. You do not need to set additional ingress filters on the targets.
125+
126+
![Multi-hop egress worker filter](/img/ui/multi-hop-egress-filter_light.png#light-theme-only)
127+
![Multi-hop egress worker filter](/img/ui/multi-hop-egress-filter_dark.png#dark-theme-only)
128+
72129
## Multi-hop worker requirements
73130

74131
When you configure multi-hop sessions, there is an "ingress" worker, an "egress"
133 KB
Loading
133 KB
Loading

0 commit comments

Comments
 (0)