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

internal: add cacerts into customizations #1481

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

avitova
Copy link
Contributor

@avitova avitova commented Feb 14, 2025

This adds a field for adding ca certificates. We might also use directly the Files field, but I guess this is easier, so that the frontend does not have to deal with as many things. 🤔

Copy link
Member

@croissanne croissanne left a comment

Choose a reason for hiding this comment

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

Api looks ok to me, but this will need an update in func (h *Handlers) buildCustomizations(ctx echo.Context, cr *ComposeRequest, d *distribution.DistributionFile) (*composer.Customizations, error) as well.

@avitova
Copy link
Contributor Author

avitova commented Feb 14, 2025

Good point; thanks, Sanne! We mainly need the type for using it on frontend now, but this might have been easily forgotten!

@lzap
Copy link
Collaborator

lzap commented Feb 14, 2025

You need https://github.com/osbuild/image-builder-crc/pull/1482/files#diff-423d98a85dc577c76a5be2a77222ea131b8fd747bdeb534b221a0e00e1b665a1R21 to get merged in order to re-run prepare source to fix this PR. Sorry, I may have introduced this.

With Go 1.24 all these problems will go away with its go get -tool command.

Copy link
Collaborator

@lzap lzap left a comment

Choose a reason for hiding this comment

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

Other than that, LGTM.

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