lima-vm / lima-vm/lima

Add ability for verifiable download of binary artefacts for use in provision scripts

Open
#822 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.