Skip to content

Commit

Permalink
pkg/osbuild: support mtls secrets in curl source
Browse files Browse the repository at this point in the history
  • Loading branch information
croissanne committed Mar 22, 2024
1 parent 84b0a6c commit 202029f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/osbuild/curl_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ func NewCurlPackageItem(pkg rpmmd.PackageSpec) (CurlSourceItem, error) {
item.Secrets = &URLSecrets{
Name: "org.osbuild.rhsm",
}
} else if pkg.Secrets == "org.osbuild.mtls" {
item.Secrets = &URLSecrets{
Name: "org.osbuild.mtls",
}
}
item.Insecure = pkg.IgnoreSSL
return item, nil
Expand Down

0 comments on commit 202029f

Please sign in to comment.