Skip to content

docs(smaug): turn TrueNAS Connect off (ADR-0133) and make bilbo read-only (ADR-0134) - #1738

Merged
Gerrrt merged 3 commits into
mainfrom
docs/adr-smaug-tnc-and-media-acl
Nov 25, 2026
Merged

Gerrrt merged 3 commits into
mainfrom
docs/adr-smaug-tnc-and-media-acl

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

What changed

Two decisions from the 2026-11-13 smaug audit, recorded and given procedures. Nothing on the running lab changes until the runbook steps are done; both are marked Not yet done.

  • ADR-0133: turn TrueNAS Connect off on smaug. It decides the egress question ADR-0047's fourth decision left open. TrueNAS Connect has been registered since first boot and read as enabled on 2026-11-13. It duplicates a paging path that already exists (ZpoolVdevNotOnline, ZpoolNotOnline, SmartDrive*). build-the-nas.md §6.12 is the procedure.
  • ADR-0134: make the televisions' SMB user, bilbo, read-only on the media share. It decides the change ADR-0051 deferred. The preset's builtin_users Modify entry gives way to Modify for samwise by name, applied recursively. bilbo keeps read through everyone@. build-the-nas.md §5 Make bilbo read-only is the procedure, with the test ADR-0051 asked for.
  • ADR-0047 and ADR-0051 get the back-link notes ADR-0115 requires.
  • network.md records that TrueNAS Connect rides smaug's internet egress until §6.12 is done. security.md records that bilbo can still write until §5's step is done. README's ADR count goes from 132 to 134.

Why

The read-only audit of smaug on 2026-11-13 found TrueNAS Connect enabled and recorded nowhere, and found the TV credential able to delete an unsnapshotted library. Both were open questions in existing ADRs (0047, 0051).

Blast radius

None at merge: documents only. When the steps are run on smaug:

  • §6.12 removes the mailbox copy of TrueNAS's alerts. Prometheus remains the paging path, and step 1 proves it first. A failed periodic snapshot task then reaches only the web UI; ADR-0133 names that gap.

  • §5's ACL change takes write away from anything that wrote as bilbo or through builtin_users. Jellyfin, Audiobookshelf and Navidrome mount read-only, and MakeMKV writes rips/ as its owner, so none of them is affected.

  • No change to network segmentation or firewall rules

  • No new port published to a VLAN that could not already reach the service

  • No credential added outside secrets/*.sops.yaml

Verification

  • python3 scripts/check_docs.py: docs OK — 187 Prometheus + 28 Loki rules, 8 dashboards, 156 panels, 14 assertions. This includes ADR-0115's back-link check and the README ADR count.

  • ./scripts/lint.sh: passed, but 14 checks were skipped and not run: yamllint, markdownlint-cli2, shellcheck, ruff ×2, actionlint, zizmor, packer ×2, tofu ×3, ansible-lint, editorconfig-checker. CI runs them with --require-all.

  • make validate was not run: make is not installed where this was authored.

  • git diff --check: clean.

  • make validate passes

  • Deployed to the lab and confirmed working (not yet: §6.12 and §5's step are Not yet done)

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

Copilot AI balanced review requested due to automatic review settings November 25, 2026 00:07
@Gerrrt
Gerrrt enabled auto-merge (squash) November 25, 2026 00:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The runbook schedules ACL verification before required services and access exist, and its monitoring checks can pass despite stale collectors or unverified urgent notification delivery.

2 open issues
What changed in this PR

Documents two pending hardening changes for smaug, extending the existing architecture decisions and NAS runbook. This is documentation-only; the running lab remains unchanged until the procedures are completed.

Changes:

  • Record decisions to disable TrueNAS Connect and make bilbo read-only on the media share.
  • Add implementation and verification procedures, both marked Not yet done.
  • Add ADR back-links, document current exposure, and update the ADR count to 133.
File Description
README.md Updates the ADR count to 133.
docs/​security.md Records current SMB write access and the pending restriction.
docs/​runbooks/​build-the-nas.md Adds ACL-change and Connect-disable procedures.
docs/​network.md Records Connect’s current internet egress.
docs/​adr/​0133-make-the-televisions-smb-user-read-only-on-the-media-share.md Defines read-only access for bilbo and named write access for samwise.
docs/​adr/​0132-turn-truenas-connect-off-on-smaug.md Records the Connect-disable decision and alerting trade-offs.
docs/​adr/​0051-let-hicks-workstations-mount-the-media-share-as-a-user-of-their-own.md Adds a back-link resolving the deferred ACL decision.
docs/​adr/​0047-collect-smaug-smart-through-a-root-cron-and-the-textfile-collector.md Adds a back-link resolving the Connect egress question.

Review effort: Balanced

Comment thread docs/runbooks/build-the-nas.md Resolved
Comment thread docs/runbooks/build-the-nas.md Resolved
Gerrrt and others added 2 commits November 24, 2026 16:29
main took ADR-0132 for the offsite copy (#1737), so this branch's two ADRs
move to ADR-0133 (TrueNAS Connect) and ADR-0134 (bilbo read-only), with every
reference this branch added. README's count is 134.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…6.12's paging path end to end

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt Gerrrt changed the title docs(smaug): turn TrueNAS Connect off (ADR-0132) and make bilbo read-only (ADR-0133) docs(smaug): turn TrueNAS Connect off (ADR-0133) and make bilbo read-only (ADR-0134) Nov 25, 2026
@Gerrrt
Gerrrt merged commit 1f54a15 into main Nov 25, 2026
10 checks passed
@Gerrrt
Gerrrt deleted the docs/adr-smaug-tnc-and-media-acl branch November 25, 2026 02:40
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.

2 participants