Skip to main content

Synchronizes your WireGuard settings with Pro Custodibus.

Project description

Pro Custodibus Agent

Pro Custodibus is a service that makes WireGuard networks easy to deploy and manage. You run the Pro Custodibus agent on each WireGuard host you want to manage, and the agent monitors and synchronizes the hosts' WireGuard settings with the remote Pro Custodibus service.

Installing

Requires python 3.8 or newer and libsodium. Installer script can install requirements, plus the agent itself, on most linuxes, FreeBSD, OpenBSD, and macOS (if macOS has Homebrew). Install from source like the following:

./install.sh --install

Or run it like the following to see more options:

./install.sh --help

See the Installer Documentation for full details (or to download the pre-built Windows installer).

Docker

The docker/wireguard.dockerfile is built weekly and pushed to the docker.io/procustodibus/wireguard repository. It produces a base WireGuard image without the agent.

The docker/agent.dockerfile is built weekly and pushed to the docker.io/procustodibus/agent repository. It produces a Docker image with WireGuard and the latest agent installed together.

Run either image by placing your WireGuard or Pro Custodibus configuration files in a host directory like /srv/containers/wireguard/conf, and then running the image like the following:

docker run \
    --cap-add NET_ADMIN \
    --publish 51820:51820/udp \
    --name wireguard \
    --rm \
    --volume /srv/containers/wireguard/conf:/etc/wireguard \
    procustodibus/agent

See the Container Documentation for full details.

Development

Set up dev env

Install uv, and from this project root run:

uv python install
uv sync

Dev tasks

Run unit tests:

uv run pytest

Run unit tests in watch mode:

uv run ptw .

Run unit tests with coverage report:

uv run pytest --cov

Run linter and auto-fix where possible:

uv run ruff check --fix

Run formatter:

uv run ruff format

Build and run docker dev image (with *.conf files in /srv/containers/wireguard/conf):

docker/dev.sh dev
docker run \
    --cap-add NET_ADMIN \
    --publish 51820:51820/udp \
    --name wireguard \
    --rm \
    --volume /srv/containers/wireguard/conf:/etc/wireguard \
    procustodibus-agent:dev

Run all (docker-based) installer tests:

docker compose -f test_install/docker-compose.yml build --pull
uv run pytest test_install

Build Windows MSI

Install uv, and from this project root run:

uv run --python 3.12 --group freeze cx_freeze_setup.py bdist_msi

Contributing

Resources

License

The MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

procustodibus_agent-1.10.2.tar.gz (199.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

procustodibus_agent-1.10.2-py3-none-any.whl (59.6 kB view details)

Uploaded Python 3

File details

Details for the file procustodibus_agent-1.10.2.tar.gz.

File metadata

File hashes

Hashes for procustodibus_agent-1.10.2.tar.gz
Algorithm Hash digest
SHA256 f16ab95c45a7f0d4ca542b0ae70e10a7d316265026747b66da16f9edd5db864e
MD5 7e01e67efaed64e0baeb2bc68cc68dbd
BLAKE2b-256 67e1b9461e8fd3da51db81bb5c375475ceab9ca27a6e7499f6be57103a6dc98d

See more details on using hashes here.

File details

Details for the file procustodibus_agent-1.10.2-py3-none-any.whl.

File metadata

File hashes

Hashes for procustodibus_agent-1.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ef0bbb3243191541b75abb33d6238016bbdbbf4270030f29e1f7f2f412492ca
MD5 e630593abee0bcb148544bdb77f65e4a
BLAKE2b-256 48523e8ebbaf90c1957ace1b3570829a53d5175cf7a4d89a3bf6f17804623c9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page