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

Add VPN docs for CI. #9528

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ OIDC is also available in other areas of Harness, such as in the [platform-agnos

* [Can I reference a secret type output variable exported from a CD custom stage in a CI stage?](https://developer.harness.io/kb/continuous-integration/continuous-integration-faqs#can-i-reference-a-secret-type-output-variable-exported-from-a-cd-or-custom-stage-in-ci-stage)
* [Secrets with line breaks and shell-interpreted characters](/kb/continuous-integration/continuous-integration-faqs/#secrets-with-line-breaks-and-shell-interpreted-special-characters)
* [How to establish a VPN connection within a CI pipeline?](/kb/continuous-integration/continuous-integration-faqs#how-to-establish-a-vpn-connection-within-a-ci-pipeline)
26 changes: 26 additions & 0 deletions kb/continuous-integration/continuous-integration-faqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,32 @@ To debug this issue, investigate delegate connectivity in your VM build infrastr
- [Verify connectivity for GCP VM build infra](https://developer.harness.io/docs/continuous-integration/use-ci/set-up-build-infrastructure/vm-build-infrastructure/define-a-ci-build-infrastructure-in-google-cloud-platform#verify-connectivity)
- [Verify connectivity for Anka macOS VM build infra](https://developer.harness.io/docs/continuous-integration/use-ci/set-up-build-infrastructure/vm-build-infrastructure/define-macos-build-infra-with-anka-registry#verify-connectivity)

### How to establish a VPN connection within a CI pipeline?

One way to establish a secure connection between our platform’s servers and a customer’s on-premises infrastructure is through a Virtual Private Network (VPN).

:::note
- The user must publish a public IP address (or have a domain).
- VPN setup must be the first step in the pipeline, e.g., before cloning the codebase.
:::

Here is an example of using an OpenVPN server, but you can apply the same approach to Strongswan, Cisco, or any other VPN server.

#### Steps to configure OpenVPN

1. Download an OpenVPN file, "config.ovpn".
2. Encode the file to Base64 and save it.
3. Add the file as a secret.

![Add config file as secret](static/vpndocs-add-file-as-secret.png)

4. Decode the file, save it as a config file, and install OpenVPN.
![Decode and save config](static/vpndocs-decode-save-config.png)

5. Run OpenVPN with the new file as a [Background Step](https://developer.harness.io/docs/continuous-integration/use-ci/manage-dependencies/background-step-settings/).
![Run as background step](static/vpndocs-run-ovpn-background-step.png)

6. Continue with the rest of the pipeline steps.
## Harness Cloud

### What is Harness Cloud?
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.