Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the tagging policy engine #193

Merged
merged 1 commit into from
Mar 3, 2025
Merged

Conversation

Alex-Welsh
Copy link
Member

The service tagging policy engine should consider the parent resource or the upper parent resource project ID when checking the policies against the caller project ID.

Before this patch, as introduced in [1], the target was incorrectly populated with the caller project ID instead of using the resource ID.

[1]https://review.opendev.org/c/openstack/neutron/+/896509/13/neutron/extensions/tagging.py

OSSA-2024-005 CVE-2024-53916

Closes-Bug: #2088986
Change-Id: Id7d0c8e7ba37993b1084519d05e7e2eac095b81b (cherry picked from commit fb75d3c)

The service tagging policy engine should consider the parent resource or
the upper parent resource project ID when checking the policies against
the caller project ID.

Before this patch, as introduced in [1], the target was incorrectly
populated with the caller project ID instead of using the resource ID.

[1]https://review.opendev.org/c/openstack/neutron/+/896509/13/neutron/extensions/tagging.py

OSSA-2024-005 CVE-2024-53916

Closes-Bug: #2088986
Change-Id: Id7d0c8e7ba37993b1084519d05e7e2eac095b81b
(cherry picked from commit fb75d3c)
@Alex-Welsh Alex-Welsh requested a review from a team as a code owner December 6, 2024 11:28
@Alex-Welsh
Copy link
Member Author

Yoinked from #192

Tests all passed:

======
Totals
======
Ran: 20292 tests in 4526.6324 sec.
 - Passed: 18718
 - Skipped: 1574
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
Sum of execute time for each test: 17832.7651 sec.

@priteau priteau merged commit 06384e3 into stackhpc/2023.1 Mar 3, 2025
@priteau priteau deleted the OSSA-2024-005-Antelope branch March 3, 2025 16:17
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.

None yet

3 participants