Epic: SSH certificate access — kanidm identity + OpenBao zone CAs, no FreeIPA #19
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/machine-configs#19
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SSH certificate access architecture. Decided in the 2026-11-07 design session (research in session record
lab/session-2026-11-07-openbao-pki-fleet.mdfollow-up).FreeIPA was evaluated as the host-authz store and rejected: 2.5-3.5 GB idle RSS with mandatory Dogtag, realm-must-match-DNS-domain prerequisites, a dead k8s operator ecosystem, and nixpkgs ships the server only as a client stub (
--disable-server). kanidm will not close the gap: its HBAC/sudo request (kanidm#2517) is labelblockedbehind the domain-join epic (#2495, zero activity since 2024). The already-live stack covers the whole design: kanidm = who-you-are + zone membership, OpenBao = credential mint + audit, Nix = sudo content.Decisions
PasswordAuthentication nostays the fleet default and the OTP mode of the SSH engine is never mounted.ssh-*); group membership is the entire user-to-machine matrix. The zone split starts as a single fleet zone and grows only on real need.TrustedUserCAKeys, so the CA boundary is the access enforcement: a cert minted for zone A cannot authenticate to zone B.bound_claimson the kanidmgroupsclaim (custom claim viakanidm system oauth2 update-claim-mapif the stock claim shape needs it). Zone group membership gates the sign policy.allowed_users_template = {{identity.entity.aliases.<jwt-mount-accessor>.name}}, TTL ~15-30m, extensionspermit-ptyonly. A mint can only carry the caller's own principal.AuthorizedKeysFileso bare pubkeys cannot authenticate;AuthorizedKeysCommand(kanidm key distribution, #17) remains for service accounts and break-glass only.ssh-host-signermount signs host keys;HostCertificateon hosts,@cert-authorityon clients. TOFU is dead.map_groupforwheel, zone admin groups for profiles). No IdP stores them.Gotchas
TrustedUserCAKeysis a flat key list, unrelated to the x509pki-infrachain from #9. SSH CA rotation = replace the public key on every host and wait out TTLs.getent passwdreports for a kanidm user (spn form). Verify on one think before templating roles.pam_allowed_login_groupsgates certificate logins too: enforcement is at the PAM account phase (source-verified:acct_mgmt->PamAccountAllowed-> group intersect), and an empty list fails closed.adminnever depends on kanidmd or OpenBao. Cert private keys live in the raft store, covered by the existing openbao-snapshot CronJob.Children
Builds on the security module epic #7. Sequence: #17/#48 land first (login gate exists), then server-side mounts/auth roles, then cert-only sshd host by host starting at the vm:e2e harness.
Added child: machine-configs#41 — known_hosts for RouterOS (harvest host keys over REST, distribute fleet-wide). RouterOS can do neither host certs nor CA-trusted logins (RouterOS 7.26 manual: /ip/ssh host-key export/import only, /user/ssh-keys per user, /ip/ssh/known-hosts raw ed25519/RSA lines; cert support is an open vendor feature request). The @cert-authority line in #18 kills TOFU for OpenSSH hosts; #41 is what makes the three rb5009/crs309 boxes prompt-free and strict-host-key-checking safe, including re-harvest after netinstall re-images.