HUB
Sign inSign up
rustdesk logo

dgcosenza/rustdesk

By dgcosenza

•Updated about 3 hours ago

Hardened rootless RustDesk Server (hbbs + hbbr) built from source on Debian 13, 0 fixable CVEs.

Image
0

784

dgcosenza/rustdesk repository overview

⁠RustDesk Server — Hardened Debian 13 (trixie-slim) Rendezvous & Relay

Daily CI OpenSSF Scorecard Workflow Gitleaks Secret Scan Public Content Check OpenSSF Scorecard OpenSSF Best Practices

Trivy + Grype: 0 Fixable CVEs Signed: Cosign OIDC SLSA Build L3 SBOM: SPDX + CycloneDX Base OS Architectures Healthcheck: CI Verified Renovate Enabled Dependabot Enabled Daily Rebuilds

Latest Release Release Date Last Commit Docker Pulls Docker Image Size Registries: Docker Hub + GHCR Packaging License: MIT Upstream License GitHub Issues FNX Labs Catalog

A hardened, rootless, read-only-rootfs-compatible RustDesk Server (hbbs, hbbr, and rustdesk-utils) compiled from official rustdesk/rustdesk-server source on Debian 13 (trixie-slim) — maintained by Daniel G. Cosenza from FNX Labs.

⁠Overview

dgcosenza/rustdesk replaces both rustdesk/rustdesk-server-s6 (combined MODE=both, default) and rustdesk/rustdesk-server (standalone command: ["hbbs", ...] or command: ["hbbr"]) in a single rootless (UID/GID 1000:1000) multi-arch container with zero s6-overlay overhead, tini PID 1, ENCRYPTED_ONLY=1 support, Docker secret keypair validation via rustdesk-utils, and mode-aware TCP port healthchecks.

⁠Current Versions

ComponentResolved Version
RustDesk Server1.1.16
Rust toolchain1.100.0
Base OSDebian 13.8 (trixie-slim)
Architectureslinux/amd64, linux/arm64
Uncompressed size (per arch)amd64: 38.4 MB, arm64: 119.7 MB
Last verified build (UTC)2026-11-28
Published multi-arch digestdgcosenza/rustdesk@sha256:add0ab0be9ea5d693a52a21007d34d61f71bd5306a1fb8402c2806986766f9a9
GHCR mirrorghcr.io/dgcosenza/rustdesk@sha256:add0ab0be9ea5d693a52a21007d34d61f71bd5306a1fb8402c2806986766f9a9
Supply chainCosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance
Security gate (Trivy + Grype on SBOM)0 fixable findings of any severity (13 upstream-unfixed)

⁠Supported Tags

TagPolicyDescription
latestMovingLatest verified multi-arch build passing all CVE, Dive, and smoke gates.
<version> (e.g. 1.1.16)MovingLatest verified build for that upstream rustdesk-server release.
<version>-<YYYYMMDD>ImmutableDate-stamped daily security rebuild.
sha-<short>ImmutableGit commit tag from this repository.

⁠Supported Architectures

ArchitectureStatusVerification
linux/amd64Published & natively testedNative Rust build, combined + standalone hbbs/hbbr smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3.
linux/arm64Published & natively testedNative Rust build, combined + standalone hbbs/hbbr smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3.

⁠Quick Start

Volume ownership note: docker-compose.example.yml defaults to a named Docker volume so non-root runtime permissions (1000:1000) are initialized automatically; if switching to a host bind mount, pre-create the directory owned by 1000:1000 (mkdir -p ./data && chown 1000:1000 ./data) before docker compose up -d.

mkdir -p ./data && chown 1000:1000 ./data
docker run -d --name rustdesk --restart unless-stopped \
  --read-only --tmpfs /tmp:uid=1000,gid=1000 \
  --cap-drop ALL --security-opt no-new-privileges:true \
  -p 21115:21115/tcp -p 21116:21116/tcp -p 21116:21116/udp -p 21117:21117/tcp \
  -v "$(pwd)/data:/data" \
  -e RELAY="rustdesk.example.test:21117" -e ENCRYPTED_ONLY="1" \
  dgcosenza/rustdesk:latest

⁠Compose Example

See docker-compose.example.yml⁠.

⁠Configuration

VariableDefaultDescription
MODEbothService mode: both (runs hbbr + hbbs), hbbs (rendezvous only), or hbbr (relay only). Overridden when passing hbbs/hbbr directly as container command.
RELAY(empty)External relay address passed to hbbs -r (e.g. rustdesk.example.test:21117).
ENCRYPTED_ONLY0Set to 1 to enforce key-authenticated connections (-k _).
KEY_PUB / KEY_PRIV(empty)Optional Ed25519 keypair (prefer /run/secrets/key_pub and /run/secrets/key_priv). Auto-generated in /data when omitted.
TZEtc/UTCContainer timezone.

Ports: 21115/tcp (NAT type test), 21116/tcp + 21116/udp (ID registration & heartbeat), 21117/tcp (relay), 21118/tcp & 21119/tcp (optional web clients). Volumes: /data (SQLite DB + Ed25519 keys, owned by 1000:1000). User: rustdesk (UID/GID 1000:1000). PID 1: tini.

⁠Healthcheck

HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
  CMD ["/usr/local/bin/rustdesk-healthcheck"]

Performs mode-aware live TCP probes on 127.0.0.1:21116 (hbbs) and/or 127.0.0.1:21117 (hbbr). Verified on both amd64 and arm64; do not disable in Compose.

⁠Upgrade / Migration from rustdesk/rustdesk-server or rustdesk-server-s6

  1. Ensure /data (containing id_ed25519, id_ed25519.pub, and db_v2.sqlite3) is owned by 1000:1000.
  2. Switch the image to dgcosenza/rustdesk@sha256:<digest>; both single-container RELAY/ENCRYPTED_ONLY and split command: ["hbbs"]/command: ["hbbr"] deployments work unmodified.

⁠Supply-Chain Verification

cosign verify \
  --certificate-identity-regexp="^https://github\.com/dgcosenza/rustdesk-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
  --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
  ghcr.io/dgcosenza/rustdesk:latest

gh attestation verify oci://ghcr.io/dgcosenza/rustdesk:latest --owner dgcosenza

⁠Security

  • 0 fixable vulnerabilities of any severity: Hard-gated by Trivy (UNKNOWN–CRITICAL, --ignore-unfixed, exit 1) and Grype on Syft SPDX SBOM (--only-fixed --fail-on negligible) on both amd64 and arm64.
  • Rootless & immutable: Runs as UID/GID 1000:1000 with cap_drop: [ALL], no-new-privileges:true, and read_only: true.
  • No compilers in runtime: Rust toolchain and build dependencies remain strictly in Stage 1.
  • Report issues via SECURITY.md⁠.

⁠Build Locally

docker buildx build --platform linux/amd64 --load -t dgcosenza/rustdesk:local .
./tests/smoke.sh dgcosenza/rustdesk:local

⁠Update Policy

.github/workflows/daily.yml⁠ runs daily at 05:39 UTC with --no-cache: resolves latest rustdesk/rustdesk-server release, Rust toolchain, and debian:13.8-slim digest; compiles and tests hbbs + hbbr + rustdesk-utils with Dive + Trivy + Grype gates on amd64 and arm64; publishes identical Cosign-signed SLSA L3 digests to Docker Hub and GHCR (plus optional secondary OCI mirrors); syncs docs & Hub overview; and manages a single ci-failure issue.

⁠Design Decisions

  • Source-built native binaries on debian:13.8-slim: Transparent provenance from tagged rustdesk/rustdesk-server commits rather than opaque prebuilt binaries.
  • tini dual-process supervisor instead of s6-overlay: Runs hbbr + hbbs cleanly as non-root UID 1000 with read-only rootfs and exits immediately if either daemon terminates.

⁠License

⁠Credits

Maintained by Daniel G. Cosenza from FNX Labs. Upstream: rustdesk/rustdesk-server⁠.

Tag summary

Content type

Image

Digest

sha256:add0ab0be…

Size

36.6 MB

Last updated

about 3 hours ago

docker pull dgcosenza/rustdesk