This orb will allow you to connect the build-host to a ZeroTier network, communicate with any other member of the ZeroTier network, and alternatively use another ZeroTier member as a jump/bastion host.
Note that even if you choose to route all Internet via the ZeroTier member acting as a jump/bastion host (full-vpn: true
), traffic between the build-agent and other CircleCI components/services, as well as, DNS requests will not be routed through the ZeroTier network.
This is an “executor-agnostic” orb; there is only one set of commands which can be used on any supported executor. The orb’s underlying code handles the OS/platform detection, and runs the appropriate OS-specific bash commands.
Linux (machine ) |
Windows | macOS | Docker |
---|---|---|---|
✅ | ✅ | ✅ | ❌ |
Before attempting to use this ZeroTier orb:
-
You should have access to a ZeroTier network with at least one online member/node.
- The ZeroTier IP address must be referenced via the
zerotier-remote-member
parameter of the orb's connect command.
- The ZeroTier IP address must be referenced via the
-
Ensure you have stored the ZeroTier network ID and a ZeroTier API access token in respective environment variables (either in the project settings or in an organization context).
- By default, the orb's
connect
command expects the ZeroTier netword ID and the ZeroTier API access token to be stored in environment variables respectively namedZT_NET_ID
andZT_API_TOKEN
, however you can opt to store them in custom-named environment variables; in such case, the environment variables' names must be passed to the orb'sconnect
command via thenet-id-var
andapi-token-var
parameters.
- By default, the orb's
-
If you want to route traffic to specific IPs via the Zerotier member specified in the
zerotier-remote-member
parameter, you'll need the appropriate managed route. -
If you want to route all Internet traffic via the Zerotier member specified in the
zerotier-remote-member
parameter, make sure you've added a (managed) default route.
This orb has 2 commands:
connect
disconnect
There are no job or executor defined in this orb.
The connect
command will:
- Download/Install ZeroTier (if needed).
- Start the ZeroTier service (if needed).
- Make the build-host join the specified ZeroTier network.
- Authorize the member via a request to the ZeroTier API.
- [Only if you use
full-vpn: true
] Add CircleCI-specific routes to prevent traffic between the build-agent and other CircleCI components/services, as well as, DNS requests from being routed through the ZeroTier network.
The disconnect
command will:
- Make the build-host leave the ZeroTier network.
- Stop the ZeroTier service.
- [Only if you use
store-log: true
] Generate a debug settings dump and store it as an artifact.
-
The orb adds route to prevent traffic between the build-agent and other CircleCI components/services, as well as, DNS requests from being routed through the ZeroTier network.
This is necessary to avoid networking issues when you routing all Internet traffic through the ZeroTier network.
However, these routes are based on the current architecture of the CircleCI build-environement, which is subject to change over time thus rendering the aforementioned routes exclusions obsolete and ineffective.
-
When choosing your ZeroTier network IP range, make sure it doesn't conflict with the build-host's existing network/routing configuration.
-
The
docker
executor is not supported (due to limitations of unprivileged LXC containers used in CircleCI).
CircleCI Orb Registry Page - The official registry page of this orb for all versions, executors, commands, and jobs described.
CircleCI Orb Docs - Docs for using, creating, and publishing CircleCI Orbs.
This is an uncertified orb; it is neither tested nor verified by CircleCI. Therefore CircleCI will not be in a position to assist you with using this orb, or troubleshooting/resolving any issues you might encouter while using this orb.
Should you have questions or encounter an issue while using this orb, please:
- Refer to the "Caveats & limitations" section.
- Check if there is a similar existing question/issue. If so, you can add details about your instance of the issue.
- Visit the Orb category of the CircleCI Discuss community forum.
- If none of the above helps, open your own issue with a detailled description.
You are more than welcome to contribute to this orb by adding features/improvements or fixing open issues. To do so, please create pull requests against this repository, and make sure to provide the requested information.