# Integration of Opensearch security with istio

**URL:** <https://forum.opensearch.org/t/integration-of-opensearch-security-with-istio/10283>\
**Category:** Security\
**Created:** [July 18, 2022, 9:37am UTC](https://forum.opensearch.org/t/integration-of-opensearch-security-with-istio/10283 "2022-07-18T09:37:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pratiksha](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@Pratiksha](https://forum.opensearch.org/u/Pratiksha)\
**Post date:** [July 18, 2022, 9:37am UTC](https://forum.opensearch.org/t/integration-of-opensearch-security-with-istio/10283/1 "2022-07-18T09:37:14Z")

</div>

I am using OpenSearch with security and want to integrate Istio with it.  
Earlier we were using ELasticsearch with searchguard and integrated istio with it, we were suggested to use steps mentioned in ticket: [Searchguard without tls - Search Guard - Search Guard Forum](https://forum.search-guard.com/t/searchguard-without-tls/1794)  
We had disabled TLS on Rest layer as part of suggested steps and enabled MTLS using istio.  
These same steps worked fine for OpenSearch v1.3.2.  
However now with Opensearch v2.x since securityadmin.sh should be run on http port and not transport port, it is failing with error “ERR: An unexpected IOException occured: Unrecognized SSL message, plaintext connection?”  
It looks like that now with this change, setting of “plugins.security.ssl.http.enabled” as false has introduced a bug. As disabling it would fail execution of securityadmin.sh script.

Kindly recommend a way on how to integrate istio with Opensearch security.

---

<div class="post-metadata">

**Author:** ![Pratiksha](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@Pratiksha](https://forum.opensearch.org/u/Pratiksha)\
**Post date:** [August 12, 2022, 11:03am UTC](https://forum.opensearch.org/t/integration-of-opensearch-security-with-istio/10283/2 "2022-08-12T11:03:42Z")

</div>

Hi,  
Kindly share an update on this, What can be the possible approach to integrate istio with Opensearch security and if there is any plan for fixing usage of “plugins.security.ssl.http.enabled” parameter.

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [August 12, 2022, 1:29pm UTC](https://forum.opensearch.org/t/integration-of-opensearch-security-with-istio/10283/3 "2022-08-12T13:29:41Z")

</div>

@Pratiksha I wouldn’t call that a bug but a design change.  
TransportClient authorization and authentication have been deprecated in version 2.0.0 as per [release notes](https://github.com/opensearch-project/opensearch-build/blob/main/release-notes/opensearch-release-notes-2.0.0.md).

All client authentication is now handled by HTTP endpoint (9200).

The securityadmin.sh requires an admin certificate to manage the security plugin configuration. Certificate authentication/authorization requires HTTPS connection and securityadmin.sh follows that logic.

---

<div class="post-metadata">

**Author:** ![Pratiksha](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@Pratiksha](https://forum.opensearch.org/u/Pratiksha)\
**Post date:** [August 16, 2022, 6:05am UTC](https://forum.opensearch.org/t/integration-of-opensearch-security-with-istio/10283/4 "2022-08-16T06:05:39Z")

</div>

Yes, I understand. However, as now ssl cannnot be disabled on Rest layer as securityadmin.sh requires a HTTPS connection then “plugins.security.ssl.http.enabled” parameter is of no use as it cannot be set to false as that would lead to error.

---

<div class="post-metadata">

**Author:** ![Pratiksha](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@Pratiksha](https://forum.opensearch.org/u/Pratiksha)\
**Post date:** [August 18, 2022, 10:19am UTC](https://forum.opensearch.org/t/integration-of-opensearch-security-with-istio/10283/5 "2022-08-18T10:19:21Z")

</div>

Hi @pablo  
With this design change being introduced in the plugin can you please provide an insight on how we could use OpenSearch 2.x with istio.

---

<div class="post-metadata">

**Author:** ![Danjin](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@Danjin](https://forum.opensearch.org/u/Danjin)\
**Post date:** [May 9, 2023, 8:58am UTC](https://forum.opensearch.org/t/integration-of-opensearch-security-with-istio/10283/6 "2023-05-09T08:58:39Z")

</div>

any updates on this topic ? We also want to learn how to use opensearch with istio

---

<div class="post-metadata">

**Author:** ![Danjin](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@Danjin](https://forum.opensearch.org/u/Danjin)\
**Post date:** [May 17, 2023, 11:37am UTC](https://forum.opensearch.org/t/integration-of-opensearch-security-with-istio/10283/7 "2023-05-17T11:37:54Z")

</div>

@Pratiksha  
maybe this could also be suitable for you [link](https://forum.opensearch.org/t/opensearch-with-istio/14290/6)
