-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Allowing individual privileges to be excluded from base privileges #42470
Allowing individual privileges to be excluded from base privileges #42470
Conversation
retest |
💔 Build Failed |
💚 Build Succeeded |
…-individual-privilege-from-base
💚 Build Succeeded |
…-individual-privilege-from-base
💔 Build Failed |
retest |
.../security/public/lib/kibana_privilege_calculator/kibana_feature_privilege_calculator.test.ts
Outdated
Show resolved
Hide resolved
@@ -120,9 +120,9 @@ describe('only global', () => { | |||
]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏅 awesome test coverage here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙇
💚 Build Succeeded |
…culator/kibana_feature_privilege_calculator.test.ts Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on green CI!
💚 Build Succeeded |
…lastic#42470) * Excluding code from base privileges * Allowing individual privileges to be excluded * Only returning a boolean for directlyAssigned... for space feature privileges * We are now called directlyAssignedPrivilegeMorePermissiveThanBase * An even longer and potentially more accurate name * Fixing KibanaPrivilegeCalculator tests * Fixing KibanaAllowedPrivilegesCalculator tests * Adding privilege space table tests * Updating privilegesFactory tests * Removing code's usage * Updating snapshot * Update x-pack/legacy/plugins/security/public/lib/kibana_privilege_calculator/kibana_feature_privilege_calculator.test.ts Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>
…42470) (#43214) * Excluding code from base privileges * Allowing individual privileges to be excluded * Only returning a boolean for directlyAssigned... for space feature privileges * We are now called directlyAssignedPrivilegeMorePermissiveThanBase * An even longer and potentially more accurate name * Fixing KibanaPrivilegeCalculator tests * Fixing KibanaAllowedPrivilegesCalculator tests * Adding privilege space table tests * Updating privilegesFactory tests * Removing code's usage * Updating snapshot * Update x-pack/legacy/plugins/security/public/lib/kibana_privilege_calculator/kibana_feature_privilege_calculator.test.ts Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>
💚 Build Succeeded |
👏 nice job Elastic Machine, I knew you could do it! |
😆 |
Individual feature's privileges can now be excluded from the base privileges. For example, the following feature excludes the
all
feature privilege from being automatically included in any of the base privileges:Changes to the kibana privileges calculator were required to support this in the UI. We're now returning a
directlyAssignedFeaturePrivilegeMorePermissiveThanBase
property on the calculated privileges only for feature privileges for a specific space(s). We aren't calculating this for the global (all spaces) entries, as we only allow either base or feature privileges here, so this isn't currently required.DevDocs
Individual feature's privileges can now be excluded from the base privileges using
excludeFromBasePrivilege