Backport of UI: Don't show Resultant-ACL banner when wildcard policy present into release/1.15.x #26270
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.
Backport
This PR is auto-generated from #26233 to be assessed for backporting due to the inclusion of the label backport/1.15.x.
🚨
The person who merged in the original PR is:
@hashishaw
This person should manually cherry-pick the original PR into a new backport PR,
and close this one when the manual backport PR is merged in.
The below text is copied from the body of the original PR.
This PR is to update the behavior of the Resultant ACL banner so that it no longer shows in child namespaces if the user has a
"*"
path in their policy.How to test
To set up namespaces with some users to log in and verify the behavior, run the following script:
Test 1
root
usernameadmin
namespace- Previously, resultant-acl banner would show but with these changes it does not
- Previously, resultant-acl banner would show but with these changes it does not
Test 2
admin
usernamechild
namespace- Previously, resultant-acl banner would show but with these changes it does not
Before

After

This PR also updates the Resultant-ACL banner so that it only shows when a user has a non-expired token.
Overview of commits