Class PrivilegesEvaluator

    • Field Detail

      • log

        protected final org.apache.logging.log4j.Logger log
      • actionTrace

        protected final org.apache.logging.log4j.Logger actionTrace
    • Constructor Detail

      • PrivilegesEvaluator

        public PrivilegesEvaluator​(org.elasticsearch.client.Client localClient,
                                   org.elasticsearch.cluster.service.ClusterService clusterService,
                                   org.elasticsearch.threadpool.ThreadPool threadPool,
                                   ConfigurationRepository configurationRepository,
                                   org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver,
                                   AuditLog auditLog,
                                   org.elasticsearch.common.settings.Settings settings,
                                   ClusterInfoHolder clusterInfoHolder,
                                   IndexResolverReplacer irr,
                                   SpecialPrivilegesEvaluationContextProviderRegistry specialPrivilegesEvaluationContextProviderRegistry,
                                   GuiceDependencies guiceDependencies,
                                   org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry,
                                   boolean enterpriseModulesEnabled)
    • Method Detail

      • isInitialized

        public boolean isInitialized()
      • mapSgRoles

        public Set<String> mapSgRoles​(User user,
                                      org.elasticsearch.common.transport.TransportAddress caller)
      • getAllConfiguredTenantNames

        public Set<String> getAllConfiguredTenantNames()
      • multitenancyEnabled

        public boolean multitenancyEnabled()
      • notFailOnForbiddenEnabled

        public boolean notFailOnForbiddenEnabled()
      • kibanaIndex

        public String kibanaIndex()
      • kibanaServerUsername

        public String kibanaServerUsername()
      • isClusterPerm

        public static boolean isClusterPerm​(String action0)
      • isTenantPerm

        public static boolean isTenantPerm​(String action0)
      • isIndexPerm

        public static boolean isIndexPerm​(String action)
      • evaluateClusterAndTenantPrivileges

        public Map<String,​Boolean> evaluateClusterAndTenantPrivileges​(User user,
                                                                            org.elasticsearch.common.transport.TransportAddress caller,
                                                                            Collection<String> privilegesAskedFor)
      • hasClusterPermission

        public boolean hasClusterPermission​(User user,
                                            String action)
      • isKibanaRbacEnabled

        public boolean isKibanaRbacEnabled()