Fixes #39374 - Add missing ipmi_boot parent permission mapping for taxonomy-scoped requests#11012
Open
spesnova717 wants to merge 1 commit into
Conversation
…xonomy-scoped requests - add ipmi_boot to parent permission mapping in Api::V2::HostsController
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.
Summary
Fixes an
unknown parent permission for api/v2/hosts#ipmi_booterror that occurred when callinghammer host bootwith--organization-idand--location-id. The root cause was a missingipmi_bootentry in the parent permission mapping ofApi::V2::HostsController.Background
When a taxonomy context is present, the authorization path differs from the default flow. Because
ipmi_bootwas not registered in the parent permission map, the permission resolution failed, causing the request to be rejected. Requests without taxonomy options succeeded as expected.Changes
ipmi_bootto the parent permission mapping inApi::V2::HostsControllerReproduction & Verification
hammer host boot --id 3 --device bios --organization-id 1 --location-id 2hammer host boot --id 3 --device biosExpected outcome
Eliminates the
unknown parent permission for api/v2/hosts#ipmi_booterror that only appeared when taxonomy options were specified.