netbird

by QuenchWorks

Helm chartv0.0.10App 0.83.1AGPL-3.0-onlyVerified publisher

NetBird: a WireGuard mesh VPN with SSO, access control and routing peers. Management (with built-in sign-in), signal, relay and the dashboard on the bundled PostgreSQL. Hardened by QuenchWorks: built from source, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks NetBird

Hardened NetBird: a WireGuard mesh VPN with single sign-on, access policies, DNS and routing peers. Every image is built from source (management, signal, relay, the client and the dashboard), runs as uid 1001 and is CVE-gated at build, cosign-signed and pinned by digest.

The chart runs the self-hosted layout as separate services: management (the API and control plane, with NetBird's built-in sign-in, Dex, so no external identity provider is needed), signal, relay and the dashboard, on the bundled QuenchWorks PostgreSQL. One public host serves everything, routed by path. Optional routing peers (the NetBird client) join with a setup key and route networks for the mesh.

Install

helm install vpn oci://ghcr.io/quenchworks/charts/netbird \
  --set domain=netbird.example.com \
  --set [email protected] \
  --set ingress.enabled=true --set ingress.className=nginx \
  --set 'ingress.tls[0].hosts[0]=netbird.example.com' --set 'ingress.tls[0].secretName=netbird-tls'
kubectl get secret vpn-netbird -o jsonpath='{.data.owner-password}' | base64 -d; echo

Open https://netbird.example.com, sign in as the owner, then create setup keys for peers.

The ingress needs gRPC to management and signal: the chart creates a second Ingress for those paths with ingress.grpcAnnotations (ingress-nginx's backend-protocol: GRPC by default; set your controller's equivalent).

Routing peers

Create a reusable setup key in the dashboard, store it in a Secret, and enable the router:

kubectl create secret generic netbird-router --from-literal=setup-key=<key>
helm upgrade vpn oci://ghcr.io/quenchworks/charts/netbird --reuse-values \
  --set router.enabled=true --set router.setupKey.existingSecret=netbird-router

By default the router runs in userspace (netstack) mode as uid 1001. router.kernelMode=true uses kernel WireGuard and iptables (root with NET_ADMIN), and router.hostNetwork=true gives it the node's network, as a router-host would.

Configuration

KeyDefaultWhat it does
domainrequiredThe public host for the dashboard, API, sign-in, signal and relay
publicSchemehttpshttp only for testing
owner.email / owner.password[email protected] / generatedThe first administrator
secret.existingSecret""Your own relay secret, store key, cookie key and owner password and hash
management.dnsDomainnetbird.selfhostedAppended to peer names
stunServersGoogle's public STUNWhat peers use to find their public address
router.*offRouting peers
postgresql.enabledtrueThe bundled PostgreSQL; or externalDatabase.*
ingress.*offOne host, path routing, plus a gRPC Ingress

The store encryption key in the Secret encrypts sensitive data in the database: back it up with the database.

Verify the images

cosign verify ghcr.io/quenchworks/images/netbird-management \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Deploy netbird with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has netbird on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnetbird is pinned at v0.0.10 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply