-
Notifications
You must be signed in to change notification settings - Fork 159
Security comms #941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Security comms #941
Changes from 15 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
a4472c7
merging shaina's PR with my WIP changes
eedugon 8f374d0
security certificates work in progress
eedugon 0fa5251
HTTPS setup ongoing
eedugon e4601e1
kibana https updated
eedugon 155e78f
syncing tabs
eedugon f6da69c
working in progress
eedugon 613a131
automatic and manual configs for self-managed almost completed
eedugon 602e280
basic and basic plus concepts refined
eedugon 4dd4b33
TLS certificates extra landing pages added
eedugon 6185393
redirect for self-setup.md
eedugon 0a15585
automatic security setup file renamed to self-auto-setup.md
eedugon 6e86fa6
final refinements before ready for review
eedugon f0626ec
Merge remote-tracking branch 'origin/main' into security_comms
eedugon 36b15c7
moved tutorial
eedugon d3ba8d5
fixing some links
eedugon d820457
Apply suggestions from code review
eedugon fc987ad
deploy guides updated
eedugon ea7867b
changes per review comments
eedugon 7a7241d
removing badge in section
eedugon c4fa413
fixing various links
eedugon d2b767a
Merge remote-tracking branch 'origin/main' into security_comms
eedugon 44ed1bf
kibana security doc reduced. finding home
eedugon 8183345
comparison table updated
eedugon bd3cb74
getting closer
eedugon 87f634b
Update deploy-manage/security/self-setup.md
eedugon 6833ffc
refinement completed
eedugon e634418
merging main without redirects
eedugon 1fe942a
new redirects.yml added
eedugon 3e9cf0a
Merge branch 'main' into security_comms
shainaraskas f82bfbd
Apply suggestions from code review
eedugon d0b5df0
review in progress
eedugon 2703f92
Apply suggestions from code review
eedugon 23a9ae2
Update deploy-manage/security/_snippets/cluster-comparison.md
eedugon 7da7542
Update deploy-manage/security/_snippets/cluster-comparison.md
eedugon beca853
working on reviews
eedugon 8da916c
working on reviews
eedugon 091d773
working on reviews
eedugon 8c87940
working on reviews
eedugon b9c7373
working on reviews
eedugon 9108fb2
working on reviews
eedugon 3b7e16f
applies_to and substitutions fixed
eedugon 8044f47
Update deploy-manage/security/set-up-basic-security-plus-https.md
eedugon 6bacccb
Update deploy-manage/security/set-up-basic-security-plus-https.md
eedugon 5da9e04
Merge branch 'main' into security_comms
eedugon dc296f1
install stack demo secure moved to raw content
eedugon 9a69bec
removed empty line
eedugon db53e13
Merge branch 'main' into security_comms
eedugon 4a31e1d
final refinement
eedugon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
deploy-manage/deploy/self-managed/_snippets/auto-security-config.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
When you start {{es}} for the first time, the following security configuration occurs automatically: | ||
|
||
* [Certificates and keys](/deploy-manage/security/security-certificates-keys.md#stack-security-certificates) for TLS are generated for the transport and HTTP layers. | ||
* [Certificates and keys](/deploy-manage/security/self-auto-setup.md#stack-security-certificates) for TLS are generated for the transport and HTTP layers. | ||
* The TLS configuration settings are written to `elasticsearch.yml`. | ||
* A password is generated for the `elastic` user. | ||
* An enrollment token is generated for {{kib}}, which is valid for 30 minutes. | ||
|
||
You can then start {{kib}} and enter the enrollment token. This token automatically applies the security settings from your {{es}} cluster, authenticates to {{es}} with the built-in `kibana` service account, and writes the security configuration to `kibana.yml`. | ||
|
||
::::{note} | ||
There are [some cases](/deploy-manage/security/security-certificates-keys.md#stack-skip-auto-configuration) where security can’t be configured automatically because the node startup process detects that the node is already part of a cluster, or that security is already configured or explicitly disabled. | ||
There are [some cases](/deploy-manage/security/self-auto-setup.md#stack-skip-auto-configuration) where security can’t be configured automatically because the node startup process detects that the node is already part of a cluster, or that security is already configured or explicitly disabled. | ||
:::: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
deploy-manage/security/_snippets/cluster-communication-network.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
* [Manage TLS certificates](/deploy-manage/security/secure-cluster-communications.md): TLS certificates apply security controls to network communications. Elastic uses TLS certificates to secure communications in two places: | ||
* **The HTTP layer**: Used for communication between your cluster or deployment and the internet. | ||
* **The transport layer**: Used mainly for inter-node communications, and in certain cases for cluster to cluster communication. | ||
* In self-managed {{es}} clusters, you can also [Configure Kibana and Elasticsearch to use mutual TLS](/deploy-manage/security/secure-http-communications.md#elasticsearch-mutual-tls). | ||
* In self-managed {{es}} clusters, you can also [Configure Kibana and Elasticsearch to use mutual TLS](/deploy-manage/security/kibana-es-mutual-tls.md). | ||
* [Enable cipher suites for stronger encryption](/deploy-manage/security/enabling-cipher-suites-for-stronger-encryption.md): The TLS and SSL protocols use a cipher suite that determines the strength of encryption used to protect the data. You may want to enable the use of additional cipher suites, so you can use different cipher suites for your TLS communications or communications with authentication providers. | ||
* [Restrict connections using traffic filtering](/deploy-manage/security/traffic-filtering.md): Traffic filtering allows you to limit how your deployments can be accessed. Add another layer of security to your installation and deployments by restricting inbound traffic to only the sources that you trust. Restrict access based on IP addresses or CIDR ranges, or secure connectivity through AWS PrivateLink, Azure Private Link, or GCP Private Service Connect. | ||
eedugon marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
* [Allow or deny {{ech}} IP ranges](/deploy-manage/security/elastic-cloud-static-ips.md): {{ecloud}} publishes a list of IP addresses used by its {{ech}} services for both incoming and outgoing traffic. Users can use these lists to configure their network firewalls as needed to allow or restrict traffic related to {{ech}} services. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{es}} security unlocks key capabilities such as [Authentication and authorization](/deploy-manage/users-roles.md), TLS encryption, and other security-related functionality described in this section. The first step in securing your deployment is to ensure that the {{es}} security feature is enabled and properly configured. | ||
eedugon marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
::::{note} | ||
Deployments managed by {{eck}}, {{ece}}, {{ech}}, and {{serverless-short}} automatically configure security by default. This includes setting the `elastic` user password, generating TLS certificates, and configuring {{kib}} to connect to {{es}} securely. Disabling security is not supported in these deployment types. | ||
:::: | ||
|
||
For self-managed deployments, [Learn how to set up security](/deploy-manage/security/self-setup.md) using Elastic’s automatic configuration or by following the manual process. | ||
eedugon marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
30 changes: 30 additions & 0 deletions
30
deploy-manage/security/_snippets/kibana-client-https-setup.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
When you ran the `elasticsearch-certutil` tool with the `http` option to create the {{es}} certificates, it created a `/kibana` directory containing an `elasticsearch-ca.pem` file. You use this file to configure {{kib}} to trust the {{es}} CA for the HTTP layer. | ||
|
||
::::{note} | ||
If you obtained the {{es}} certificates using a different method, you must provide {{kib}} with the appropriate CA certificates to establish trust. This may include the root CA and one or more intermediate CAs, depending on how the certificates were issued. | ||
:::: | ||
|
||
1. Copy the `elasticsearch-ca.pem` file to the {{kib}} configuration directory, as defined by the `$KBN_PATH_CONF` path. | ||
2. Open `kibana.yml` and add the following line to specify the location of the security certificate for the HTTP layer. | ||
|
||
```yaml | ||
elasticsearch.ssl.certificateAuthorities: $KBN_PATH_CONF/elasticsearch-ca.pem | ||
``` | ||
3. Add the following line to specify the HTTPS URL for your {{es}} cluster. | ||
```yaml | ||
elasticsearch.hosts: https://<your_elasticsearch_host>:9200 | ||
``` | ||
4. Restart {{kib}}. | ||
:::::{admonition} Connect to a secure monitoring cluster | ||
If the Elastic monitoring features are enabled and you configured a separate {{es}} monitoring cluster, you can also configure {{kib}} to connect to the monitoring cluster through HTTPS. The steps are the same, but each setting is prefixed by `monitoring.ui`. For example, `monitoring.ui.elasticsearch.hosts` and `monitoring.ui.elasticsearch.ssl.certificateAuthorities`. | ||
|
||
::::{note} | ||
If the monitoring cluster uses certificates signed by a different CA than the main cluster, you must provide a separate `elasticsearch-ca.pem` file that corresponds to the monitoring cluster's CA. | ||
:::: | ||
|
||
::::: | ||
eedugon marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.