Elastic shield documentation mentions that it can cache users for authentication However there's no clear explanation or an example on how to achieve this.
I have a native realm user and a file realm user (for file realm user I configured following)
1 . How do I avoid passing username:password in subsequent requests ?
I'm trying to achieve this in elasticsearch python client , essentially I need to avoid passing username password in each request explicitly. For Instance following
es = Elasticsearch(
['localhost',],
http_auth=('filerealmuser', 'secret'),
port=9200,
)
Currently, Shield and X-Pack only support basic authentication. The caching is an internal mechanism to improve performance but your requests still need to provide the username and password every time.
Tokens and/or sessions are something we are currently looking at but these will only be available in X-Pack.
I see, I have integrated kibana through shield with elastic search and I have noticed that this requires username/password to be logged in once and maintained for session.
Kibana creates a session. May I know how is it able to achieve the same, as sessions are not supported in shield ?
Is there by any other means I can achieve a session like functionality in python ? For instance cookies or something similar ?
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.