Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make integration tests work with Go 1.20.6 #619

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

julianbrost
Copy link
Contributor

As a security fix, Go implemented stricter checks for the Host header in the http package. This breaks the Go Docker client library resulting in "http: invalid Host header" errors in our integration tests.

A fix was merged to the 24.0 branch, but is not yet included in a release. Therefore, this commit updates the dependency to a specific commit (go get -u github.com/docker/[email protected]). Once it's included in a release, this can be switched back to using a release version.

Example of a currently failing pipeline: https://github.com/Icinga/icingadb/actions/runs/5640729645/job/15277750971

As a security fix, Go implemented stricter checks for the Host header in the
http package. This breaks the Go Docker client library [1] resulting in "http:
invalid Host header" errors in our integration tests.

A fix [2] was merged to the 24.0 branch, but is not yet included in a release.
Therefore, this commit updates the dependency to a specific commit
(`go get -u github.com/docker/[email protected]`). Once it's included in a release,
this can be switched back to using a release version.

[1] moby/moby#45935
[2] moby/moby#45942
@julianbrost
Copy link
Contributor Author

Also affects the SQL tests, see https://github.com/Icinga/icingadb/actions/runs/5517316837/job/15288121537 for example. According to the GitHub Actions of this PR, this is fixed as well.

@julianbrost julianbrost merged commit a550087 into master Jul 25, 2023
31 checks passed
@julianbrost julianbrost deleted the integration-tests-docker-http-host-header branch July 25, 2023 08:09
@julianbrost julianbrost added this to the 1.2.0 milestone Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants