You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transport connections between {{es}} nodes are security-critical and you must protect them carefully. Malicious actors who can observe or interfere with node-to-node transport traffic can read or modify cluster data. A malicious actor who can establish a transport connection might be able to invoke system-internal APIs, including APIs that read or modify cluster data.
3
+
4
+
If you choose to issue node transport certificates using third-party tools, then carefully review [](/deploy-manage/security/self-tls-considerations.md) to ensure that the certificates that you provide meet the security requirements for transport connections.
Copy file name to clipboardExpand all lines: deploy-manage/security/different-ca.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,10 @@ products:
15
15
16
16
If you have to trust a new CA from your organization, or you need to generate a new CA yourself, use this new CA to sign the new node certificates and instruct your nodes to trust the new CA.
17
17
18
+
:::{include} ./_snippets/own-ca-warning.md
19
+
:::
20
+
21
+
18
22
## Generate a new certificate for the transport layer [node-certs-different-transport]
19
23
20
24
Create a new CA certificate, or get the CA certificate of your organization, and add it to your existing CA truststore. After you finish updating your certificates for all nodes, you can remove the old CA certificate from your truststore (but not before!).
Copy file name to clipboardExpand all lines: deploy-manage/security/k8s-transport-settings.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,12 @@ spec:
75
75
76
76
## Issue node transport certificates with third-party tools [k8s-transport-third-party-tools]
77
77
78
+
:::{warning}
79
+
Transport connections between {{es}} nodes are security-critical and you must protect them carefully. Malicious actors who can observe or interfere with node-to-node transport traffic can read or modify cluster data. A malicious actor who can establish a transport connection might be able to invoke system-internal APIs, including APIs that read or modify cluster data.
80
+
81
+
If you choose to issue node transport certificates using third-party tools, then carefully review [](/deploy-manage/security/self-tls-considerations.md) to ensure that the certificates that you provide meet the security requirements for transport connections.
82
+
:::
83
+
78
84
When following the instructions in [Configure a custom Certificate Authority](#k8s-transport-ca) the issuance of certificates is orchestrated by the ECK operator and the operator needs access to the CAs private key. If this is undesirable it is also possible to configure node transport certificates without involving the ECK operator. The following two pre-requisites apply:
79
85
80
86
1. The tooling used must be able to issue individual certificates for each {{es}} node and dynamically add or remove certificates as the cluster scales up and down.
Copy file name to clipboardExpand all lines: deploy-manage/security/same-ca.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,9 @@ You don’t have to restart each node, but doing so forces new TLS connections a
22
22
23
23
The following steps provide instructions for generating new node certificates and keys for both the transport layer and the HTTP layer. You might only need to replace one of these layer’s certificates depending on which of your certificates are expiring.
Copy file name to clipboardExpand all lines: deploy-manage/security/secure-cluster-communications.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,36 +57,43 @@ Securing this layer prevents unauthorized nodes from joining your cluster and pr
57
57
58
58
The way that transport layer security is managed depends on your deployment type:
59
59
60
-
::::{tab-set}
60
+
:::::{tab-set}
61
61
:group: deployments
62
62
63
-
:::{tab-item} ECH and Serverless
63
+
::::{tab-item} ECH and Serverless
64
64
:sync: ech
65
65
{{es}} transport security is fully managed by Elastic, and no configuration is required.
66
-
:::
66
+
::::
67
67
68
-
:::{tab-item} ECE
68
+
::::{admonition}{tab-item} ECE
69
69
:sync: ece
70
70
{{es}} transport security is fully managed by {{ece}} platform, and no configuration is required.
71
-
:::
71
+
::::
72
72
73
-
:::{tab-item} ECK
73
+
::::{tab-item} ECK
74
74
:sync: eck
75
75
76
76
:::{include} ./_snippets/eck-transport.md
77
77
:::
78
78
79
+
:::{include} ./_snippets/own-ca-warning.md
79
80
:::
80
81
81
-
:::{tab-item} Self-managed
82
+
::::
83
+
84
+
::::{tab-item} Self-managed
82
85
:sync: self
83
86
{{es}} transport security can be [automatically configured](self-auto-setup.md), or manually set up by following the steps in [](set-up-basic-security.md).
84
87
85
88
For additional TLS configuration options, refer to [](./self-tls.md).
The HTTP layer includes the service endpoints exposed by both {{es}} and {{kib}}, supporting communications such as REST API requests, browser access to {{kib}}, and {{kib}}’s own traffic to {{es}}. Securing these endpoints helps prevent unauthorized access and protects sensitive data in transit.
Copy file name to clipboardExpand all lines: deploy-manage/security/self-tls-considerations.md
+11-49Lines changed: 11 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,65 +11,27 @@ navigation_title: External CA considerations
11
11
12
12
# Considerations for using an external CA for transport layer security
13
13
14
-
::::{important}
15
-
Transport connections between {{es}} nodes are security-critical. Malicious actors who can observe, interfere with, or establish these connections may be able to read or modify cluster data through system-internal APIs.
16
-
::::
17
-
18
-
## How mutual TLS protects transport connections
19
-
20
-
By default, {{es}} uses mutual TLS (mTLS) for node-to-node transport connections. This ensures:
21
-
22
-
-**Encryption**: Data is encrypted in transit for confidentiality and integrity
23
-
-**Authentication**: Both nodes must present valid certificates when connecting
24
-
-**Authorization**: Certificates must be issued by a trusted certificate authority
25
-
26
-
Configure trusted certificate authorities using settings like `xpack.security.transport.ssl.certificate_authorities` or `xpack.security.transport.ssl.truststore.path`.
27
-
28
-
## Certificate authority requirements
14
+
By default, {{es}} uses mutual TLS (mTLS) to secure node-to-node transport connections within a cluster. With mTLS, data is encrypted in transit and both nodes must present valid certificates when connecting. Each node requires that certificates be issued by a trusted certificate authority, ensuring that only authorized nodes can connect. Configure trusted certificate authorities using settings in the [`xpack.security.transport.ssl.*`](elasticsearch://reference/elasticsearch/configuration-reference/security-settings.md#transport-tls-ssl-settings) namespace, such as `xpack.security.transport.ssl.certificate_authorities` and `xpack.security.transport.ssl.truststore.path`.
29
15
30
16
::::{warning}
31
-
Anyone with a certificate from a trusted CA can establish transport connections to your cluster and potentially access or modify data.
17
+
Transport connections between {{es}} nodes are security-critical and you must protect them carefully. Malicious actors who can observe or interfere with node-to-node transport traffic can read or modify cluster data. A malicious actor who can establish a transport connection might be able to invoke system-internal APIs, including APIs that read or modify cluster data.
32
18
::::
33
19
34
-
Use a dedicated private certificate authority for each {{es}} cluster. **Do not use**:
These broader CAs issue certificates to entities beyond your authorized {{es}} nodes, creating security risks.
41
-
42
-
## Certificate requirements
43
-
44
-
Transport certificates must either:
45
-
- Have no Extended Key Usage (EKU) extension, or
46
-
- Include both `clientAuth` and `serverAuth` in the EKU extension
47
-
48
-
Public CAs typically omit `clientAuth`, making their certificates unsuitable for mTLS.
49
-
50
-
## HTTP versus transport certificates
51
-
52
-
**Do not use the same certificate for both HTTP and transport connections.** They have different security requirements:
53
-
54
-
-**Transport certificates** (`xpack.security.transport.ssl.*`): Require mTLS and must include `clientAuth` in the EKU extension
55
-
-**HTTP certificates** (`xpack.security.http.ssl.*`): Use HTTP authentication mechanisms and typically don't need `clientAuth`
20
+
## External CA mTLS transport certificate requirements
56
21
57
-
HTTP certificates can often come from public or organization-wide CAs, while transport certificates should always use a cluster-specific private CA.
22
+
Obtain your transport certificates from a certificate authority that only issues certificates to {{es}} nodes permitted to connect to your cluster. Do not use a public certificate authority or an organization-wide private certificate authority, because these issue certificates to entities beyond your authorized cluster nodes. The recommended practice is to use a dedicated private certificate authority for each {{es}} cluster.
58
23
59
-
## Disabling mutual TLS
24
+
Certificates used for mTLS must either have no Extended Key Usage extension, or include both `clientAuth` and `serverAuth` values in the extension. Public certificate authorities typically omit the `clientAuth` value in the Extended Key Usage extension, making them unsuitable for mTLS.
60
25
61
-
If your environment prevents unauthorized node-to-node connections through other means, you can disable mTLS:
Transport certificates ([`xpack.security.transport.ssl.*`](elasticsearch://reference/elasticsearch/configuration-reference/security-settings.md#transport-tls-ssl-settings) settings) have different security requirements than HTTP certificates ([`xpack.security.http.ssl.*`]((elasticsearch://reference/elasticsearch/configuration-reference/security-settings.md#http-tls-ssl-settings)) settings). HTTP connections don't typically use mTLS because HTTP has its own authentication mechanisms, so HTTP certificates usually don't need to include the `clientAuth` value in their Extended Key Usage extension. HTTP certificates can come from public or organization-wide certificate authorities, while transport certificates should use a cluster-specific private CA. In most cases, you should not use the same certificate for both HTTP and transport connections.
66
29
67
-
You can still use non-mutual TLS for encryption:
30
+
## Turning off mTLS for transport connections
68
31
69
-
```yaml
70
-
xpack.security.transport.ssl.enabled: true
71
-
```
32
+
If your environment has some other way to prevent unauthorized node-to-node connections, you might prefer not to use mTLS for transport connections. In this case, you can disable mTLS by setting `xpack.security.transport.ssl.client_authentication: none`. You can still use non-mutual TLS for encryption by setting `xpack.security.transport.ssl.enabled: true`. With non-mutual TLS, transport certificates don't require the `clientAuth` value in the Extended Key Usage extension.
72
33
73
34
::::{warning}
74
-
Disabling mTLS allows anyone with network access to establish transport connections. Only do this if you're absolutely certain unauthorized network access cannot occur.
35
+
Turning off mTLS by setting `xpack.security.transport.ssl.client_authentication` to `optional` or `none` allows anyone with network access to establish transport connections. Malicious actors can use these connections to invoke system-internal APIs that may read or modify cluster data. Use mTLS to
36
+
protect your node-to-node transport connections unless you are absolutely certain that unauthorized network access to these nodes cannot occur.
Copy file name to clipboardExpand all lines: deploy-manage/security/set-up-basic-security.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,14 @@ In this guide, you will learn how to:
28
28
29
29
Refer to [Transport TLS/SSL settings](elasticsearch://reference/elasticsearch/configuration-reference/security-settings.md#transport-tls-ssl-settings) for the complete list of available settings in {{es}}.
30
30
31
+
## Considerations for using an external CA
32
+
33
+
You might choose to use an external CA to generate transport certificates for node-to-node connections.
34
+
35
+
Transport connections between {{es}} nodes are security-critical and you must protect them carefully. Malicious actors who can observe or interfere with node-to-node transport traffic can read or modify cluster data. A malicious actor who can establish a transport connection might be able to invoke system-internal APIs, including APIs that read or modify cluster data.
36
+
37
+
Carefully review [](/deploy-manage/security/self-tls-considerations.md) to ensure that the certificates that you provide meet the security requirements for transport connections.
38
+
31
39
## Generate the certificate authority [generate-certificates]
32
40
33
41
You can add as many nodes as you want in a cluster but they must be able to communicate with each other. The communication between nodes in a cluster is handled by the transport module. To secure your cluster, you must ensure that internode communications are encrypted and verified, which is achieved with mutual TLS.
0 commit comments