Skip to content

ENT-13005: Added integrity check to cf-remote remote installation#174

Open
victormlg wants to merge 1 commit intocfengine:masterfrom
victormlg:improved-remote-download
Open

ENT-13005: Added integrity check to cf-remote remote installation#174
victormlg wants to merge 1 commit intocfengine:masterfrom
victormlg:improved-remote-download

Conversation

@victormlg
Copy link
Contributor

No description provided.

@victormlg victormlg force-pushed the improved-remote-download branch from 6c48260 to f43babf Compare February 24, 2026 16:06
@victormlg victormlg requested a review from larsewi March 2, 2026 08:51
@victormlg victormlg force-pushed the improved-remote-download branch from f43babf to c52900a Compare March 2, 2026 13:12
@victormlg victormlg requested a review from larsewi March 2, 2026 13:14
Copy link
Contributor

@larsewi larsewi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to test the script 😉


if [ -z "$HAS_SHA256SUM" ]; then
if [ "$INSECURE" -eq 0 ]; then
echo "Cannot check file integrity. sha256sum is not installed on host. Run with --insecure to skip"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The flag is -I but it says to use --insecure

Suggested change
echo "Cannot check file integrity. sha256sum is not installed on host. Run with --insecure to skip"
echo "Cannot check file integrity. sha256sum is not installed on host. Run with -I to skip"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output of the script is printed by cf-remote. On cf-remote, the flag is --insecure, that's why I kept it like that

@victormlg victormlg force-pushed the improved-remote-download branch from c52900a to b680be0 Compare March 3, 2026 11:44
@victormlg victormlg requested a review from larsewi March 3, 2026 11:49
Copy link
Contributor

@larsewi larsewi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of these checks can be done before you actually download the file. Maybe do these checks first, and then download.

Ticket: ENT-13005
Signed-off-by: Victor Moene <[email protected]>
@victormlg victormlg force-pushed the improved-remote-download branch from b680be0 to 8cb770f Compare March 3, 2026 14:15
@victormlg victormlg requested a review from larsewi March 3, 2026 15:24
Copy link
Member

@olehermanse olehermanse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please expand nt-discovery.sh and then do the error checking as early as possible (as fast as possible). This way you can detect errors right after running nt-discovery.sh, without having to transfer over another script.

Comment on lines +288 to 291
"wget",
"sha256sum",
]:
path = discovery.get("NTD_{}".format(bin.upper()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victormlg AFAICT nt-discovery.sh won't check for these so, you won't have any data about then in the discovery dict. Need to expand nt-discovery.sh to look for wget and sha256sum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants