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

Allow for per package version specification of builder_compose_pkgs #463

Open
scdaniels opened this issue Feb 11, 2025 · 0 comments
Open

Comments

@scdaniels
Copy link

scdaniels commented Feb 11, 2025

Request has come from an AAP customer.

Notes from Jason Dickerson:

PROBLEM: We are using osbuild collection to generate edge-commit repositories (rpm-ostree). We must be FIPS compliant. A recent version of openssl was released into RHEL 8.10 that is not FIPS validated. We would like to add the openssl package to the builder_compose_pkgs variable with a specific version to use. This is supported by the blueprint specification. However, the infra.osbuild.create_blueprint ansible module forces all packages to use version "", which I believe represents latest version. Thus we cannot lock in the version of a package when using infra.osbuild.
The python code in question is lines 174 - 177 of infra.osbuild/plugins/modules/create_blueprint.py:
if module.params["packages"]:
toml_data["packages"]: list = []
for package in module.params["packages"]:
toml_data["packages"].append({"name": f"{package}", "version": "
"})
Notice, when the blueprint is written, it is using a version of "*", which I believe is translated latest. The ansible variable in question is builder_compose_pkgs which is a yaml/json list of package names.
builder_compose_pkgs:

  • "openssl"
    If this variable were reworked to be a list of dictionaries like so:
    builder_compose_pkgs:
  • name: "openssl"
    version: "1.1.1k-12"
    and the above python referenced the new format, it could insert the version into the blueprint easily.
    11:54
    Another angle to approach the issue from would be: Is 8.10 FIPS validated? If not, what is the latest version of RHEL 8 that is validated, and create new images from that particular version.
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

No branches or pull requests

1 participant