# How to safely disable XPack security features

**URL:** <https://discuss.elastic.co/t/how-to-safely-disable-xpack-security-features/309725>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [July 15, 2022, 9:15am UTC](https://discuss.elastic.co/t/how-to-safely-disable-xpack-security-features/309725 "2022-07-15T09:15:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yeziblo](https://avatars.discourse-cdn.com/v4/letter/y/74df32/32.png) [@yeziblo](https://discuss.elastic.co/u/yeziblo)\
**Post date:** [July 15, 2022, 9:15am UTC](https://discuss.elastic.co/t/how-to-safely-disable-xpack-security-features/309725/1 "2022-07-15T09:15:45Z")

</div>

Hi everyone, I need help.

In the near future, we plan to enable X-PACK security for our ES cluster，both transport and https.

What we need to consider is: once there is a problem in the production environment, we need to disable security of the cluster and roll back program.

Is there any way to disable cluster security without affecting cluster services?

---

<div class="post-metadata">

**Author:** ![yeziblo](https://avatars.discourse-cdn.com/v4/letter/y/74df32/32.png) [@yeziblo](https://discuss.elastic.co/u/yeziblo)\
**Post date:** [July 18, 2022, 11:03am UTC](https://discuss.elastic.co/t/how-to-safely-disable-xpack-security-features/309725/2 "2022-07-18T11:03:06Z")

</div>

Any suggestion would be helpful

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [July 18, 2022, 12:30pm UTC](https://discuss.elastic.co/t/how-to-safely-disable-xpack-security-features/309725/3 "2022-07-18T12:30:09Z")

</div>

Can you give more context on which problem would make you need to disable security features? This does not make much sense.

If you enable security features, you can disable them, just change the configuration and restart everything. I'm not sure if you can do a rolling restart, probably will need to stop the entire cluster and start again with the features disabled.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 19, 2022, 1:24am UTC](https://discuss.elastic.co/t/how-to-safely-disable-xpack-security-features/309725/4 "2022-07-19T01:24:41Z")

</div>

Enabling, or disabling, Security requires a full cluster restart and not a rolling one.

---

<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:** [August 16, 2022, 1:25am UTC](https://discuss.elastic.co/t/how-to-safely-disable-xpack-security-features/309725/5 "2022-08-16T01:25:37Z")

</div>

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