Skip to content

fix(lab): close what the titan audit found (ADR-0136, ADR-0137) - #1757

Merged
Gerrrt merged 1 commit into
mainfrom
gerrrt/titan-audit-review-845a60
Nov 25, 2026
Merged

Gerrrt merged 1 commit into
mainfrom
gerrrt/titan-audit-review-845a60

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 25, 2026

Copy link
Copy Markdown
Owner

What changed

Nothing on a guest until --tags gpos and the next rebuild run. In the repo: Deny Tier 0 Logon on Members also refuses Domain and Enterprise Admins the console and RDP on members, keeping network logon for phoenix's SSH (ADR-0136, asserted in verify.yml). The lab domain is unpatched by design and refreshed by rebuild (ADR-0137). The Windows template puts the recovery partition before C:, and roles/base grows C: (a no-op on today's guests). build-the-lab-domain.md §10 no longer claims 5985 is open.

Why

The read-only audit of titan (2026-11-13, re-checked 2026-11-25) found:

  • an interactive AD\Administrator session on the relay target, which the GPO didn't stop because it named only Tier 0 Admins
  • no Windows patch since the template's baseline, and no stated policy
  • C: at 59 GB of an 80 GB disk
  • a stale §10 port table

This replaces the abandoned fix/titan-audit-findings (deleted). Compared with that branch:

Refs #448.

Blast radius

roles/gpos applies to every member in Servers and Workstations (titan, ramuh and the two endpoints), not the DCs. If the reasoning that a Windows OpenSSH key logon is a network logon is wrong, Ansible is locked out of the members. Roll out with --check and one member first. Recovery is the local Administrator at the console, which this doesn't touch. The template change affects the next Packer build only.

  • 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 (ADR count 137)

  • ./scripts/lint.sh: passed, but 8 checks were skipped and not run (yamllint, markdownlint-cli2, ruff ×2, actionlint, zizmor, ansible-lint, editorconfig-checker: no pipx or docker on this host). shellcheck, packer and tofu ran as local binaries, not the pinned versions.

  • PyYAML parses the four changed Ansible files, and the autounattend template parses as XML.

  • ansible-playbook --syntax-check wasn't possible: the ansible.windows collection isn't installed here.

  • check_close_keywords.py on the commit message passes.

  • make validate passes (not run: 14 GB free on /, about 38 GB needed. Left to CI.)

  • Deployed to the lab and confirmed working

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

🤖 Generated with Claude Code

The read-only audit of titan (2026-11-13, re-checked 2026-11-25) found four
things wrong in the repository's account of the lab domain:

- Deny Tier 0 Logon on Members named only Tier 0 Admins, so AD\Administrator
  could log on at a member's console. ADR-0136 adds Domain and Enterprise
  Admins to the interactive and RDP denies, keeps network logon for
  phoenix's SSH, and verify.yml asserts all three rights.
- Nothing said whether the six are patched. ADR-0137: not in place; the
  rebuild before each licence expiry is the refresh.
- Setup put the recovery partition after C:, pinning titan's C: at 59 GB of
  80. The template now creates it first, and roles/base grows C: (a no-op on
  today's guests).
- build-the-lab-domain.md §10 still listed 5985 on the servers;
  SetupComplete.cmd has disabled WinRM on every clone since #448.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt enabled auto-merge (squash) November 25, 2026 23:15
@Gerrrt
Gerrrt merged commit 6445c6d into main Nov 25, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/titan-audit-review-845a60 branch November 25, 2026 23:28
Gerrrt added a commit that referenced this pull request Nov 26, 2026
)

The read-only audit of ramuh (2026-11-13, re-checked 2026-11-25, off-box
checks from phoenix 2026-11-26) changes nothing on the guest. #1757
already covers its tier, patch, disk and 5985 findings. This records the
rest:

- architecture.md and network.md: the four servers were installed on
  2026-10-07 (#448's rebuild), not only built by hand in September.
- group_vars/all.yaml and build-the-lab-domain.md: on a member, Ansible's
  Administrator is the local account, not AD\Administrator, so ADR-0136's
  reason for keeping network logon does not hold there. Left open.
- LabWindowsEvaluationExpiring no longer says "Rearm it": the four
  servers have no rearm left.

The changelog lists three open decisions (the Kerberoast "real service",
Spooler on the ucd host, LAPS) and verify.yml's "no root hints" failure
on both DCs.

Refs #448.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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