Fix role propagation error due to missing grantor dependencies#8466
Draft
Fix role propagation error due to missing grantor dependencies#8466
Conversation
Co-authored-by: emelsimsek <13130350+emelsimsek@users.noreply.github.com>
…O(n) complexity Co-authored-by: emelsimsek <13130350+emelsimsek@users.noreply.github.com>
Co-authored-by: emelsimsek <13130350+emelsimsek@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix role propagation error for interdependent roles
Fix role propagation error due to missing grantor dependencies
Feb 5, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8466 +/- ##
=======================================
Coverage 88.90% 88.91%
=======================================
Files 286 286
Lines 63227 63235 +8
Branches 7937 7938 +1
=======================================
+ Hits 56214 56226 +12
+ Misses 4736 4734 -2
+ Partials 2277 2275 -2 🚀 New features to boost your workflow:
|
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.
DESCRIPTION: Add grantor role dependencies to fix node addition with interdependent roles
Problem
When adding nodes to a cluster, role propagation fails if role A is used as a grantor when granting role B to role C:
The issue:
role2is propagated beforerole1has its admin options established, causing theGRANTED BY role1statement to fail.Changes
Modified
ExpandRolesToGroupsindependency.cto track grantor roles as dependencies alongside role memberships. This ensures grantors are propagated before roles that reference them in grant statements.Before: Only roles where
roleidis a member were trackedAfter: Both member roles and grantor roles are tracked as dependencies
Added regression test covering the interdependent role scenario from the issue.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com/usr/lib/apt/methods/https /usr/lib/apt/methods/https 2-1--11.3-1.sql 3-1--12.2-1.sql 2-1--13.2-1.sql 2-1--14.0-1.sql 0-1--15.0-1.sql 0.0-2.sql 0.1-1.sql 0.2-1.sql 0.2-2.sql 0.2-3.sql 0.2-4.sql 1.0-�� 1.1-1.sql .0-1.sql /home/REDACTED/.config/composer/vendor/bin/bash(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.