Add backend filtering for legacy internal user and service accounts#2786
Conversation
Signed-off-by: scosta <samuel.costa@eliatra.com>
Signed-off-by: Ryan Liang <jiallian@amazon.com>
src/main/java/org/opensearch/security/dlic/rest/api/InternalUsersApiAction.java
Show resolved
Hide resolved
src/main/java/org/opensearch/security/dlic/rest/api/InternalUsersApiAction.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opensearch/security/dlic/rest/api/UserApiTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com> Signed-off-by: Sam <128482925+samuelcostae@users.noreply.github.com>
…ersApiAction.java Co-authored-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com> Signed-off-by: Sam <128482925+samuelcostae@users.noreply.github.com>
Co-authored-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com> Signed-off-by: Sam <128482925+samuelcostae@users.noreply.github.com>
Signed-off-by: scosta <samuel.costa@eliatra.com>
Signed-off-by: scosta <samuel.costa@eliatra.com>
Signed-off-by: scosta <samuel.costa@eliatra.com>
|
@DarshitChanpura I had to a good bit of refactoring as I noticed that before, the beahviour in the PR was returning only the list of names of the accounts of the specified type, but the existing implementations on internalUsersAPI return the full account details. |
src/main/java/org/opensearch/security/dlic/rest/api/InternalUsersApiAction.java
Outdated
Show resolved
Hide resolved
stephen-crawford
left a comment
There was a problem hiding this comment.
Overall looks good to me. I left a comment about tests, but I believe this should ready for final review.
|
@samuelcostae could you rebase against main and resolve any conflicts. |
Signed-off-by: Sam <128482925+samuelcostae@users.noreply.github.com>
|
@samuelcostae Please let us know if you would require any help to move this along. |
|
@samuelcostae Thanks for the updates - sorry its taken a little bit to circle back around to this pull requests. |
# Conflicts: # src/main/java/org/opensearch/security/dlic/rest/api/InternalUsersApiAction.java
Signed-off-by: Sam <samuel.costa@eliatra.com>
Signed-off-by: Sam <samuel.costa@eliatra.com>
|
This is associated with #2704 |
src/main/java/org/opensearch/security/dlic/rest/api/InternalUsersApiAction.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sam <samuel.costa@eliatra.com>
DarshitChanpura
left a comment
There was a problem hiding this comment.
Looks close. Final two comments.
peternied
left a comment
There was a problem hiding this comment.
Last blocker in my mind is the structure of the UserService code, please iterate on @DarshitChanpura suggestion to slim down that code.
Co-authored-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com> Signed-off-by: Sam <128482925+samuelcostae@users.noreply.github.com>
Signed-off-by: Sam <samuel.costa@eliatra.com>
Signed-off-by: Sam <samuel.costa@eliatra.com>
src/main/java/org/opensearch/security/dlic/rest/api/InternalUsersApiAction.java
Outdated
Show resolved
Hide resolved
peternied
left a comment
There was a problem hiding this comment.
Adding some feedback about the new unit tests - really close.
src/test/java/org/opensearch/security/UserServiceUnitTests.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opensearch/security/UserServiceUnitTests.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/security/dlic/rest/api/InternalUsersApiAction.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opensearch/security/dlic/rest/api/UserApiTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/security/dlic/rest/api/InternalUsersApiAction.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sam <samuel.costa@eliatra.com>
Signed-off-by: Sam <samuel.costa@eliatra.com>
Signed-off-by: Sam <samuel.costa@eliatra.com>
src/main/java/org/opensearch/security/dlic/rest/api/InternalUsersApiAction.java
Show resolved
Hide resolved
src/main/java/org/opensearch/security/dlic/rest/api/InternalUsersApiAction.java
Show resolved
Hide resolved
|
@scrawfor99 Could you take another look? |
stephen-crawford
left a comment
There was a problem hiding this comment.
Great job Sam :)
Signed-off-by: Ryan Liang <jiallian@amazon.com>
Description
Update UserAPIAction to Filter internal accounts and Service accounts.
Dashboards Plugin changes via PR opensearch-project/security-dashboards-plugin#1502
Issues Resolved
Testing
Unit Tests created
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.