Repository navigation
Commit 5fef1e0
committed
smoke: the vm key is 0600 before ssh is asked to use it
Run 7 finally booted the guest all the way to a login prompt — the
console karg fix held — and still died waiting for ssh. The reason was
waiting in the kept artifacts: the throwaway key on disk is 0644, and
ssh refuses a world-readable private key outright. The smoke runs as
root with BatchMode, so the refusal was swallowed and the stage read
as 'no ssh within 1800s' while the guest sat at its prompt, reachable
and willing, for half an hour.
Two layers now enforce what should never have depended on whoever
wrote the file first: kuma vm sets the mode on the private key
whatever its age (a reused VM directory must heal, not inherit), and
the boot stage chmods the key at the use site, so an artifact kept by
an older binary still works.1 parent db39922 commit 5fef1e0
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3203 | 3203 | | |
3204 | 3204 | | |
3205 | 3205 | | |
3206 | | - | |
| 3206 | + | |
| 3207 | + | |
| 3208 | + | |
| 3209 | + | |
3207 | 3210 | | |
3208 | 3211 | | |
3209 | 3212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4104 | 4104 | | |
4105 | 4105 | | |
4106 | 4106 | | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
| 4110 | + | |
| 4111 | + | |
| 4112 | + | |
| 4113 | + | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
4107 | 4117 | | |
4108 | 4118 | | |
4109 | 4119 | | |
| |||
0 commit comments