fix(base): skip the sshd forward assert when --check has not written the config #600

Sammanfogat
supernaut sammanfogade 2 incheckningar från fix/sshd-forward-assert-check-mode in i main 2026-10-08 19:52:05 +00:00
Ägare

Found while applying #599 to staging.

What

  • roles/base/tasks/main.yml: the sshd forward assertion from #598 is skipped when --check runs and "Configure sshd" reports a change. Check mode does not write the new file, so sshd -T still parses the old one and the assertion fails. That blocked the staging dry-run and would block any dry-run that flips keycloak_enabled. A real apply writes the file first and still enforces the assertion.
  • group_vars/staging/vault.yml: adds vault_keycloak_db_password and vault_keycloak_bootstrap_client_secret (encrypted). They were applied to staging with #599.

Verified

  • ansible-playbook -i inventory/staging.yml site.yml --check --diff --tags base: failed=0. The only change is the Match User admin block and the sshd restart.
  • Pre-push hooks: ansible-lint, gitleaks, prettier and the repo checks all pass.

Refs #570

Found while applying #599 to staging. ## What - **`roles/base/tasks/main.yml`:** the sshd forward assertion from #598 is skipped when `--check` runs and "Configure sshd" reports a change. Check mode does not write the new file, so `sshd -T` still parses the old one and the assertion fails. That blocked the staging dry-run and would block any dry-run that flips `keycloak_enabled`. A real apply writes the file first and still enforces the assertion. - **`group_vars/staging/vault.yml`:** adds `vault_keycloak_db_password` and `vault_keycloak_bootstrap_client_secret` (encrypted). They were applied to staging with #599. ## Verified - `ansible-playbook -i inventory/staging.yml site.yml --check --diff --tags base`: `failed=0`. The only change is the `Match User admin` block and the sshd restart. - Pre-push hooks: ansible-lint, gitleaks, prettier and the repo checks all pass. Refs #570
supernaut lade till 2 incheckningar 2026-10-08 19:45:28 +00:00
supernaut sammanfogade incheckning 90c74bf5b6 till main 2026-10-08 19:52:05 +00:00
supernaut tog bort grenen fix/sshd-forward-assert-check-mode 2026-10-08 19:52:05 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!600
Ingen beskrivning angiven.