Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Changing the Security Mode of an Elasticsearch Cluster

Updated on 2024-10-12 GMT+08:00

This topic describes how to change the security mode of an existing cluster.

Scenario

You can create a cluster by choosing its security mode and web protocol (HTTP or HTTPS). For details about the differences between clusters of different security mode settings (including HTTP/HTTPS), see Table 1.
Table 1 Cluster security modes

Cluster Type

Description

Characteristics

Non-security mode cluster

Cluster for which the security mode is disabled

With such a cluster, access to the cluster will require no user authentication, and data will be transmitted in plaintext using HTTP. Make sure the customer is in a secure environment, and do not expose the cluster access interface to the public network.

This type of cluster is mostly used for internal services and testing.

  • Advantage: simple and easy to access.
  • Disadvantage: poor security as anyone can access it.

Security-mode cluster

Cluster in security mode + HTTP

A security-mode cluster requires user authentication. It supports access control and data encryption, and it uses HTTP to transmit data in plaintext. Make sure the customer is in a secure environment, and do not expose the cluster access interface to the public network.

Access control by user permissions is supported. This type of cluster is suitable for workloads that are particularly performance-demanding.

  • Advantage: User authentication improves cluster security. HTTP-based access ensures high performance of the cluster.
  • Disadvantage: The cluster cannot be accessed from the public network.

Cluster in security mode + HTTPS

A security-mode cluster requires user authentication. It supports access control and data encryption, and it uses HTTPS to encrypt communication and enhance data security.

This type of cluster is suitable where there is a high security standard and public network access is required.

  • Advantage: User authentication improves cluster security, and HTTPS-based secure communication allows for secure public network access.
  • Disadvantage: HTTPS encrypts nearly all information sent between server and client, causing a read performance loss of around 20%.
Table 2 lists the options you have when it comes to changing the security model of a cluster.
Table 2 Security mode change scenarios

Scenario

Details

Change a cluster from non-security mode to security mode + HTTP.

Switching from the Non-Security Mode to Security Mode

Change a cluster from non-security mode to security mode + HTTPS.

Change a cluster from security mode + HTTP to non-security mode.

Switching from the Security to Non-Security Mode

Change a cluster from security mode + HTTPS to non-security mode.

Change a cluster from security mode + HTTP to security mode + HTTPS.

Switching the Protocol of Security Clusters

Change a cluster from security mode + HTTPS to security mode + HTTP.

Prerequisites

  • You are advised to back up data before changing the cluster security mode.
  • The target cluster is available and has no tasks in progress.
  • Check whether load balancing is enabled for the cluster. If yes, disable load balancing for the cluster. Enable load balancing again after the security mode is changed. This prevents errors in accessing the cluster through the load balancer during the change.

Constraints

  • Only clusters (whose version is 6.5.4 or later) created after November 2022 support security mode changing.
  • A cluster automatically restarts when its security mode is being changed. Services are interrupted during the restart. The authentication mode for invoking the cluster will change after the restart, and client configurations need to be adjusted accordingly.
  • If a cluster has already opened the Kibana session box, a session error message will be displayed after you change the cluster security mode. In this case, clear the cache and open Kibana again.
  • Disabling security mode for a cluster clears the security account. The cleared account cannot be restored.

Switching from the Non-Security Mode to Security Mode

You can change a non-security cluster to a security cluster that uses HTTP or HTTPS. After a cluster's security mode is enabled, security authentication is required for accessing the cluster.

  1. Log in to the CSS management console.
  2. In the navigation pane on the left, choose Clusters > Elasticsearch. The Elasticsearch cluster management page is displayed.
  3. Choose More > Modify Configuration in the Operation column of the target cluster. The Modify Configuration page is displayed.
  4. Choose the Configure Security Mode tab.
  5. Enable the security mode. Enter and confirm the administrator password of the cluster.
    Figure 1 Enabling the security mode
  6. Enable or disable HTTPS Access.
    • If you enable HTTPS Access: The HTTPS protocol is used to encrypt cluster communication and you can configure public networks to access the cluster.
    • If you disable HTTPS Access: The HTTP protocol is used and you cannot configure public networks to access the cluster.
  7. Click Submit. Confirm the information and the cluster list page is displayed.

    The Task Status of the cluster is The security mode is changing. When the cluster status changes to Available, the security mode has been successfully changed.

Switching from the Security to Non-Security Mode

You can change a security cluster that uses HTTP or HTTPS to a non-security cluster. After a cluster's security mode is disabled, security authentication is no longer required for accessing the cluster.

NOTICE:
  • Clusters in non-security mode can be accessed without security authentication, and HTTP protocol is used to transmit data. Ensure the security of the cluster access environment and do not expose the access interface to the public network.
  • During the switchover from the security mode to the non-security mode, the indexes of the original security cluster will be deleted. Back up data before disabling the security mode.
  • If a security cluster has been bound to a public IP address, unbind it before changing the security mode.
  • If a security cluster has enabled Kibana public network access, disable it before changing the security mode.
  1. Log in to the CSS management console.
  2. In the navigation pane on the left, choose Clusters. On the displayed Clusters page, locate the target cluster and choose More > Modify Configuration in the Operation column.
  3. Choose the Configure Security Mode tab.
  4. Disable the security mode.
    Figure 2 Disabling the security mode
  5. Click Submit. In the displayed dialog box, confirm the information. The cluster list page is displayed.

    The Task Status of the cluster is The security mode is changing. When the cluster status changes to Available, the security mode has been successfully changed.

Switching the Protocol of Security Clusters

You can change the protocol of a security cluster.

NOTICE:

If a security cluster has been bound to a public IP address, you need to unbind it before changing HTTPS protocol to HTTP.

  1. Log in to the CSS management console.
  2. In the navigation pane on the left, choose Clusters. On the displayed Clusters page, locate the target cluster and choose More > Modify Configuration in the Operation column.
  3. Choose the Configure Security Mode tab.
  4. Enable or disable HTTPS Access.
    Figure 3 Configuring the protocol
    • If you enable HTTPS Access:

      HTTPS protocol is used to encrypt cluster communication and you can configure public network access.

    • If you disable HTTPS Access: An alarm message is displayed. Click OK to disable the function.

      Cluster communication is no longer encrypted and the public network access function cannot be enabled.

  5. Click Submit. Confirm the information and the cluster list page is displayed.

    The Task Status of the cluster is The security mode is changing. When the cluster status changes to Available, the security mode has been successfully changed.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback