HUB
Sign inSign up
nextcloud-spreed-signaling logo

dgcosenza/nextcloud-spreed-signaling

By dgcosenza

•Updated about 12 hours ago

Hardened Debian 13 build of Nextcloud Talk HPB signaling server from official Go source.

Image
0

2.3K

dgcosenza/nextcloud-spreed-signaling repository overview

⁠Nextcloud Spreed Signaling Server for Debian 13 (trixie-slim)

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 source-built, multi-arch, rootless Debian 13 (trixie-slim) container image of the Nextcloud Talk High Performance Backend signaling server⁠ (strukturag/nextcloud-spreed-signaling), maintained by Daniel G. Cosenza from FNX Labs.


⁠Overview

dgcosenza/nextcloud-spreed-signaling compiles official upstream Go release tags (CGO_ENABLED=0) with the latest Go toolchain on Debian 13 (trixie-slim) for both linux/amd64 and linux/arm64:

  • Drop-in replacement for strukturag/nextcloud-spreed-signaling: Preserves CONFIG=/config/server.conf, /config/server.conf.in, /entrypoint.sh, /stop.sh, /wait.sh, STOPSIGNAL SIGUSR1, spreedbackend (850:850), all upstream environment variables, and the wget healthcheck.
  • Rootless & read-only rootfs ready: Defaults to USER spreedbackend (850:850) under tini, and is verified natively on both architectures under --read-only --cap-drop ALL --security-opt no-new-privileges:true (using CONFIG=/tmp/server.conf on tmpfs).
  • Hardened supply chain: Hadolint + Gitleaks preflight, native multi-arch smoke tests, strict Dive efficiency gate (>= 95%, <= 5% wasted), Syft SPDX + CycloneDX SBOMs, Trivy + Grype (SBOM) zero-fixable all-severity gates, Cosign keyless OIDC signatures & SBOM attestations, SLSA Build L3 provenance, dual-registry publishing, and signed GitHub Releases.

⁠Current Versions

ComponentResolved Version
nextcloud-spreed-signalingv2.2.0
Go toolchain1.27.4
Base OSDebian 13.8 (trixie-slim)
Architectureslinux/amd64, linux/arm64
Compressed size (per arch)amd64: 53.0 MB, arm64: 52.1 MB
Last verified build (UTC)2026-11-28
Published multi-arch digestdgcosenza/nextcloud-spreed-signaling@sha256:9ac06c42e50fdf4e2a58635274cd9817a14916df8326ee15254280c750697a74
GHCR mirrorghcr.io/dgcosenza/nextcloud-spreed-signaling@sha256:9ac06c42e50fdf4e2a58635274cd9817a14916df8326ee15254280c750697a74
Supply chainCosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance
Security gate (Trivy + Grype on SBOM)0 fixable findings of any severity (15 upstream-unfixed)

Currently tracked upstream-unfixed findings (no fix released): CVE-2025-69720, CVE-2026-107494, CVE-2026-119373, CVE-2026-119374, CVE-2026-119379, CVE-2026-124709, CVE-2026-16742, CVE-2026-54369, CVE-2026-58471, CVE-2026-58472 (+5 more in CI artifacts).


⁠Supported Tags & Tag Policy

Identical multi-arch OCI digests are published to Docker Hub (dgcosenza/nextcloud-spreed-signaling) and GHCR (ghcr.io/dgcosenza/nextcloud-spreed-signaling), accompanied by an automated signed GitHub Release⁠:

TagPolicyDescription
<version>-<YYYYMMDD> (e.g. 2.2.0-20261125)ImmutableDate-stamped daily rebuild pinning the signaling release and UTC build date.
sha-<short>ImmutablePackaging repository Git commit tag.
<version> (e.g. 2.2.0)MovingLatest verified Debian 13 + Go security rebuild of that signaling release.
latestMovingLatest verified build tracking the newest official signaling release.

Production pinning: Pin by immutable digest:

image: dgcosenza/nextcloud-spreed-signaling:2.2.0@sha256:<digest>
# or via GitHub Container Registry (identical digest):
image: ghcr.io/dgcosenza/nextcloud-spreed-signaling:2.2.0@sha256:<digest>

⁠Supported Architectures

ArchitectureStatusVerification
linux/amd64Published & natively testedBuilt with latest Go trixie toolchain, smoke-tested (both default and --read-only --cap-drop ALL), Dive-gated, Syft/Trivy/Grype-scanned, and Cosign-signed on native x86_64 CI runners.
linux/arm64Published & natively testedBuilt with latest Go trixie toolchain, smoke-tested (both default and --read-only --cap-drop ALL), Dive-gated, Syft/Trivy/Grype-scanned, and Cosign-signed on native ARM64 CI runners.

⁠Quick Start

⁠docker run (hardened, rootless, read-only)
docker run -d --name nextcloud_talk_signaling \
  --restart unless-stopped \
  --read-only \
  --cap-drop ALL \
  --security-opt no-new-privileges:true \
  --tmpfs /tmp:noexec,nosuid,size=16m \
  -e CONFIG=/tmp/server.conf \
  -e HTTP_LISTEN=:8080 \
  -e NATS_URL=nats://loopback \
  -e HASH_KEY="$(openssl rand -hex 16)" \
  -e BLOCK_KEY="$(openssl rand -hex 8)" \
  -e INTERNAL_SHARED_SECRET_KEY="$(openssl rand -hex 16)" \
  -e BACKENDS=cloud \
  -e BACKEND_CLOUD_URLS=https://cloud.example.com \
  -e BACKEND_CLOUD_SHARED_SECRET="$(openssl rand -hex 16)" \
  dgcosenza/nextcloud-spreed-signaling:latest

Verify the welcome endpoint:

docker exec nextcloud_talk_signaling wget -q -O - http://127.0.0.1:8080/api/v1/welcome
⁠Hardened Docker Compose

See docker-compose.example.yml⁠ for a hardened compose definition running rootless with read_only: true, cap_drop: [ALL], no-new-privileges:true, /tmp tmpfs, and an internal network.


⁠Configuration

⁠Ports & Paths
ResourceDetailsPurpose
8080/tcpDefault HTTP/WSSignaling API (HTTP_LISTEN)
8443/tcpOptional TLSDirect HTTPS listener (HTTPS_LISTEN)
9090/tcpOptional gRPCgRPC listener (GRPC_LISTEN)
/config/server.confGenerated or mounted :roRuntime INI config (set CONFIG=/tmp/server.conf for read-only rootfs)
/etc/ssl/certs/ca-certificates.crtRead-onlyDebian CA trust bundle
⁠Environment Variables
VariableDefaultDescription
CONFIG/config/server.confSignaling configuration file path (CONFIG=/tmp/server.conf enables read_only: true)
HTTP_LISTEN(commented)HTTP bind address, e.g. :8080
NATS_URLnats://loopbackNATS hub URL (nats://loopback uses built-in in-process hub)
HASH_KEY / BLOCK_KEY(required)Session checksum and AES block encryption keys
INTERNAL_SHARED_SECRET_KEY(required)Shared secret for internal clients
BACKENDS(unset)Space-separated backend identifiers, e.g. cloud
BACKEND_<NAME>_URLS(unset)Comma-separated Nextcloud URLs for backend <NAME>
BACKEND_<NAME>_SHARED_SECRET(unset)Shared secret matching Nextcloud Talk settings
SKIP_VERIFY(unset)Set true to skip backend TLS verification
USE_JANUS / JANUS_URL(unset)Optional Janus WebRTC gateway integration
TURN_API_KEY / TURN_SECRET / TURN_SERVERS(unset)Optional TURN relay configuration
TRUSTED_PROXIES / STATS_IPS(unset)Reverse proxy and stats ACL CIDRs
CA_CERTIFICATES_FOLDER(unset)Extra .crt folder imported at start (requires --user 0; drops to 850:850 via setpriv)
TZUTCTimezone for log timestamps
⁠UID / GID

Runs by default as non-root spreedbackend (850:850).


⁠Healthcheck

HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
    CMD ["wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/api/v1/welcome"]

Probes the HTTP signaling layer directly and fails closed if the signaling process stops.


⁠Upgrading and Migrating from strukturag/nextcloud-spreed-signaling

  1. Back up any custom /config/server.conf and .env secrets.
  2. Replace strukturag/nextcloud-spreed-signaling:latest with dgcosenza/nextcloud-spreed-signaling:<version>@sha256:<digest> (or ghcr.io/dgcosenza/nextcloud-spreed-signaling:<version>@sha256:<digest>).
  3. Recreate only the signaling service (docker compose up -d talk_signaling) and confirm healthy plus /api/v1/welcome HTTP 200.

⁠Supply-Chain Verification

Every published digest (multi-arch index and per-architecture manifests) on both Docker Hub and GHCR is keyless-signed with Sigstore Cosign (GitHub OIDC), attested with SPDX and CycloneDX SBOMs, and backed by SLSA Build L3 provenance (actions/attest-build-provenance).

⁠Verify image signature with Cosign
cosign verify \
  --certificate-identity-regexp="^https://github\.com/dgcosenza/nextcloud-spreed-signaling-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
  --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
  ghcr.io/dgcosenza/nextcloud-spreed-signaling:latest

# Or against Docker Hub (identical digest):
cosign verify \
  --certificate-identity-regexp="^https://github\.com/dgcosenza/nextcloud-spreed-signaling-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
  --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
  dgcosenza/nextcloud-spreed-signaling:latest
⁠Verify SPDX / CycloneDX SBOM attestations
cosign verify-attestation \
  --type spdxjson \
  --certificate-identity-regexp="^https://github\.com/dgcosenza/nextcloud-spreed-signaling-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
  --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
  ghcr.io/dgcosenza/nextcloud-spreed-signaling@sha256:<arch-digest>
⁠Verify SLSA Build Provenance
gh attestation verify oci://ghcr.io/dgcosenza/nextcloud-spreed-signaling:latest --owner dgcosenza

⁠Security

  • Preflight gates: Every push and PR runs Hadolint (blocking on warning+), Gitleaks secret scanning across git history, and public-content/attribution/license checks.
  • Patched Go builds: Compiled daily from official upstream tags with CGO_ENABLED=0 and the newest Go trixie toolchain (GOTOOLCHAIN=local).
  • Rootless & read-only ready: Defaults to spreedbackend (850:850) under tini, verified with --read-only --cap-drop ALL --security-opt no-new-privileges:true.
  • Vulnerability & efficiency gates (all severities with a fix): Each architecture generates Syft SPDX + CycloneDX SBOMs, passes a strict Dive efficiency gate (>= 95%, <= 5% wasted), and must pass Trivy (table, JSON, SARIF to Code Scanning, blocking --ignore-unfixed) and Grype scanning the SPDX SBOM (--only-fixed --fail-on negligible) with 0 fixable vulnerabilities of any severity.
  • Dependency automation: Renovate (renovate.json) pins base image digests and GitHub Action commit SHAs; Dependabot security alerts and OpenSSF Scorecard monitoring are enabled.
  • See SECURITY.md⁠ for vulnerability reporting.

⁠Build Locally

git clone https://github.com/dgcosenza/nextcloud-spreed-signaling-docker.git
cd nextcloud-spreed-signaling-docker

docker buildx build \
  --platform linux/amd64 \
  --load \
  --build-arg IMAGE_CREATED="$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
  --build-arg IMAGE_REVISION="$(git rev-parse HEAD)" \
  -t dgcosenza/nextcloud-spreed-signaling:local \
  .

./tests/smoke.sh dgcosenza/nextcloud-spreed-signaling:local
Build ArgDefaultPurpose
GO_BASEgolang:1.27.4-trixie@sha256:...Digest-pinned official Go builder image (refreshed daily by CI)
DEBIAN_BASEdebian:trixie-slim@sha256:...Digest-pinned Debian 13 runtime base image (refreshed daily by CI)
GO_VERSION1.27.4Go toolchain version metadata
SIGNALING_VERSIONv2.2.0strukturag/nextcloud-spreed-signaling Git tag
SIGNALING_UID / SIGNALING_GID850 / 850Unprivileged spreedbackend account IDs

⁠Update Policy

.github/workflows/daily.yml⁠ runs automatically every day at 05:40 UTC, on pushes to main, on pull requests (verification only), and via workflow_dispatch:

  1. Preflight & upstream check: Runs public-content checks, Hadolint, and Gitleaks; resolves the latest strukturag/nextcloud-spreed-signaling release via authenticated GitHub API plus latest Go trixie and debian:trixie-slim digests; diffs against versions.json and emits upstream-changes.md.
  2. Multi-arch no-cache rebuild: Compiles static Go binaries natively on linux/amd64 and linux/arm64 runners with --no-cache on schedule and full Debian 13 apt-get upgrade.
  3. Smoke, Dive & vulnerability gates: Runs tests/smoke.sh⁠ natively on both architectures (default + --read-only --cap-drop ALL, /api/v1/welcome, graceful /stop.sh SIGUSR1), enforces the strict Dive efficiency gate (>= 95%, <= 5% wasted), generates Syft SPDX + CycloneDX SBOMs, and gates publication on 0 fixable findings of any severity in both Trivy and Grype (SBOM scan).
  4. Dual-registry publish & signing: Assembles the multi-arch OCI index on GHCR (ghcr.io/dgcosenza/nextcloud-spreed-signaling) and mirrors the identical digest to Docker Hub (dgcosenza/nextcloud-spreed-signaling) with tags latest, <version>, <version>-<YYYYMMDD>, and sha-<short>; keyless-signs digests and attaches SPDX/CycloneDX SBOM attestations via Cosign OIDC; emits SLSA Build L3 provenance; and publishes a signed GitHub Release.
  5. Automated documentation sync: Commits updated versions.json, the README Current Versions block, and a dated CHANGELOG.md entry via github-actions[bot] ([skip ci]), then syncs the Docker Hub overview and short description.
  6. Failure alerting: Opens or updates a single GitHub issue labeled ci-failure on any main or scheduled failure, and closes it automatically on the next green run.

⁠Design Decisions

  • Debian 13 (trixie-slim) instead of Alpine: Aligns OS packages, CA bundle handling, and daily security updates with Debian 13 while preserving upstream /entrypoint.sh, /stop.sh, /wait.sh, and STOPSIGNAL SIGUSR1 via a one-hunk setpriv patch (patches/0001-debian-setpriv.patch).
  • Two-layer zero-waste runtime layout: Upgrading Debian 13 inside an os-base stage and assembling the final image with cleanly separated OS and compiled-binary layers eliminates overwritten base-layer files so Dive stays at ~100% efficiency and ~0% wasted space across daily security rebuilds.
  • Hadolint DL3008 ignore: Daily --no-cache security rebuilds intentionally pull the newest Debian 13 security updates via apt-get rather than pinning stale package versions.

⁠License

This repository follows a clear packaging-vs-upstream license split:

Full notices are preserved inside the image (/usr/share/doc/signaling-notices/LICENSE) and in THIRD-PARTY-NOTICES.md⁠.


⁠Credits

Tag summary

Content type

Image

Digest

sha256:9ac06c42e…

Size

50.6 MB

Last updated

about 12 hours ago

docker pull dgcosenza/nextcloud-spreed-signaling