Bootstrap Authentication: b me and b trust
#21
Reference in New Issue
Block a user
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?
Bootstrap requires a mechanism for client-side authentication and provisioning flow. Bootstrap Auth Server introduces a secure way to provision secrets to client machines using SSH Ed25519 keys for identity verification and
agefor secure payload decryption, overseen by an administrator via a trust-verification mechanism.Proposed / Implemented Architecture
The authentication logic is encapsulated within a modular Authentication Plugin (
auth.sh), which is lazy-loaded upon triggering the commands.Requester Mode (
b me):~/.config/bootstrap-client/if not present.POST /api/registerwith the public key, hostname, and OS.user_code(e.g.Oi1r2P) andchallenge_nonce.POST /api/challenge/pollusing standardssh-keygen -Y signsignature on the nonce.agepayload using the client's local private key directly (age --decrypt -i <private_key>) and writes the decrypted secrets to~/.config/bootstrap-client/secrets.decrypted.Approver Mode (
b trust <user_code>):GET /api/pending/<user_code>.ssh-keygen -Y signunder thebootstrapnamespace.POST /api/approve.