Skip to content

chore(ironic): clean up base policy overrides - #2839

Merged
cardoe merged 4 commits into
mainfrom
ironic-policy-cleanup
Dec 2, 2026
Merged

cardoe merged 4 commits into
mainfrom
ironic-policy-cleanup

Conversation

@cardoe

@cardoe cardoe commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What does this change do?

Tidies the ironic policy overrides in components/ironic/values.yaml:

  • Drop the trailing space from the baremetal:node:set_console_state rule.
  • Allow node lessee readers to get the node inventory (baremetal:node:inventory:get), matching how the console rules already extend to the lessee. Upstream only allows system/owner readers and the service role.
  • Document the upstream default above each override with a # default: comment, taken from oslopolicy-sample-generator --namespace ironic.api in the 2026.1 and 2026.2 ironic images. This corrects the clean_steps default, which was a guess (role:admin and system_scope:all) and is actually much broader upstream.
  • Remove role:ucadmin-role from the clean_steps and disable_cleaning rules. No such keystone role is created (ucadmin is a group granted admin), so the rules reduce to role:admin with no change in effective policy. Both overrides are kept for now because the Argo workflow still uses project-scoped credentials.

The new inventory rule was checked with oslo.policy from the 2026.2 image: lessee reader and owner reader are allowed, a reader in an unrelated project is denied.

Upgrade impact

  • This change requires operator action to upgrade. If checked, add the
    upgrade-impact label and a release note: run scriv create from the
    repository 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.

Also correct the clean_steps default, which was a guess and did not match
the actual upstream rule.
The ucadmin-role keystone role is not created anywhere, so the rule
reduces to role:admin. No change in effective policy. Also correct the
clean_steps comment: the override does not strictly broaden the upstream
default.
@cardoe
cardoe enabled auto-merge December 2, 2026 15:35
@cardoe
cardoe added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit c1c7c65 Dec 2, 2026
19 checks passed
@cardoe
cardoe deleted the ironic-policy-cleanup branch December 2, 2026 15:38
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

Successfully merging this pull request may close these issues.

3 participants