Add ability for verifiable download of binary artefacts for use in provision scripts
- Dominant language
- Go
- Stars
- 21.9k
- Forks
- 957
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 53
Description
### Description
Currently if a certain tool is needed in provision script and integrity protection is required the only option is to:
0. detect machine architecture to construct correct url
1. use curl to download the tool
2. use sha256 to verify the integrity of downloaded binary
3. `chmod +x`
It would be extremely useful if lima could do this job for us. It could be implemented similarly as it is done for `images` and `containerd.arhives`
```
provision:
# `system` is executed with the root privilege
- mode: system
artifacts:
- location: "https://github.com/twpayne/chezmoi/releases/download/v2.15.1/chezmoi-linux-amd64.tar.gz"
arch: "x86_64"
digest: "sha256:de5e632e17b8965f2baf4ea6d2b824788e154d9a65df4fd419ec4019898e15cd"
install_cmd: "tar -zxf {}"
```
Contributor guide
Assessment
This issue has not been assessed yet.