opensearch-project / security

🔐 Secure your cluster with TLS, numerous authentication backends, data masking, audit logging as well as role-based access control on indices, documents, and fields
https://opensearch.org/docs/latest/security-plugin/index/
Apache License 2.0
180 stars 263 forks source link

[Backport 2.x] Add Tenants REST API test and partial fix #4166 #4479

Closed opensearch-trigger-bot[bot] closed 1 week ago

opensearch-trigger-bot[bot] commented 1 week ago

Backport 1f5bd36cd1ea9d373472d0749dde9b0451020b8d from #4465.

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 65.38%. Comparing base (a46697d) to head (780dc7f).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/opensearch-project/security/pull/4479/graphs/tree.svg?width=650&height=150&src=pr&token=rBpySfQXMt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project)](https://app.codecov.io/gh/opensearch-project/security/pull/4479?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) ```diff @@ Coverage Diff @@ ## 2.x #4479 +/- ## ========================================== - Coverage 65.39% 65.38% -0.01% ========================================== Files 312 312 Lines 21888 21889 +1 Branches 3553 3553 ========================================== - Hits 14314 14313 -1 - Misses 5805 5807 +2 Partials 1769 1769 ``` | [Files](https://app.codecov.io/gh/opensearch-project/security/pull/4479?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | Coverage Δ | | |---|---|---| | [...earch/security/dlic/rest/api/TenantsApiAction.java](https://app.codecov.io/gh/opensearch-project/security/pull/4479?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fopensearch%2Fsecurity%2Fdlic%2Frest%2Fapi%2FTenantsApiAction.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-c3JjL21haW4vamF2YS9vcmcvb3BlbnNlYXJjaC9zZWN1cml0eS9kbGljL3Jlc3QvYXBpL1RlbmFudHNBcGlBY3Rpb24uamF2YQ==) | `38.88% <0.00%> (-2.29%)` | :arrow_down: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/opensearch-project/security/pull/4479/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project)