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

worker: fix OSBUILD_SOURCES_CURL_SSL_CA_CERT variable #4423

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

lzap
Copy link
Contributor

@lzap lzap commented Oct 22, 2024

Copy link
Member

@supakeen supakeen left a comment

Choose a reason for hiding this comment

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

Why is this PR introducing a second environment variable that isn't used elsewhere? It's not mentioned in the title, description, or commit.

@lzap
Copy link
Contributor Author

lzap commented Oct 22, 2024

Ah that was a leftover, I am working on this code in a different branch I was splitting git hunk. Fixed.

Copy link
Member

@supakeen supakeen left a comment

Choose a reason for hiding this comment

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

Ok, thank you.

Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

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

Good catch. How long has that been there?

Thanks!

@achilleas-k achilleas-k enabled auto-merge (rebase) October 22, 2024 09:18
@achilleas-k
Copy link
Member

Some testing would be nice for this. Could you add one in a follow-up?

@lzap
Copy link
Contributor Author

lzap commented Oct 24, 2024

How exactly I should be testing this? I just verified that this variable is properly used in ostree and I actually made a change that ensures it works properly:

osbuild/osbuild#1910

This code only passes the variable into the worker, as long as there is no typo it will work. I believe the cert is enrolled at the OS level in /etc/pki/ca-certs thus curl gets it from there, that should explain why it worked until now.

If you mean some kind of end to end test, this could be tricky.

@achilleas-k achilleas-k merged commit 350ad58 into osbuild:main Oct 24, 2024
48 of 50 checks passed
@lzap lzap deleted the curl-source-ca branch October 25, 2024 08:34
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.

3 participants