fix(ipa): harden script and update module docs #82

Merged
beatzaplenty merged 1 commits from worktree-ipa-client-module into main 2026-07-28 00:25:13 +00:00
Owner

Script fixes:

  • Rename HOSTNAME variable to TARGET (shadowed the bash builtin)
  • Fix ipa-getkeytab -s to always use IPA_SERVER, not DC_HOST (diverge if
    --dc is overridden to a jump host)
  • Remove dead REALM variable
  • Add EXIT trap to delete the plaintext keytab if the script aborts before
    sops encryption completes; cleared after successful encrypt
  • Distinguish real ipa host-add failures from "already exists" instead of
    swallowing all errors with || true
  • Warn explicitly when no platform age keys exist for the target (keytab
    would be admin-only and the host couldn't decrypt it at boot)
  • Fix sops fallback from pinned nixos-25.11 channel to nixpkgs (uses the
    repo's own flake.lock)
  • Expand "next steps" output to include networking.domain and nameservers
    lines that host.nix requires for IPA membership

Module docs:

  • Point to the script as the primary setup path; move manual steps to a
    fallback section
  • Note that certs/ipa-ca.crt is already committed (no need to re-fetch)
  • Document the networking.domain and nameservers requirements in the header
  • Add sync-host-keys.sh as explicit step 0

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Script fixes: - Rename HOSTNAME variable to TARGET (shadowed the bash builtin) - Fix ipa-getkeytab -s to always use IPA_SERVER, not DC_HOST (diverge if --dc is overridden to a jump host) - Remove dead REALM variable - Add EXIT trap to delete the plaintext keytab if the script aborts before sops encryption completes; cleared after successful encrypt - Distinguish real ipa host-add failures from "already exists" instead of swallowing all errors with || true - Warn explicitly when no platform age keys exist for the target (keytab would be admin-only and the host couldn't decrypt it at boot) - Fix sops fallback from pinned nixos-25.11 channel to nixpkgs (uses the repo's own flake.lock) - Expand "next steps" output to include networking.domain and nameservers lines that host.nix requires for IPA membership Module docs: - Point to the script as the primary setup path; move manual steps to a fallback section - Note that certs/ipa-ca.crt is already committed (no need to re-fetch) - Document the networking.domain and nameservers requirements in the header - Add sync-host-keys.sh as explicit step 0 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
beatzaplenty added 1 commit 2026-07-28 00:25:07 +00:00
fix(ipa): harden script and update module docs
Check NixOS configurations / eval-hosts (pull_request) Failing after 9m53s
f5d29be041
Script fixes:
- Rename HOSTNAME variable to TARGET (shadowed the bash builtin)
- Fix ipa-getkeytab -s to always use IPA_SERVER, not DC_HOST (diverge if
  --dc is overridden to a jump host)
- Remove dead REALM variable
- Add EXIT trap to delete the plaintext keytab if the script aborts before
  sops encryption completes; cleared after successful encrypt
- Distinguish real ipa host-add failures from "already exists" instead of
  swallowing all errors with || true
- Warn explicitly when no platform age keys exist for the target (keytab
  would be admin-only and the host couldn't decrypt it at boot)
- Fix sops fallback from pinned nixos-25.11 channel to nixpkgs (uses the
  repo's own flake.lock)
- Expand "next steps" output to include networking.domain and nameservers
  lines that host.nix requires for IPA membership

Module docs:
- Point to the script as the primary setup path; move manual steps to a
  fallback section
- Note that certs/ipa-ca.crt is already committed (no need to re-fetch)
- Document the networking.domain and nameservers requirements in the header
- Add sync-host-keys.sh as explicit step 0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
beatzaplenty merged commit 2d46d25a67 into main 2026-07-28 00:25:13 +00:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No labels
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: beatzaplenty/nixos#82