Repository navigation
fix(ironic): tighten get:last_error and clean_steps policies - #2840
Merged
Merged
Conversation
Previously this allowed admin or service in any project, and any role in the node owner or lessee project. Base it on the upstream default and only add lessee readers. Nova's ironic client is admin,service in the owning baremetal project, so it is still covered by the owner clauses.
The upstream default already lets members of the node owner project (the baremetal project the Argo workflow authenticates to) set clean steps, while the override also let an admin in any project do so. disable_cleaning is kept since upstream requires a system-scoped admin.
nicholaskuechler
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change do?
Follow-up to #2839, tightening two ironic policy overrides in
components/ironic/values.yamlnow that each override documents its upstream default.baremetal:node:get:last_erroris now the upstream default plus(role:reader and project_id:%(node.lessee)s), the same shape asinventory:get. Previously it allowed admin or service in any project, and any role in the owner or lessee project. Nova's ironic client isadmin,servicein the owninginfra/baremetalproject, so it is still covered by the owner clauses.baremetal:node:set_provision_state:clean_stepsoverride. The upstream default already lets members of the node owner project (thebaremetalproject the Argo workflow authenticates to) set clean steps, while the override also let an admin in any project do so.disable_cleaningis kept because upstream requires a system-scoped admin, which the workflow doesn't have yet.Checked with oslo.policy from the 2026.2 image against a node owned by the baremetal project:
get:last_errorclean_steps(upstream default)This relies on every node nova or the workflows touch being owned by the
baremetalproject.Upgrade impact
upgrade-impactlabel and a release note: runscriv createfrom therepository root and describe the required action in the generated
changelog.d/file. See RELEASING.md.Operator action means anything a deployment has to do beyond a normal resync:
deploy repo or values changes, new or removed secrets, enabling or disabling a
component, or a manual one-time step.