Commit 7aa324f
committed
fix(cloud-iac): address Greptile review on PR #7890
Three issues raised by Greptile on the initial commit:
P1 deploy user had no SSH authorized_keys, so the auto-deploy
workflow (which SSHes as `deploy`, not root) would fail until
keys were copied out-of-band. cloud-init now expands the same
operator key list into the deploy user via a Terraform-template
loop, so first-boot the user is reachable.
P2 (sec) Replaced `curl get.docker.com | sh` with the official
Docker apt repo + GPG-verified keyring (cloud-init handles the
keyring). Replaced `curl bun.sh/install | bash` with a pinned
GitHub release download whose SHA-256 is verified against the
same release's SHASUMS256.txt before extracting.
P2 Keyed hcloud_ssh_key.operators by sha256(key) prefix instead of
list index, so inserting an operator at the start of
var.ssh_public_keys no longer cascades into renames/recreates
of every subsequent SSH key resource.1 parent 3a896d4 commit 7aa324f
2 files changed
Lines changed: 37 additions & 8 deletions
File tree
- packages/cloud-infra/cloud/terraform/hetzner/control-plane
- cloud-init
Lines changed: 30 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
30 | 44 | | |
31 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
32 | 49 | | |
33 | 50 | | |
34 | 51 | | |
| |||
44 | 61 | | |
45 | 62 | | |
46 | 63 | | |
47 | | - | |
48 | | - | |
49 | | - | |
| 64 | + | |
| 65 | + | |
50 | 66 | | |
51 | 67 | | |
52 | | - | |
53 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
54 | 79 | | |
55 | 80 | | |
56 | 81 | | |
| |||
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
33 | | - | |
34 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
0 commit comments