-
Notifications
You must be signed in to change notification settings - Fork 84
Add RHUI support for building images on cloud instances #2207
Copy link
Copy link
Open
Description
Summary
The images library has no support for RHUI (Red Hat Update Infrastructure) repos. Cloud Access and on-demand RHEL instances use RHUI for package updates, but RepoConfig only has an RHSM flag — there is no RHUI equivalent. This means the depsolve pipeline cannot distinguish RHUI repos from RHSM repos, and NewCurlPackageItem() cannot generate manifests with org.osbuild.rhui secrets.
This was originally reported in osbuild/osbuild-composer#820 and closed as stale.
Problem
- No
RHUIfield onRepoConfig— repos cannot be flagged as using cloud instance identity authentication NewCurlPackageItem()missing RHUI case — the secrets switch only handlesorg.osbuild.rhsmandorg.osbuild.mtls, dropping RHUI secrets silentlyapplyRHSMSecrets()only handles RHSM — packages from RHUI repos don't get the correct secrets providervalidateSubscriptionsForRepos()blocks RHUI repos — RHUI repos haveRHSM=truebut no entitlement certs, causing a subscription validation error
Proposed Solution
- Add
RHUI boolfield toRepoConfigandrepositorystructs - Add
case "org.osbuild.rhui"toNewCurlPackageItem() - Update
applyRHSMSecrets()to setorg.osbuild.rhuion RHUI packages - Update
validateSubscriptionsForRepos()to skip RHUI repos - Pass RHUI flag through
v2Repositoryto the Python depsolve solver
Stopgap
Until native support is merged, users can use osbuild-rhui-shim as a workaround.
References
- Unable to build images on AWS Cloud Access images that use RHUI osbuild-composer#820 — original report (closed as stale)
- Add native RHUI support for building images on cloud instances osbuild#2354 — companion osbuild issue
- Add RHUI support for building images on cloud instances osbuild-composer#5028 — companion osbuild-composer issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels