Skip to content

docs(lab): ADR-0145 runs no AD CS in the lab domain, so no LDAPS or PKINIT - #1785

Merged
Gerrrt merged 2 commits into
mainfrom
gerrrt/lab-no-adcs-adr
Nov 27, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
gerrrt/lab-no-adcs-adr

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

What changed

ADR-0145 records that the lab domain runs no AD CS, so the DCs have no LDAPS or PKINIT certificate. verify.yml now fails on any DC if the forest gains an enrollment service or a CA in NTAuthCertificates. build-the-lab-domain.md §5a lists the certificate events as expected, build-the-bloodhound-guest.md links the ADR, README's ADR count goes to 143, and there is a changelog entry. Nothing on the DCs changes.

Why

Finding #6 of the leviathan audit (read-only, 2026-11-13 to 2026-11-26): neither DC has a certificate, and the repository never said whether that was intended. On 2026-11-27 both DCs read:

  • LocalMachine\My and the NTDS store empty, and the AD CS role not installed;
  • no enrollment service and no AIA CA in the Configuration partition, and no NTAuthCertificates object at all;
  • 636 and 3269 listening with nothing behind them;
  • in 30 days, DS 1220 once, KDC 19/29 (10 on leviathan, 4 on bahamut) and CertEnroll 86 (6 each).

Keeping it this way is the decision. An enterprise CA would bring ESC1 to ESC8 outside ADR-0083's switch model. With web enrollment it would also complete the coercion relay path that ADR-0141 says does not exist, and a plain run would stop being the negative test. An AD CS exercise is left to a later ADR, as switches.

Blast radius

None on the running lab. This PR is an ADR, docs, and one more read-only assertion in verify.yml. If the assertion is wrong, verify.yml fails on the DCs, and it is checked against them below.

  • 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. The ADR count checks against the files.

  • ./scripts/lint.sh: passed, with 8 checks skipped and not run on phoenix (yamllint, ansible-lint, ruff, markdownlint-cli2, editorconfig-checker, actionlint, zizmor, among them). CI runs them.

  • ansible-playbook --syntax-check verify.yml: OK.

  • verify.yml --limit 'dcs:titan:ramuh' from this branch: the new check passes on both DCs. The only failure on each of the four is no unattend.xml in Panther, from fix(lab): roles/base removes Panther\unattend.xml, and verify.yml asserts it #1778, which is merged but not yet applied. The first version of the check failed on both DCs because NTAuthCertificates is absent and @($null).Count is 1. I tested the fix on leviathan before committing it.

  • I did not test that the check catches a real CA. That would mean installing one.

  • Number: open PR docs(phoenix): close the audit's open items (ADR-0143, ADR-0144) #1782 claims ADR-0143 and 0144 (0142 is on main), so this one is 0145. Whichever merges second updates README's count.

  • make validate was not run: phoenix has 14 GB free on /, and the suite pulls about 38 GB.

  • make validate passes

  • Deployed to the lab and confirmed working

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

🤖 Generated with Claude Code

…KINIT

The leviathan audit found no certificate on either DC: 636 and 3269 listen
with nothing behind them, and KDC 19/29, CertEnroll 86 and DS 1220 are logged
at boot. The repository never said whether that was meant. ADR-0144 makes it
deliberate. An enterprise CA would bring the ESC paths outside ADR-0083's
switch model, and would complete the coercion relay path that ADR-0141 says
does not exist. verify.yml now fails if an enrollment service or an NTAuth CA
appears. The runbook calls the events expected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt enabled auto-merge (squash) November 27, 2026 14:09
Keeps both sides of the 2026-11-27 changelog conflict. Open PR 1782
now claims 0143 and 0144, so the no-AD-CS ADR moves to 0145, and
README counts 143 ADRs (0142 landed on main). The verify.yml check is
rewrapped under ansible-lint's 120-character limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt Gerrrt changed the title docs(lab): ADR-0144 runs no AD CS in the lab domain, so no LDAPS or PKINIT docs(lab): ADR-0145 runs no AD CS in the lab domain, so no LDAPS or PKINIT Nov 27, 2026
@Gerrrt
Gerrrt merged commit bea952a into main Nov 27, 2026
9 of 10 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/lab-no-adcs-adr branch November 27, 2026 14:50
Gerrrt added a commit that referenced this pull request Nov 27, 2026
Keeps both 2026-11-27 changelog entries. ADR-0145 has landed (#1785),
so the audit entry names it instead of the open PR, and its pointers to
neighbouring entries say below, where they now sit.

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