Skip to content

rpmmd: Honor ignore_ssl when loading repositories - #2674

Merged
achilleas-k merged 1 commit into
osbuild:mainfrom
ondrejbudai:ignoressl
Sep 17, 2026
Merged

achilleas-k merged 1 commit into
osbuild:mainfrom
ondrejbudai:ignoressl

Conversation

@ondrejbudai

Copy link
Copy Markdown
Member

I tried --force-repo-dir and I needed to ignore SSL, but it didn't work. Turns out we silently drop the field when loading repos. This commit fixes that.

@ondrejbudai
ondrejbudai requested a review from a team as a code owner September 8, 2026 13:49

@supakeen supakeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice find. Thanks. Did you by any chance check if this was the case anywhere else?

@ondrejbudai

Copy link
Copy Markdown
Member Author

I didn't do much checking tbh, just verified that this fixed my usecase.

Comment thread pkg/rpmmd/repository.go
GPGKeys []string `json:"gpgkeys,omitempty"`
CheckGPG bool `json:"check_gpg,omitempty"`
IgnoreSSL bool `json:"ignore_ssl,omitempty"`
IgnoreSSL *bool `json:"ignore_ssl,omitempty"`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since the default (null) case is false, do we need this?

I tried --force-repo-dir and I needed to ignore SSL, but it didn't work.
Turns out we silently drop the field when loading repos. This commit
fixes that.
@achilleas-k
achilleas-k added this pull request to the merge queue Sep 16, 2026
Merged via the queue into osbuild:main with commit 50a945f Sep 17, 2026
54 checks passed
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