Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ironic/api/controllers/v1/ramdisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def config(token, node=None):
'disable_deep_image_inspection': CONF.conductor.disable_deep_image_inspection, # noqa
'permitted_image_formats': CONF.conductor.permitted_image_formats,
'agent_skip_bmc_detect': skip_bmc_detect,
'enable_bios_bootloader_install': CONF.agent.enable_bios_bootloader_install, # noqa
}


Expand Down
8 changes: 8 additions & 0 deletions ironic/conf/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@
'permitted to consider MD5 checksums. This option '
'is expected to change to a default of False in a '
'2024 release of Ironic.')),
cfg.BoolOpt('enable_bios_bootloader_install',
default=False,
help=_('When enabled, enables agent support for partition '
'images which require a legacy bootloader -- and a '
'call to ``grub-install``. Generally, this should '
'remain disabled for maximum security, however, this '
'option allows it to be re-enabled for '
'compatibility.')),
]


Expand Down
1 change: 1 addition & 0 deletions ironic/tests/unit/api/controllers/v1/test_ramdisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def _check_config(self, data, skip_bmc_detect=False):
'disable_deep_image_inspection': CONF.conductor.disable_deep_image_inspection, # noqa
'permitted_image_formats': CONF.conductor.permitted_image_formats,
'agent_skip_bmc_detect': skip_bmc_detect,
'enable_bios_bootloader_install': CONF.agent.enable_bios_bootloader_install, # noqa
}
self.assertEqual(expected_config, data['config'])
self.assertIsNotNone(data['config']['agent_token'])
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
security:
- |
Disable installation of bootloaders (via grub-install) by IPA by default
in order to improve security posture by adding a new agent configuration
option `enable_bios_bootloader_install` which defaults to `False`.
Operators who still need this functionality can re-enable installation of
bootloaders by setting `enable_bios_bootloader_install` to `True`.
Addresses CVE-2026-43003.