Skip to content

Commit

Permalink
Correct the key check for service account attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <jiallian@amazon.com>
  • Loading branch information
RyanL1997 committed Oct 26, 2023
1 parent ccf5ea5 commit 12c60fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ public PrivilegesEvaluatorResponse evaluate(

public Boolean isServiceAccount(final User user) {
Map<String, String> userAttributesMap = user.getCustomAttributesMap();
return userAttributesMap != null && "true".equals(userAttributesMap.get("service"));
return userAttributesMap != null && "true".equals(userAttributesMap.get("attr.internal.service"));
}

public Set<String> mapRoles(final User user, final TransportAddress caller) {
Expand Down

0 comments on commit 12c60fe

Please sign in to comment.