Skip to content

🐛 Fix inspector.ipxe IPA URLs unreachable under iPXE TLS#955

Merged
metal3-io-bot merged 1 commit intometal3-io:mainfrom
elfosardo:fix-inspector-ipxe-tls-urls
Mar 31, 2026
Merged

🐛 Fix inspector.ipxe IPA URLs unreachable under iPXE TLS#955
metal3-io-bot merged 1 commit intometal3-io:mainfrom
elfosardo:fix-inspector-ipxe-tls-urls

Conversation

@elfosardo
Copy link
Copy Markdown
Member

When IPXE_TLS_SETUP=true the cleartext httpd vhost blocks ironic-python-agent files via a FilesMatch deny rule, and the iPXE TLS vhost denies the entire /shared/html/images/ directory.

inspector.ipxe.j2 renders all IPA kernel/ramdisk URLs against IRONIC_HTTP_URL (http://host:80), so they become unreachable during TLS-enabled inspection boot.

Introduce IRONIC_IPA_BASE_URL in ironic-common.sh that resolves to the iPXE TLS endpoint when TLS is active, and falls back to IRONIC_HTTP_URL otherwise. Use it in inspector.ipxe.j2 for all IPA artifact URLs. Add a targeted FilesMatch grant on the iPXE TLS vhost so IPA files are served while the broader images/ deny stays in effect.

Fixes #954

When IPXE_TLS_SETUP=true the cleartext httpd vhost blocks
ironic-python-agent files via a FilesMatch deny rule, and the
iPXE TLS vhost denies the entire /shared/html/images/ directory.

inspector.ipxe.j2 renders all IPA kernel/ramdisk URLs against
IRONIC_HTTP_URL (http://host:80), so they become unreachable
during TLS-enabled inspection boot.

Introduce IRONIC_IPA_BASE_URL in ironic-common.sh that resolves
to the iPXE TLS endpoint when TLS is active, and falls back to
IRONIC_HTTP_URL otherwise. Use it in inspector.ipxe.j2 for all
IPA artifact URLs. Add a targeted FilesMatch grant on the iPXE
TLS vhost so IPA files are served while the broader images/
deny stays in effect.

Signed-off-by: Riccardo Pittau <elfosardo@gmail.com>
@elfosardo
Copy link
Copy Markdown
Member Author

@metal3-io-bot metal3-io-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 24, 2026
@elfosardo
Copy link
Copy Markdown
Member Author

/test metal3-centos-e2e-integration-test-main metal3-ubuntu-e2e-integration-test-main

@Rozzii
Copy link
Copy Markdown
Member

Rozzii commented Mar 25, 2026

I started reviewing this, I am fine making the inspector.ipxe compatible with the TLS enabled iPXE, but I have to think a bit about the file "file matching" access control you introduced to the apache endpoint.

Copy link
Copy Markdown
Member

@Rozzii Rozzii left a comment

Choose a reason for hiding this comment

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

/approve
After further consideration this PR should be fine IMO.

@metal3-io-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Rozzii

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 30, 2026
@Rozzii Rozzii moved this to Ironic-image WIP in Metal3 - Roadmap Mar 30, 2026
@Rozzii Rozzii added this to the ironic-image - v35.0 milestone Mar 30, 2026
Copy link
Copy Markdown
Member

@kashifest kashifest left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Member

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

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

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 31, 2026
@metal3-io-bot metal3-io-bot merged commit 5dd13b7 into metal3-io:main Mar 31, 2026
18 checks passed
@github-project-automation github-project-automation bot moved this from Ironic-image WIP to Done / Closed in Metal3 - Roadmap Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

Status: Done / Closed

Development

Successfully merging this pull request may close these issues.

inspector.ipxe.j2 renders IPA URLs against cleartext HTTP base under iPXE TLS

5 participants