# Opensearch integration with IDP

**URL:** <https://forum.opensearch.org/t/opensearch-integration-with-idp/10749>\
**Category:** OpenSearch\
**Created:** [August 26, 2022, 6:48am UTC](https://forum.opensearch.org/t/opensearch-integration-with-idp/10749 "2022-08-26T06:48:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabil](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@sabil](https://forum.opensearch.org/u/sabil)\
**Post date:** [August 26, 2022, 6:48am UTC](https://forum.opensearch.org/t/opensearch-integration-with-idp/10749/1 "2022-08-26T06:48:44Z")

</div>

Hello All,

I have few queries on the OpenID IDP integration with Opensearch.

We have IDP configured at org level and we will be using the same thing for integration.

I have created a config.yml and add required paramenter to opensearch.yml and opensearch-dashboard.

for example:- openidconnectUrl, appliation ID and secret etc…

I am using docker-compose to start the opensearch and opensearch-dashboard with single node.

I am getting message **you may run the securityadmin.sh** first to configure/initialize the opensearch-security.

When I run the securityadmin.sh I am getting the following information.

```auto
Will connect to localhost:9200 ... done
Connected as "CN=kirk,OU=client,O=client,L=test,C=de"
OpenSearch Version: 2.2.0
Contacting opensearch cluster 'opensearch' and wait for YELLOW clusterstate ...
Clustername: opensearch-cluster
Clusterstate: GREEN
Number of nodes: 1
Number of data nodes: 1
.opendistro_security index already exists, so we do not need to create one.
Legacy index '.opendistro_security' (ES 6) detected (or forced). You should migrate the configuration!

```

When I search the error found that there is bug in opensearch 2.0. I hope this will fix the issue.

> <https://github.com/opensearch-project/security/issues/1876>
>
> \*\*What is the bug?\*\*
> I am getting the below error when try to take a backup of …the security yml files.
> 
> ERR: Seems audit from cluster is not in legacy format: java.io.IOException: A version of 1 can not have a \_meta key for AUDIT
> 
> \*\*How can one reproduce the bug?\*\*
> Steps to reproduce the behavior:
> 1. Untar opensearch 2.0.0 and run opensearch-tar-install.sh
> 2. Ran the below
> 
> ./securityadmin.sh -backup my-backup-directory
> \-icl
> \-nhnv
> \-cacert …/…/…/config/root-ca.pem
> \-cert …/…/…/config/node.pem
> \-key …/…/…/config/node.key
> 
> 3. Got the below error
> 
> ERR: Seems audit from cluster is not in legacy format: java.io.IOException: A version of 1 can not have a \_meta key for AUDIT
> 
> \*\*What is the expected behavior?\*\*
> A clear and concise description of what you expected to happen.
> 
> \*\*What is your host/environment?\*\*
> - OS: Rocky Linux 8.4
> - Version : Opensearch 2.0.0

The another question is if we want to do the IDP integration with opensearch in production environment. Do we need to have a root-ca certificate from IDP to validate it the authentication.

Kindly provide your valuable opinion.

Thanks.
