HUB
Sign inSign up
synchronet logo

dgcosenza/synchronet

By dgcosenza

•Updated about 12 hours ago

Source-built Synchronet BBS for Debian 13, fully upgraded and scanned daily for vulnerabilities.

Image
0

4.1K

dgcosenza/synchronet repository overview

⁠Synchronet BBS for Debian 13 (trixie)

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, actively maintained container image for Synchronet BBS on Debian 13 (trixie), maintained by Daniel G. Cosenza from FNX Labs.

⁠Overview

This repository builds and maintains a source-built Synchronet BBS container on Debian 13 (trixie) (debian:13.8-slim, pinned by digest). The daily resolve step discovers the newest official Debian 13 point-release slim tag and bumps the tag and digest together, so the base stays current automatically. Every CI build resolves the current upstream Synchronet master commit, validates the version header (sbbsdefs.h), upgrades all Debian packages (apt-get update && apt-get -y upgrade), installs the latest SHA-256-verified Deno release, runs a container smoke test, and gates publication on 0 fixable vulnerabilities of any severity in both Trivy and Grype.

Synchronet is developed at gitlab.synchro.net/main/sbbs⁠. The build fetches the exact commit from the maintained SynchronetBBS GitHub mirror⁠ because unauthenticated GitLab smart-HTTP refs are not consistently available to automated container builders. The packaging modernizes the Debian 11 bbsio/synchronet recipe; it is independently maintained and is not an official Synchronet or BBS-IO image.

The persistent data mount follows the /sbbs-data layout used by bbsio/synchronet. Test upgrades on a cold copy of your data directory first.

⁠Current Versions

ComponentResolved Version
Synchronet BBS3.22a (95ac875)
Deno2.9.8
Base OSDebian 13.8 (debian:13.8-slim)
Architectureslinux/amd64
Uncompressed size (per arch)amd64: 136.0 MB
Last verified build (UTC)2026-11-28
Published multi-arch digestdgcosenza/synchronet@sha256:a6b71b1d4337583107b333813f77d3b0989b938113cc7e3dcdc90348b19b66c9
GHCR mirrorghcr.io/dgcosenza/synchronet@sha256:a6b71b1d4337583107b333813f77d3b0989b938113cc7e3dcdc90348b19b66c9
Supply chainCosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance
Security gate (Trivy + Grype on SBOM)0 fixable findings of any severity (33 upstream-unfixed)

Recent upstream changes:

  • Synchronet master advanced from 48bfa23 to 95ac875.
  • 85c37bd: Preserve CSI parameter values across colon subparameters
  • 95ac875: Preserve the selected cursor style across DECTCEM visibility changes

⁠Supported Tags

TagPolicyDescription
<version>-<commit>-<YYYYMMDD> (e.g. 3.22a-c20f737-20261124)ImmutablePoint-in-time build pinning the Synchronet version, upstream commit, and UTC build date.
<version>-<YYYYMMDD> (e.g. 3.22a-20261124)ImmutableDate-stamped daily rebuild on the resolved Debian 13 base.
<version>-<commit> (e.g. 3.22a-c20f737)ImmutableFirst verified build for a given upstream Synchronet source commit.
sha-<short>ImmutablePackaging repository commit tag.
<version> (e.g. 3.22a)MovingLatest verified build in the current Synchronet release line.
nightlyMovingLatest verified build tracking Synchronet master.
latestMovingAlias of nightly (never a frozen historical release).

Each published image records the exact Synchronet version, upstream commit SHA, and Deno version in its OCI labels (org.opencontainers.image.* and io.github.dgcosenza.synchronet.*). See CHANGELOG.md⁠ for recent default pins and release notes.

Production pinning: Pin deployments by registry digest rather than pulling an unpinned moving tag:

image: dgcosenza/synchronet:latest@sha256:<digest>

⁠Supported Architectures

ArchitectureStatusVerification
linux/amd64Published & natively testedBuilt, smoke-tested, Dive-gated, Syft/Trivy/Grype-scanned, and Cosign-signed on native x86_64 CI runners.
linux/arm64Not supported (upstream limitation)Synchronet's embedded SpiderMonkey 1.8.5 runtime registers an aarch64 Linux constructor (src/sbbs3/js_global.cpp, addr_compat_layout_hack) that calls personality(ADDR_COMPAT_LAYOUT) and aborts with Operation not permitted under default container seccomp profiles (upstream bbsio/synchronet is likewise amd64-only).

Identical signed OCI digests are published to Docker Hub and GHCR (ghcr.io/dgcosenza/synchronet), accompanied by automated signed GitHub Releases⁠.

⁠Quick Start

Create a persistent data directory owned by the container service account (UID/GID 1000:1000):

mkdir -p "$HOME/synchronet/data"
sudo chown -R 1000:1000 "$HOME/synchronet/data"
cd "$HOME/synchronet"
⁠docker run (loopback-only example)

This example keeps services on loopback and maps SSH, Telnet, and webv4 to non-privileged host ports. Add other mappings only after reviewing protocol and firewall exposure:

docker run -d \
  --name synchronet \
  --restart unless-stopped \
  -e TZ=Etc/UTC \
  -p 127.0.0.1:2323:22 \
  -p 127.0.0.1:2324:23 \
  -p 127.0.0.1:8080:80 \
  -v "$PWD/data:/sbbs-data" \
  dgcosenza/synchronet:latest

Open the web interface at http://127.0.0.1:8080/, or connect via SSH on port 2323 or Telnet on port 2324. Synchronet initializes missing data directories on first startup.

⁠Docker Compose

See docker-compose.example.yml⁠:

services:
  bbs:
    image: dgcosenza/synchronet:latest
    container_name: synchronet
    command: ["/sbbs/scripts/sbbs", "syslog"]
    restart: unless-stopped
    environment:
      TZ: Etc/UTC
    volumes:
      - ./data:/sbbs-data
    ports:
      - "127.0.0.1:2323:22"
      - "127.0.0.1:2324:23"
      - "127.0.0.1:8080:80"
      - "127.0.0.1:11230:1123"
    healthcheck:
      test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--output", "/dev/null", "--max-time", "10", "http://127.0.0.1/"]
      interval: 120s
      timeout: 10s
      start_period: 120s
      retries: 3

Start with docker compose up -d and inspect with docker compose ps and docker compose logs --tail=100 bbs.

⁠Configuration

⁠Environment Variables
VariableDefaultPurpose
TZEtc/UTCSystem timezone used by processes and logs (any installed IANA timezone, e.g. America/New_York).
TERMxtermTerminal type for console tools.
DENO_DIR/sbbs-data/.denoPersistent Deno cache and generated module directory inside the data volume.
SBBSCTRL/sbbs/ctrlSynchronet control directory inside the container (symlinks to /sbbs-data/ctrl).
SBBSEXEC/sbbs/execSynchronet executable directory inside the container.
PATH/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbbs/scripts:/sbbs/execRuntime command search path. Preserve Synchronet paths if overriding.

Synchronet configuration lives in /sbbs-data/ctrl/ (sbbs.ini, services.ini, modopts.ini). The initializer does not overwrite an existing ctrl/sbbs.ini. Never store sysop credentials in an image layer or public repository.

⁠Volumes and UID/GID
Container PathMode / OwnerPurpose
/sbbs-data1000:1000 (sbbs)Persistent BBS state: backup/, ctrl/, data/, .deno/, fido/, mods/, nodes/, text/, web/, xtrn/.
/dev/log (optional)Host syslog socketOptional read-write mount so ["/sbbs/scripts/sbbs", "syslog"] forwards events to host syslog / fail2ban.

Never mount the same /sbbs-data directory into two Synchronet containers simultaneously.

⁠Ports

Ports listen inside the container only when enabled in ctrl/services.ini and ctrl/sbbs.ini. Publish only the protocols your deployment uses:

Container PortServiceExposure Notes
23TelnetPlaintext; keep off untrusted networks.
22Synchronet SSHTypically mapped to host 2323 to avoid colliding with host sshd.
21FTPPlaintext; keep off untrusted networks.
80 / 443HTTP / HTTPS (webv4)Port 80 is probed by the built-in healthcheck.
513RloginLegacy plaintext protocol.
1123 / 11235Web terminal WebSocket (plain / TLS)Commonly fronted by a reverse proxy.
6667 / 6697IRC / IRC over TLSEnable explicitly in services.ini when needed.
24554 / 24553BinkP / BinkP over TLSFidoNet mail transfer.
25, 465, 587SMTP / SMTPS / SubmissionMail transfer and submission.
110, 143, 993, 995POP3 / IMAP (plain and TLS)Mail access.
70, 79, 119, 563, 17, 18, 11, 5500, 5501, 10088Legacy & JSON API servicesOptional; restrict 10088 (JSON API) to trusted networks.

Block plaintext protocols from untrusted networks using a host firewall (for example, DOCKER-USER iptables/nftables rules) before publishing ports.

⁠Healthcheck

HEALTHCHECK --interval=120s --timeout=10s --start-period=120s --retries=3 \
  CMD curl --fail --silent --show-error --output /dev/null --max-time 10 http://127.0.0.1/

The healthcheck probes Synchronet's internal webv4 HTTP listener on http://127.0.0.1/ every 120 seconds (avoiding excessive guest login/logout log noise from shorter intervals) and treats HTTP 2xx/3xx as healthy.

On a fresh /sbbs-data volume, webv4/index.xjs requires a Guest account before it can serve the index. The CI smoke test waits for webv4 to accept requests (so initialization is complete), then bootstraps an initial user and the Guest account with the upstream makeuser.js / makeguest.js scripts before waiting for status=healthy, exactly as a real install does. Existing volumes with a Guest account are untouched.

⁠Upgrading and Migrating from bbsio/synchronet

This image preserves the /sbbs-data layout for the Synchronet 3.22a data line.

Important: The old bbsio/synchronet:latest tag is frozen on Synchronet 3.19c (April 2023), which can spin at 100% CPU while idle in sbbs/termOutput. Do not downgrade 3.22a data to 3.21e or older.

  1. Stop the existing BBS container and take a cold backup of the entire /sbbs-data tree (tar --numeric-owner --acls --xattrs -czf ...).
  2. Start a side-by-side trial container against a copy of /sbbs-data on unused loopback ports.
  3. Verify healthcheck status, startup logs, enabled protocols, and idle CPU.
  4. Pin the reviewed image digest in Compose (dgcosenza/synchronet:latest@sha256:<digest>), recreate the service, and keep the previous image tag and backup for rollback.

⁠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/synchronet-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
  --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
  ghcr.io/dgcosenza/synchronet:latest

# Identical digest on Docker Hub: replace ghcr.io/dgcosenza/synchronet:latest with dgcosenza/synchronet:latest
⁠Verify SPDX / CycloneDX SBOM attestations and SLSA Build Provenance
cosign verify-attestation \
  --type spdxjson \
  --certificate-identity-regexp="^https://github\.com/dgcosenza/synchronet-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
  --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
  ghcr.io/dgcosenza/synchronet@sha256:<arch-digest>

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

⁠Security

  • Vulnerability scan policy (all severities with a fix): Every CI build runs Trivy (full table artifact, SARIF upload to GitHub Code Scanning, and blocking --ignore-unfixed gate) and Grype (--only-fixed, severity cutoff negligible, blocking gate), plus generates an SPDX SBOM artifact via Syft. Publication is blocked on any fixable finding of any severity.
  • Current status: 0 fixable vulnerabilities of any severity across Debian 13 OS packages and runtime libraries (verified every build; unfixed upstream Debian advisories, if any, are recorded in the trivy-report CI artifact and resolved automatically on daily rebuilds once Debian Security publishes fixes).
  • Non-root runtime and capability model: The BBS runs as non-root sbbs (UID/GID 1000) with cap_net_bind_service=+ep on /sbbs/exec/sbbs. Because initialization adjusts volume ownership and low-port privileges via sudo, do not set security_opt: no-new-privileges:true on this container.
  • CA bundle: Ships the current Debian 13 CA bundle at /etc/ssl/certs/ca-certificates.crt.
  • Secret-scanning false-positive allowance: Trivy's secret scanner stays enabled on every build. trivy-secret.yaml contains a single path-scoped allow rule for one upstream binary demo pixmap (dist/xtrn/univiewer/demo/univiewer_demo.ppm) whose raw pixel bytes match a SendGrid token regex. No credential is present; no other rule or file is exempted, and the all-severity fixable-vulnerability gate is unchanged.
  • See SECURITY.md⁠ for reporting guidelines.

⁠Build Locally

git clone https://github.com/dgcosenza/synchronet-docker.git
cd synchronet-docker

docker buildx build \
  --platform linux/amd64 \
  --load \
  --build-arg BUILD_DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
  --build-arg IMAGE_REVISION="$(git rev-parse HEAD)" \
  -t dgcosenza/synchronet:local \
  .
Build ArgDefaultPurpose
DEBIAN_BASEdebian:13.8-slim (pinned by digest)Base OS image; CI resolves the newest official Debian 13 point release.
SYNCHRONET_COMMITc20f7377662025b629978cfeade8563a6a7ac97ePinned upstream Synchronet commit (overridden daily by CI).
SYNCHRONET_VERSION3.22aExpected version validated against sbbsdefs.h.
DENO_VERSION2.9.8Official Deno release used by the init script (overridden daily by CI).
DENO_SHA256e890975b...Verified SHA-256 checksum of the Deno archive.
BUILD_DATEunknownRFC 3339 UTC build timestamp.
IMAGE_REVISION""Packaging repository Git SHA.
IMAGE_SOURCEhttps://github.com/dgcosenza/synchronet-dockerSource URL for OCI labels.

⁠Update Policy

.github/workflows/daily.yml⁠ runs automatically every day at 04:45 UTC, on pushes to main, on pull requests (verification only, without pushing), and via workflow_dispatch. Every scheduled run executes a seven-step automated pipeline (gated by .github/workflows/public-check.yml):

  1. Resolve: Checks latest Synchronet master commit (SynchronetBBS/sbbs), validates sbbsdefs.h, resolves latest SHA-256-verified Deno and Debian 13 slim base digest.
  2. Rebuild & gate: Daily --no-cache build on linux/amd64, SPDX/CycloneDX SBOMs, Dive >=95%, Trivy + Grype (0 fixable CVEs of any severity), SARIF upload, and tests/smoke.sh⁠.
  3. Publish & attest: Mirrors identical Cosign-signed SLSA L3 digests to GHCR, Docker Hub, and configured secondary registries, plus a signed GitHub Release.
  4. Docs sync & alerting: Auto-commits versions.json/README.md/CHANGELOG.md, syncs Docker Hub overview, and manages a single ci-failure issue.

⁠Design Decisions

  • Debian 13 (debian:13.8-slim) multi-stage build: Synchronet compiles C/C++ components (including vendored cryptlib and SpiderMonkey) cleanly against current Debian 13 glibc and OpenSSL 3. Compilers and -dev headers stay strictly in the build stage and are excluded from the runtime image.
  • Checksum-verified Deno runtime: Kept solely for drop-in compatibility with the bbs-io/synchronet-docker /sbbs-data initialization logic (init.ts), verified against the official release SHA-256 on every build.
  • 120-second healthcheck interval: Synchronet records a guest login/logout session for every HTTP probe; 120 seconds keeps liveness detection responsive without flooding BBS logs.
  • No no-new-privileges: Required because sbbs-init reconciles /sbbs-data ownership and sbbs uses cap_net_bind_service to bind classic BBS ports below 1024.

⁠License

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

  • Container packaging, scripts, CI workflows, and documentation (packaging: MIT): Licensed under the MIT License⁠ — copyright Daniel G. Cosenza from FNX Labs.
  • Bundled upstream software — Synchronet BBS (SynchronetBBS/sbbs, mirror of gitlab.synchro.net/main/sbbs) (upstream: GPL-2.0-or-later): Copyright Rob Swindell — licensed under the GNU General Public License (GPL-2.0-or-later)⁠, with XPDEV, SMBLIB, CIOLIB, UIFC, and XSDK under the LGPL. Initialization scripts are adapted from the ISC-licensed bbs-io/synchronet-docker⁠.

Full third-party notices are maintained in THIRD-PARTY-NOTICES.md⁠. Release history is maintained in CHANGELOG.md⁠.

Tag summary

Content type

Image

Digest

sha256:a6b71b1d4…

Size

129.7 MB

Last updated

about 12 hours ago

docker pull dgcosenza/synchronet