sshd certificate auth: per-zone TrustedUserCAKeys, host certs, cert-only mode, sudo via map_group #18
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/machine-configs#18
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?
Host side of the SSH certificate epic (see machine-configs epic). Builds on
modules/kanidm-unix.nixfrom #17; same option-gating discipline: thinks + pis first, mini/game/test later by one line per host.Scope
modules/ssh-ca.nix→services-ssh-ca: installs the zone's client CA public key to/etc/ssh/ca/, setsTrustedUserCAKeys, and the host cert +HostCertificate. Zone is a per-host option; one fleet zone at first./etc/ssh/ssh_host_ed25519_key.pubwith thessh-host-signerrole at boot (first-boot script, key exists after ssh generation) or pre-generate host keys + certs in the image. Choose after proving timing in the harness; store the cert via OpenBao agent path, not in the store.AuthorizedKeysFile none(bare pubkeys refused),AuthorizedKeysCommandkept for service accounts / break-glass per #17.PasswordAuthentication,PermitRootLoginunchanged from base.nix.networking.knownHosts:@cert-authority <fleet domain> <host CA pubkey>so every host trusts every host cert.@cert-authority+ aCertSignhelper or documentedbao write ssh-client-signer/sign/...flow.map_groupkanidm-admins →wheel+wheelNeedsPassword = false; per-host sudoers stay in machine-configs keyed on kanidm groups (this is the "who runs what where" store now).task cache:push HOSTS='pi-01 pi-02 pi-03 pi-04'+task comin:retrybefore the Pi roll, AGENTS.md gotcha) →task fleet:statusto 7/7. Break-glassadminlogin re-verified with kanidmd and OpenBao stopped, at every stage.Hazards
adminbreak-glass is the only door during rollout; never remove it.getent passwdon a think decides; iac side templates follow, not the other way around).docs/ssh-ca.md.Done when
adminworks with kanidmd and OpenBao downdocs/ssh-ca.md: mint flow, grant/revoke zone membership, CA rotation procedureParent epic: lab/machine-configs#19
Related: machine-configs#41 covers the RouterOS exception — routers cannot take host certs, so their raw keys ship in the same known_hosts file this module renders. Design the module so harvested device entries and the @cert-authority line compose from one option.