Skip to content

dracut: add CA certificates from installation media - #7307

Open
lzap wants to merge 1 commit into
rhinstaller:mainfrom
lzap:ks-cert1
Open

lzap wants to merge 1 commit into
rhinstaller:mainfrom
lzap:ks-cert1

Conversation

@lzap

@lzap lzap commented Sep 18, 2026

Copy link
Copy Markdown

Add inst.ks.cert for importing a PEM CA certificate into the initramfs trust bundle before network kickstart downloads. This follows the trust-store update principle used by %certificate --type=anchor, but makes the certificate available before the kickstart is read.

This change allows for easier building of netboot.iso with customized bootloader configuration and custom cert for full end-to-end TLS provisioning. The only option today is to rebuild initramdisk, with this change mkksiso utility can be used.

I considered adding a more useful inst.cert that could be then used also by other features like inst.stage2, however, there were queue synchronization issues. For this reason, I kept the feature small. Also, instead of passing the certificate explicitly to the download utility, the cert is simply appended to the bundle.


I haven't tested yet, want to hear from you guys what you think. I explored many ideas for this but ultimately landed on this.


  • Code conventions. tl;dr: Follow PEP8, wrap at 100 chars, and provide docstrings.

  • Commit message conventions. tl;dr: Heading, empty line, longer explanations, all wrapped manually. If in doubt, write a longer commit message with more details.

  • Tests pass and cover your changes. You can run tests locally manually, or have them run as part of the PR. A team member will have to enable tests manually after inspecting the PR.

  • Release notes and docs if the PR adds something major or changes existing behavior.

  • RHEL rules: If your PR is for a rhel-* branch, pay special attention to commit messages. Make sure all commit messages include a line linking the commit to a bug, such as Resolves: RHEL-123456. For more information, see the complete rules.

Add `inst.ks.cert` for importing a PEM CA certificate into the initramfs
trust bundle before network kickstart downloads. This follows the
trust-store update principle used by `%certificate --type=anchor`, but
makes the certificate available before the kickstart is read.

This change allows for easier building of `netboot.iso` with customized
bootloader configuration and custom cert for full end-to-end TLS
provisioning. The only option today is to rebuild initramdisk, with this
change `mkksiso` utility can be used.

I considered adding a more useful `inst.cert` that could be then used
also by other features like `inst.stage2`, however, there were queue
synchronization issues. For this reason, I kept the feature small. Also,
instead of passing the certificate explicitly to the download utility,
the cert is simply appended to the bundle.
@rvykydal

Copy link
Copy Markdown
Contributor

Thank you for contribution. I am going to discuss the added API with the team, then I'll review the suggested implementation.

@KKoukiou KKoukiou removed the f45 label Sep 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants