-
Notifications
You must be signed in to change notification settings - Fork 170
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 issue: tenant is defaulting incorrectly based on the ordering of: opensearch_security.multitenancy.tenants.preferred #2019 #2163
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2163 +/- ##
=======================================
Coverage 71.46% 71.46%
=======================================
Files 97 97
Lines 2649 2649
Branches 403 403
=======================================
Hits 1893 1893
Misses 641 641
Partials 115 115 ☔ View full report in Codecov by Sentry. |
… opensearch_security.multitenancy.tenants.preferred Signed-off-by: Rajat Gupta <[email protected]>
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.
Thank you for this fix!
The workflow runs appear to be stuck and I don't have a way to cancel and re-run. Can you either push a small commit or force push the existing change? |
nvm, my Github was set to |
Description
Fixes a bug where the tenant was defaulting incorrectly based on the ordering of opensearch_security.multitenancy.tenants.preferred, whereas it should be on the basis of default tenant.
Category
Bug fix
Why these changes are required?
Fix: #2019
What is the old behavior before changes and new behavior after changes?
Old behavior:
If
opensearch_security.multitenancy.tenants.preferred: ["Global", "Private"]
and default tenant isPrivate
the user will be logged into Global tenant.New behavior:
The user will be logged in as the default tenant (which is Private in the above example)
Issues Resolved
Fix: #2019
Testing
Manually tested the behavior
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.