croc

by QuenchWorks

Helm chartv0.0.2App 11.6.6MITVerified publisher

croc relay: a self-hosted relay for croc, which sends files between two computers with a code phrase, end-to-end encrypted, with the relay password generated at install. Hardened by QuenchWorks: built from source, nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks croc relay

A self-hosted relay for hardened croc: croc sends files and folders between two computers with a code phrase, end-to-end encrypted with PAKE, and the relay is where the two sides meet when they cannot reach each other directly. The image is one static Go binary built from source (relay and CLI); it runs as uid 1001 and is CVE-gated at build, cosign-signed and pinned by digest.

Install

helm install relay oci://ghcr.io/quenchworks/charts/croc --set service.type=LoadBalancer
kubectl get secret relay-croc -o jsonpath='{.data.password}' | base64 -d
CROC_RELAY=<relay-host>:9009 CROC_PASS=<password> CROC_SECRET=<code-phrase> croc send FILE
CROC_RELAY=<relay-host>:9009 CROC_PASS=<password> CROC_SECRET=<code-phrase> croc

croc speaks raw TCP on five ports (9009 to 9013 by default): clients dial the first and are handed the others, so expose all of them with a LoadBalancer or NodePort Service, not an HTTP ingress.

Configuration

KeyDefaultWhat it does
relay.basePort, relay.portCount9009, 5The relay ports (CROC_PORTS); the Service keeps the same numbers
relay.passwordgeneratedCROC_PASS; clients without it are refused
relay.existingSecret""A Secret with key password instead
settings{}More relay env (CROC_MAX_ROOMS_OPEN, CROC_SOURCE_JOIN_LIMIT)

Verify the image

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

Deploy croc with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has croc 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 chartcroc is pinned at v0.0.2 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