Skip to content

Commit 9fbac06

Browse files
committed
TODO
1 parent c8a7450 commit 9fbac06

File tree

1 file changed

+0
-2
lines changed
  • x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz

1 file changed

+0
-2
lines changed

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/RBACEngine.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,6 @@ static AuthorizedIndices resolveAuthorizedIndicesFromRole(
876876
// TODO: can this be done smarter? I think there are usually more indices/aliases in the cluster then indices defined a roles?
877877
if (includeDataStreams) {
878878
for (IndexAbstraction indexAbstraction : lookup.values()) {
879-
// TODO this can be cleaned up and optimized to avoid two full predicate checks
880879
final boolean dataAccess = predicate.test(indexAbstraction, IndexComponentSelector.DATA.getKey());
881880
// TODO should we still add data stream if it only has failure access?
882881
final boolean failureAccess = indexAbstraction.getType() == IndexAbstraction.Type.DATA_STREAM
@@ -891,7 +890,6 @@ static AuthorizedIndices resolveAuthorizedIndicesFromRole(
891890
}
892891
if (failureAccess) {
893892
for (Index index : ((DataStream) indexAbstraction).getFailureIndices()) {
894-
// failure indices are still accessed as "data"
895893
indicesAndAliases.add(index.getName());
896894
}
897895
}

0 commit comments

Comments
 (0)