4 ms·
Does it still have the issue of failing "open to the world" if the x-pack trial expires? See: https://discuss.elastic.co/t/ransom-attack-on-elasticsearch-clust
by tyingq 7y ago
Does it still have the issue of failing "open to the world" if the x-pack trial expires? See: https://discuss.elastic.co/t/ransom-attack-on-elasticsearch-cluster/71310/18 https://discuss.elastic.co/t/ransom-attack-on-elasticsearch-...
- bpicolo 7y agoXpack's basic features come builtin in latest Elasticsearch - trial is for a separate set of features.
- kuhsaft 7y agoX-Pack Auth is now free and included with Elasticsearch.
- FZ1 7y agoAccording to the docs, it's a 30-Day trial: https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-xpack.html https://www.elastic.co/guide/en/elasticsearch/reference/curr... Are these docs out-of-date ? Does anyone know if any features remain after 30 days if you do not subscribe ?
- kuhsaft 7y ago”If you want to try all of the X-Pack features” It’s quite confusing. There are different tiers of X-Pack: https://www.elastic.co/subscriptions https://www.elastic.co/subscriptions The Basic tier, which is free, supports simple username and password authentication.
- FZ1 7y agoYeah, I read this link also - before posting above. There is no 'username' or 'password' term on that page - nor any positive checkmark in any security column for the open-source tier. 'Basic' tier does have 'File and Native Authentication'. But it is far from clear what that means. More importantly, in several different places that _are_ clear about security in the Elastic documentation, it repeatedly says "there is no security", "assume anyone who can reach elastic is a superuser" ... and more ... So if that is not true, the documentation should probably change ...
- kuhsaft 7y agoI haven't seen anywhere in the documentation that claims "assume anyone who can reach elastic is a superuser". The Elasticsearch Security documentation appears to be up to date and has notes on if certain features depend on a subscription. https://www.elastic.co/guide/en/elasticsearch/reference/current/elasticsearch-security.html https://www.elastic.co/guide/en/elasticsearch/reference/curr...
- FZ1 7y ago"Elasticsearch has no concept of a user. Essentially, anyone that can send arbitrary requests to your cluster is a “super user”. " https://www.elastic.co/de/blog/found-elasticsearch-security https://www.elastic.co/de/blog/found-elasticsearch-security This document says it twice verbatim - once as an emphasizes blurb of its own. It is also re-emphasized it in several other ways. (same link as also posted by the Elasticsearch employee above).
- timv 7y ago(Disclosure, I work for Elastic) It's definitely complicated, and can be quite confusing due to the number of subscription tiers, the ambiguity around terminology, and historical documentation. We need need to find a way to bring more clarity to the documentation, and we try, but the subscriptions page, in particular, is very difficult. It's already very long, so we don't want to add detailed explanations to individual points but it's hard to find short sentences that are both accurate and well understood by a variety of audiences. To be clear: - There is no security in Open Source elasticsearch. - There is security in the free "basic" license. It is, at the time of writing, disabled by default. - Early versions of Elasticsearch had no security at all. - The security product that we (Elastic) produced was exclusively a paid feature for many years - The core security features (authentication, users management, role based access control) have been free in the basic license since May of last year. https://www.elastic.co/blog/security-for-elasticsearch-is-now-free https://www.elastic.co/blog/security-for-elasticsearch-is-no... - If you download the latest version of the Elastic-licensed distribution of Elasticsearch (which is the default download if you get it from our website or package repositories), you get a version on which you can enable security, free of charge, without needing to register, with no expiry. The only documentation I found which says "there is no security", etc is from old blog articles (e.g. this one from 2013 https://www.elastic.co/de/blog/found-elasticsearch-security https://www.elastic.co/de/blog/found-elasticsearch-security). We don't do a great job of indicating that the information on those articles is out of date.
- karambir 7y agoWe were hit by this on Kibana 6.x as I didn't read the x-pack trial properly. I thought at least login would be there. My bad. We added Nginx auth after that. But x-pack security is actually free from some point release in version 7. Though x-pack is not open source, just free to use. So our nginx Kibana auth is still there.
- six2seven 7y agoAs an alternative, there's an open-source OpenDistro for ElasticSearch [1] that offers X-Pack-like security with some other X-Pack-like features. Although it is not officially supported by elastic.co, but it's a pretty good alternative and is supported by Netflix, Amazon, et all. Worth giving a try. [1] https://opendistro.github.io/for-elasticsearch/ https://opendistro.github.io/for-elasticsearch/
- puszczyk 7y ago> ... supported by Netflix, Amazon, et all So in case I'm stuck I can pay Netflix to help me?
- timv 7y agoI'm the lead engineer for Elasticsearch security. I'm sorry - I have never seen that specific post on our forums before, but the poster was mistaken and by not correcting it at the time, we have allowed incorrect information to perpetuate. In versions where security was a paid feature, if a trial license expired, security would remain enabled, but certain operations would be rejected for all users (per the warning text "Cluster health, cluster stats and indices stats operations are blocked") We intentionally did not open the cluster to be world readable/writable. The administrator would be left with a cluster that was secure, but blocked access to some functions that are necessary for running a production cluster. It was up to them to explicitly upgrade to a paid license and re-enable those APIs, or downgrade to a "basic" license which required acknowledgement that security would be disabled. An example (this is from 6.7.0 because it's the newest version I have installed at the moment, where security was not free. This was true at the time the original forum post was written - I just tested 5.2.0 as well, and the results are the same, with slightly different error messages): License state: license [fc5bee69-f086-4989-a32a-5db329692363] mode [trial] - valid license [fc5bee69-f086-4989-a32a-5db329692363] - expired recovered [1] indices into cluster_state LICENSE [EXPIRED] ON [SATURDAY, SEPTEMBER 28, 2019]. Curl without credentials: curl http://localhost:9200/ {"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication token for REST request [/]","header":{"WWW-Authenticate":["ApiKey","Basic realm=\"security\" charset=\"UTF-8\""]}}],"type":"security_exception","reason":"missing authentication token for REST request [/]","header":{"WWW-Authenticate":["ApiKey","Basic realm=\"security\" charset=\"UTF-8\""]}},"status":401}% Curl with credentials: curl -u elastic http://localhost:9200/ Enter host password for user 'elastic': { "name" : "node1", "cluster_name" : "es-670", ... Blocked cluster health: curl -u elastic http://localhost:9200/_cluster/health Enter host password for user 'elastic': {"error":{"root_cause":[{"type":"security_exception","reason":"current license is non-compliant for [security]","license.expired.feature":"security"}],"type":"security_exception","reason":"current license is non-compliant for [security]","license.expired.feature":"security"},"status":403} Logs: blocking [indices:monitor/stats] operation due to expired license. ... However, as mentioned by other sibling comments, security has been included in the free license since May last year, so as far as security is concerned, there is no longer a choice to make when a trial expires. (Disclosure, as mentioned at the top, I work for Elastic)