netdata icon indicating copy to clipboard operation
netdata copied to clipboard

[Feat]: Get the kickstart.sh MD5 sum by file instead from the website

Open AlwinAntreich opened this issue 7 months ago • 2 comments

Problem

I am installing netdata on PXE booted systems without persistent storage. For this reason I've automated the whole setup. I would like to automatically verify the downloaded kickstart.sh with its MD5 sum. Currently I have to be aware when the sum changed to update a file on our webserver.

Hopefully, I've just missed the place where the checksum is on github. :sweat_smile:

Description

I'd like to curl https://my-netdata.io/kickstart.sh.md5sum (or similar) which contains the MD5 sum (eg. md5sum kickstart.sh), so it can be used directly in scripts to verify the downloaded file. Thank you.

Importance

nice to have

Value proposition

...

Proposed implementation

No response

AlwinAntreich avatar Dec 18 '23 11:12 AlwinAntreich

Hello @AlwinAntreich, thank you for your input, this might also be a trouble for others. I think we can also add it to the GH

cc @Ferroin

tkatsoulas avatar Dec 19 '23 09:12 tkatsoulas

[ "2237a9bafa168e6d1785165f3290b49f" = "$(curl -Ss https://get.netdata.cloud/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"

-> 2c1e7956629391f55a2173743ff76abf

The checksum provided on the website is wrong. :( https://learn.netdata.cloud/docs/installing/one-line-installer-for-all-linux-systems

I didn't want to open a new issue, as it relates to the above solution.

EDIT: The checksum is from the master version. https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/kickstart.sh

AlwinAntreich avatar Jan 25 '24 08:01 AlwinAntreich