OpenBao SSH CAs: signer mount + host CA + JWT auth bound to kanidm groups + sign policies #49
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac#49
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?
Server side of the SSH certificate epic (lab/machine-configs epic below). Terraform under the OpenBao root established in lab/iac#47, applied via tofu-controller.
Scope
secrets enable -path=ssh-client-signer ssh(one CA to start; add-ssh-<zone>mounts when zones become real).config/ca generate_signing_key=true. SSH CAs are standalone: no chain to the x509 root from lab/machine-configs#9.allow_user_certificates,key_type=ca, ttl 30m,default_extensions = {permit-pty},allowed_users_template = {{identity.entity.aliases.<jwt-mount-accessor>.name}},key_ref/allowed_user_key_identifiersto taste.auth.animeteamspeak.moe, client provisioned via lab/iac#48/#35 pattern):oidctype,user_claim= the login claim that matches the ssh principal,bound_audiences. Role per zone; zone gating =bound_claimson the kanidm groups claim (or anupdate-claim-mapcustom claim on the OpenBao oauth2 client).allow_host_certificates=true,allowed_domainson the fleet domain.ssh-<zone>/sign/*read), attached to the matching JWT role only. Nothing else gets sign paths.auth/*/loginandssh-*/sign/*; ship to VictoriaLogs (clusters side, follow-up).Done when
bao login -method=oidcwith a kanidm session yields a signed cert carrying only the caller's principalParent epic: lab/machine-configs#19