Boundary
Configure a worker filter
You can use tags to configure a worker filter that controls which workers are allowed to perform specific functions. Following are some examples of using these values in filters that can be applied to targets, Vault credential stores, or storage buckets:
Name regex:
"/name" matches "web-prod-us-east-[12]"
, which would match workers whose names areweb-prod-us-east-1
orweb-prod-us-east-2
Region:
"us-east-1" in "/tags/region"
.Grouping:
("us-east-1" in "/tags/region" and "/name" == "web-prod-us-east-1") or "webservers" in "/tags/type"
Each tag can have multiple values, so you must use the in
operator to match values. If you know that you have only one value, an equivalent would be "/tags/key/0" == "value"
.
Refer to Filtering and listing resources for more information about Boundary's filter syntax and best practices.
Example worker filter for targets
Once workers have tags, you can use these tags to control which workers are allowed to manage a given session by specifying worker filter attributes when you configure targets.
The egress_worker_filter
attribute controls which workers are used for egress to a target. This is the worker
that accesses the target.
The ingress_worker_filter
HCP/ENT attribute controls which workers are used for ingress to a target.
This is the worker a client connects to when initiating a connection to a target.
Example of a filter configured on a target in the Admin UI:
Example worker filter for Vault credential store
Tags are used to control which workers can manage Vault requests by specifying
a worker_filter
attribute when configuring credential stores.
This allows the use of private Vault instances with Boundary. Workers deployed in the same network as a private Vault instance can access and relay Vault requests to Boundary controllers.
Tip
A worker that matches the worker filter must exist before you define the Vault credential store, as it will perform the Vault calls needed to set up the credential store with Boundary.
Example of a worker filter configured on a Vault credential store in the Admin UI:
Example worker filter for storage buckets
Enterprise
Storage buckets are used for session recording, which requires HCP Boundary or Boundary Enterprise
Session recording functions are performed by Boundary workers. Workers also store recordings on Boundary storage buckets. When you create Boundary storage buckets, you can use tags to select the workers you prefer to use for session recording responsibilities.
Example of a worker filter configured on a storage bucket in the Admin UI: