Skip to content

fix(lab): decide what the bahamut audit found (ADR-0140) - #1765

Merged
Gerrrt merged 3 commits into
mainfrom
gerrrt/bahamut-audit-handoff-05c8ad
Nov 26, 2026
Merged

Gerrrt merged 3 commits into
mainfrom
gerrrt/bahamut-audit-handoff-05c8ad

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

What changed

Three new switches in ADR-0083's model on the lab DCs: unsigned_ldap, maq and spooler. Each has a role, a tag and a verify.yml assertion. dsHeuristics is declared as a kept shipped default and asserted unset. ADR-0140 records the decisions. Applying the tags with their defaults sets ms-DS-MachineAccountQuota to 0 and stops and disables Print Spooler on bahamut and leviathan. LDAP signing stays enforced, as it is today.

Why

The read-only audit of bahamut (2026-11-13 to 2026-11-25) found four gaps between the DCs and the repository:

  • LDAP signing is enforced on both DCs, although ADR-0029 says it was removed, and nothing in ansible/ encoded either position.
  • MAQ is at 10.
  • Spooler runs on both DCs.
  • dsHeuristics is unset.

MAQ, Spooler and dsHeuristics were undeclared. MAQ and Spooler also sat outside ADR-0083's negative test. After this change, a plain lab-domain.yml plus verify.yml is that test again. The audit's finding 3 (pending updates) was already settled by ADR-0137. Findings 7 and 8 (DFSR noise and staging leftovers) follow in a separate PR.

Refs #449

Blast radius

The two lab DCs only (VLAN 30). Nothing changes until someone runs --tags maq,spooler (or a full plain run). After that, ordinary users can no longer create computer accounts, and the DCs stop printing. Neither is used: joins run as AD\Administrator, and rbcd brings its own principal. unsigned_ldap is a no-op while absent. If something goes wrong, -e weakness_<name>_state=present restores the shipped default.

  • 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: OK.

  • ./scripts/lint.sh: passed, but 8 checks were skipped and NOT run on phoenix: yamllint, markdownlint-cli2, ruff ×2, actionlint, zizmor, ansible-lint and editorconfig-checker (no pipx or docker). CI runs them.

  • ansible-playbook --syntax-check lab-domain.yml verify.yml: both pass. All the YAML parses.

  • make validate was not run: phoenix has 14 GB free and the suite needs about 38 GB.

  • --check --tags unsigned_ldap,maq,spooler against both DCs (2026-11-26): unsigned_ldap ok, maq would change bahamut (10 → 0), spooler would change both. The first dry run showed win_service also flipping Spooler's desktop_interact; the role is now PowerShell and touches only start type and state.

  • Not yet applied to the lab. Next: --check --tags unsigned_ldap,maq,spooler, then apply, then verify.yml, then a SharpHound collection with every switch off.

  • make validate passes

  • 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 bahamut (2026-11-13 to 2026-11-25) found four things
on the DCs that the repository contradicted or never mentioned:

- LDAP signing enforced on both DCs, though ADR-0029 says removed. Now the
  unsigned_ldap switch: absent leaves it enforced, present writes
  LdapServerEnforceIntegrity 0.
- ms-DS-MachineAccountQuota 10 and Print Spooler running on both DCs, both
  undeclared. Now the maq and spooler switches, whose absent side hardens:
  a plain run sets the quota to 0 and disables Spooler on the DCs.
- dsHeuristics unset (DS 3051/3054): kept as shipped, asserted unset.

Three roles in ADR-0083's model, three plays, verify.yml asserting all nine
toggles plus dsHeuristics, and the runbooks brought in line.

Refs #449

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt enabled auto-merge (squash) November 26, 2026 05:35
Gerrrt and others added 2 commits November 26, 2026 05:55
win_service manages desktop_interact too, defaulting it to false, and
Server 2025 ships Spooler with it true: the --check run against both DCs
showed it would flip. PowerShell, comparing first, touches only the two
properties the switch is about.

Refs #449

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main took ADR-0139 for the MCP server's key on smaug, so this branch's ADR
becomes ADR-0140, with every reference moved and README's count at 140. The
changelog keeps both 2026-11-26 entries. Also fixes the Lint job: a
127-character line in weakness_unsigned_ldap (yamllint, ansible-lint), and the
runbook's new NOTE sat against the IMPORTANT block (MD028).

Refs #449

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt Gerrrt changed the title fix(lab): decide what the bahamut audit found (ADR-0139) fix(lab): decide what the bahamut audit found (ADR-0140) Nov 26, 2026
@Gerrrt
Gerrrt merged commit 6c63b2c into main Nov 26, 2026
9 of 10 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/bahamut-audit-handoff-05c8ad branch November 26, 2026 06:19
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