[gemini] Implement Lightning-Gated Node Bootstrap feature (#50) #98
Reference in New Issue
Block a user
Delete Branch "gemini/issue-50"
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?
Fixes #50
This PR implements the Lightning-Gated Node Bootstrap feature. It includes:
bootstrap_jobstable schema inlib/db/src/schema/bootstrap-jobs.ts(was pre-existing but verified).artifacts/api-server/src/lib/provisioner.tswithProvisionerServiceto handle SSH key generation, Tailscale auth-key creation, and Digital Ocean droplet provisioning viacloud-init. This includes a stub mode.artifacts/api-server/src/routes/bootstrap.tswithPOST /api/bootstrapandGET /api/bootstrap/:idroutes to initiate and monitor bootstrap jobs.artifacts/api-server/src/app.ts.calculateBootstrapFeeSats()inartifacts/api-server/src/lib/pricing.tsalready exists and correctly uses theBOOTSTRAP_FEE_SATSenvironment variable.DO_VPC_UUID,DO_SSH_KEY_FINGERPRINT) inreplit.md.