Establish an outbound-only encrypted connection from a machine inside a private network to the Polaris cloud platform by running Bridge CLI with the polaris-secure-tunnel workflow.
A Polaris secure tunnel is an outbound-only encrypted connection from a machine inside a private network to the Polaris cloud platform. It is established by running Bridge CLI with the polaris-secure-tunnel workflow on a machine that can reach the internal resources.
Once the tunnel is running, Polaris can communicate with resources inside the private network.
Prerequisites
- The following reading is recommended before starting this task:
-
Consult the Polaris Secure Tunnel documentation to understand functionality and system requirements.
-
-
A Polaris access token has been created. See Make an access token for instructions.
-
A secure tunnel has been created in the Polaris web UI under .
-
Bridge CLI (version 4.3.0 or higher) is installed on a local machine (or a virtual machine or other runner that both has access to the internal DAST target and can reach the Polaris instance on port 443).
Instructions
-
Pass the Polaris access token to Bridge CLI using an environment variable:
export BRIDGE_POLARIS_ACCESSTOKEN=<your-access-token> -
Run Bridge CLI with the
polaris-secure-tunnelworkflow:bridge-cli --stage polaris-secure-tunnel \ polaris.serverUrl="https://<your-polaris-server>" \ polaris.tunnel.name="<your-tunnel-name>"- For
polaris.serverUrl, specify the base URL for the Polaris server instance, for examplehttps://polaris.blackduck.com,https://poc.polaris.blackduck.com,https://ksa.polaris.blackduck.com, orhttps://eu.polaris.blackduck.com. - For
polaris.tunnel.name, specify the name of the tunnel configured in the Polaris web UI.
If the command is successful, Bridge CLI:
- Connects to the specified Polaris server instance.
- Connects to the specified named Teleport instance in Polaris.
- Downloads the Teleport agent and configuration to the same location that Bridge CLI is running from.
- Runs the Teleport agent with the configuration file.
- Establishes a secure TLS tunnel on port 443 between the specified Polaris instance and the internal resource in the private network.
- For
- Bridge CLI starts a new Teleport process each time the
polaris-secure-tunnelworkflow is executed, rather than reusing an existing process. - Bridge CLI will log an error message if a tunnel is not found with a matching name.
An outbound-only encrypted connection is established. The process must remain running for the tunnel to stay active.