I want Kibana (localhost:5601) to require login.
But I also want all my api's running on localhost that integrate with Elasticsearch to be able to communicate without authentication.
I've been experimenting with ip filtering and anonymous access, but can't really make it work.
While that may sound like a simple use-case, the configuration you describe isn't secure - anyone who can access the box and make requests to localhost would be able to wreak havoc with your cluster.
Instead, have you considered setting up an administrator account and/or using PKI (certificate-based authentication) for your administrative needs?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.