Updating Cluster Security Mode to Enforcing
When you create an new OpenSearch cluster in the Console, the cluster's security mode is set to enforcing. Enforcing security mode is required for several Search with OpenSearch security related features, such as role-based access control, OpenID connect, and multi-tenancy.
- Caution
After you set your cluster's security mode to enforcing, you can't revert it back to permissive.Open the navigation menu and click Databases. Under OpenSearch, click Clusters.
In the Clusters list, click the name of the cluster you want to change the security mode to enforcing for.
On the Security Information tab, select ENFORCING for Mode.
(Optional) To change the password for the primary account, specify a new value in the Password field, and then re-enter it in Confirm Password.
Click Save changes.
Use the oci opensearch cluster update command and required parameters to update the name for a cluster:
oci opensearch cluster update --opensearch-cluster-id cluster_ocid --display-name cluster_name --security-mode security_mode [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
- For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.
Run the UpdateOpensearchCluster operation to update a cluster's security mode to ENFORCING.