Next, considering Elastic Cloud. Which is hosted Elasticsearch.
Is Elastic Cloud "secure by default" in the sense of requiring the usage of an API key or token? Or does it start out as clear-text and no password?
What are examples of a formatted HAYSTACK_CONNECTIONS that would work with Elastic Cloud?
Would it make sense for someone from the Elastic development team to reach out to django-haystack, and provide authentication examples for the documentation? Assuming auth is needed. Maybe it isn't.
Elastic Cloud has security explicitly enabled by default as of version 8.x, including authentication and TLS. If you check our Python client connection examples you'll see connections can be initialised a few ways including using either an API key or username, password combination.
Looking at the Haystack examples there is a 7.x example in the docs, but not a latest example using 8.x. It's not clear if 8.x support has been worked on having a quick peek at the open GitHub issues. I don't see support for an API Key in the Elasticsearch backends having a quick peek at the backend Python code on GitHub (disclaimer I'm more of a dabbler in Python).
I'm not sure on that one. It's a community driven project and they do accept contributions from others as well as the raising of issues. It can be contributed to by anyone, not just Elastic.
I don't see support for an API Key in the Elasticsearch backends
So maybe I was right in imagining there are blockers to using django-haystack with Elastic Cloud.
API Keys, and 8.x support.
I signed up at Elastic Cloud, and was going to be a paid subscriber. But then, ran into these issues. Switched back to 7.x self-hosted. Now, not using Cloud.
Haystack is open source, anyone can send pull requests. If Haystack had excellent integration with Elastic Cloud, in general, would a few more django developers choose the hosted service? Possibly.
Yes. I commented in an open issue "haystack elasticsearch 2.4 - how to secure ?" Issue #1695. A problem with the django-haystack project is there are 430 open issues, 747 closed issues. (That ratio seems to show they aren't solving issues quickly)
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.