Enhancement: Verify Proxmox TLS and hide bootstrap tokens #58

Merged
claude-bot Bot merged 1 commits from enhancement/secure-bootstrap-credentials into main 2026-11-23 01:48:40 +01:00

What changed

  • Verify each Proxmox host against its public CA in 02-k8s-bootstrap/certs/ instead of using curl -k.
  • Pass the Proxmox and k3s tokens outside process arguments.
  • Fetch the k3s installer from the v1.36.2+k3s1 release tag.
  • Add environment and stdin to ignoreChanges, so these new inputs do not re-run commands on live nodes.

Why

The Proxmox token has admin rights, but it was sent without verifying the server and was visible in process arguments, as was the k3s token. The installer script could also change independently of the pinned k3s version.

The CA files contain only public certificates. Reinstalling a Proxmox host creates a new CA, so its file must then be replaced.

Preview

k8s-bootstrap: 1 to create (wait-control-plane-vip-ready), 30 unchanged. Typecheck passes.

Each CA file was checked against its live host, and the pinned installer URL resolves.

Not tested

The rewritten VM start and k3s install scripts only run on a fresh install and have not been executed. This stack deploys only through the manual workflow.

## What changed - Verify each Proxmox host against its public CA in `02-k8s-bootstrap/certs/` instead of using `curl -k`. - Pass the Proxmox and k3s tokens outside process arguments. - Fetch the k3s installer from the `v1.36.2+k3s1` release tag. - Add `environment` and `stdin` to `ignoreChanges`, so these new inputs do not re-run commands on live nodes. ## Why The Proxmox token has admin rights, but it was sent without verifying the server and was visible in process arguments, as was the k3s token. The installer script could also change independently of the pinned k3s version. The CA files contain only public certificates. Reinstalling a Proxmox host creates a new CA, so its file must then be replaced. ## Preview `k8s-bootstrap`: 1 to create (`wait-control-plane-vip-ready`), 30 unchanged. Typecheck passes. Each CA file was checked against its live host, and the pinned installer URL resolves. ## Not tested The rewritten VM start and k3s install scripts only run on a fresh install and have not been executed. This stack deploys only through the manual workflow.
claude-bot Bot added 1 commit 2026-11-23 01:47:28 +01:00
enhancement(k8s-bootstrap): verify Proxmox TLS and hide bootstrap tokens
Deploy k8s Bootstrap / Bootstrap k3s Cluster (pull_request) Skipped
Deploy k8s Bootstrap / Pulumi Preview (pull_request) Successful in 45s
Secret Scan / Betterleaks (pull_request) Successful in 6s
3320f11e4b
The Proxmox API token has admin rights but was sent with TLS verification off and, like the k3s token, was visible in process arguments. Verify each host against its public CA in certs/ and pass both tokens outside the command line.

Fetch the k3s installer from the pinned release tag so the script cannot change independently of the version. The new environment and stdin inputs are ignored so they do not re-run commands on live nodes.
claude-bot Bot merged commit 3d5b2ba097 into main 2026-11-23 01:48:40 +01:00
Sign in to join this conversation.