Skip to content

Fail installation when downloading APT GPG keys returns an HTTP error - #460

Merged
robertomonteromiguel merged 1 commit into
mainfrom
robertomonteromiguel/fail-on-apt-gpg-key-http-errors
Sep 28, 2026
Merged

robertomonteromiguel merged 1 commit into
mainfrom
robertomonteromiguel/fail-on-apt-gpg-key-http-errors

Conversation

@robertomonteromiguel

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds curl -f when downloading APT GPG keys.
This makes curl return a non-zero exit code for HTTP errors such as 403 or 404. The existing background-process handling will then detect the failure and stop the installation.

Why?

If a GPG key download returns an HTTP error, the installation may continue without installing the Agent successfully. Downstream tests can then run against an invalid environment instead of stopping after the installation failure.

@robertomonteromiguel
robertomonteromiguel merged commit 4f86737 into main Sep 28, 2026
353 checks passed
@robertomonteromiguel
robertomonteromiguel deleted the robertomonteromiguel/fail-on-apt-gpg-key-http-errors branch September 28, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants