# Cannot disable security in 8.1

**URL:** <https://discuss.elastic.co/t/cannot-disable-security-in-8-1/299857>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [March 16, 2022, 12:32pm UTC](https://discuss.elastic.co/t/cannot-disable-security-in-8-1/299857 "2022-03-16T12:32:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fulkon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fulkon/32/78258_2.png) [@fulkon](https://discuss.elastic.co/u/fulkon)\
**Post date:** [March 16, 2022, 12:32pm UTC](https://discuss.elastic.co/t/cannot-disable-security-in-8-1/299857/1 "2022-03-16T12:32:15Z")

</div>

I need elasticsearch without any security. In 7.17 it was enough to set xpack.security.enabled: false, but in 8.1.0 got error on startup:  
`org.elasticsearch.ElasticsearchSecurityException: invalid configuration for xpack.security.transport.ssl - [xpack.security.transport.ssl.enabled] is not set, but the following settings have been configured in elasticsearch.yml : [xpack.security.transport.ssl.keystore.secure_password,xpack.security.transport.ssl.truststore.secure_password]`  
but my elasticsearch.yml is pretty simple

> cluster.name: test  
> node.name: test1  
> path.data: /var/lib/elasticsearch  
> path.logs: /var/log/elasticsearch  
> network.host: 0.0.0.0  
> http.port: 80  
> xpack.security.enabled: false

Please help

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [March 16, 2022, 1:25pm UTC](https://discuss.elastic.co/t/cannot-disable-security-in-8-1/299857/2 "2022-03-16T13:25:28Z")

</div>

Hi there, as you have figured out, security features are enabled and configured by default. We strongly suggest that you keep it this way so that your data are protected. If this doesn't fit your use case and you still want to disable security, you can

#### Before starting elasticsearch for the first time

Set `xpack.security.enabled: false` and then start elasticsearch

#### After you have started elasticsearch for the first time

You have two options here

1. Set

2. Run

---

<div class="post-metadata">

**Author:** ![fulkon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fulkon/32/78258_2.png) [@fulkon](https://discuss.elastic.co/u/fulkon)\
**Post date:** [March 17, 2022, 2:37pm UTC](https://discuss.elastic.co/t/cannot-disable-security-in-8-1/299857/3 "2022-03-17T14:37:47Z")

</div>

Thanks. First step fixed startup for me

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 14, 2022, 2:38pm UTC](https://discuss.elastic.co/t/cannot-disable-security-in-8-1/299857/4 "2022-04-14T14:38:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
