Skip to content

fix(v2): dark-first private docs and hardened Caddy startup - #25

Open
ffworker wants to merge 9 commits into
mainfrom
fix/v2-private-docs-dark-contrast
Open

ffworker wants to merge 9 commits into
mainfrom
fix/v2-private-docs-dark-contrast

Conversation

@ffworker

@ffworker ffworker commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Operator findings (03.11.2026)

  • NetBird-only v2 preview had unreadable header, light theme default, marketing-like placeholder copy despite being a private personal documentation system. Fix: dark-first colors, clearly legible header, concise infrastructure runbook-centric landing and source selection.
  • Real collector has successfully imported 5 private repositories locally and strict Zensical build passed (BYTEGEIST DOCS V2 READY); no generated data or private manifest is added to this public PR.
  • First production Caddy start on the Pi3B+ repeatedly failed before application startup: exec /usr/bin/caddy: operation not permitted with cap_drop: ALL and no-new-privileges.

Root cause and deploy fix

The official caddy:2.10.2-alpine binary contains cap_net_bind_service=+ep; Linux rejects execve when no such capability exists in the container bounding set. This is upstream issue caddy-docker #396, with an exact matching failure. We listen internally at 8080, so the file capability is unnecessary.

  • Add v2/deploy/Dockerfile: inherit the exact pinned image and remove the Caddy binary's file capability (setcap -r); assert that getcap is empty.
  • Compose uses local image bytegeist-docs-caddy:2.10.2-nocaps built from deploy/Dockerfile.
  • Keep user: 10001:10001, cap_drop: ALL, no-new-privileges:true, read_only:true, read-only static/site config mounts, NetBird-IP-only host bind; do not give CAP_NET_BIND_SERVICE back.
  • CI now builds the derived image and executes caddy version as UID 10001 with all capabilities dropped and no-new-privileges; also checks Compose interpolation.

After review

On Pi in current local review-v2-dark branch: git fetch origin pull/25/head && git merge --ff-only FETCH_HEAD; then sudo env NETBIRD_IPV4=100.96.169.210 DOCS_PORT=8085 docker compose -f deploy/compose.yaml up -d --build.
Verify status/HTTP 200, actual 5-project navigation, unavailability on LAN IP, Audiobookshelf still HTTP 200. Initial content confidentiality and offline restore are separate acceptance gates. Never retire VPS02 docs before complete E2E acceptance.

Refs: BYT-108, BYT-110.

@ffworker ffworker changed the title fix(v2): dark-first private documentation UI and readable header fix(v2): dark-first private docs and hardened Caddy startup Nov 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant