-
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 2 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
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
26 changes: 26 additions & 0 deletions
26
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,26 @@ | ||
When you ran the `elasticsearch-certutil` tool with the `http` option, 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. | ||
|
||
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`. For example, `monitoring.ui.elasticsearch.hosts` and `monitoring.ui.elasticsearch.ssl.truststore.path`. | ||
|
||
::::{note} | ||
You must create a separate `elasticsearch-ca.pem` security file for the monitoring cluster. | ||
:::: | ||
|
||
::::: | ||
|
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,52 @@ | ||
You create a server certificate and private key for {{kib}}. {{kib}} uses this server certificate and corresponding private key when receiving connections from web browsers. | ||
|
||
When you obtain a server certificate, you must set its subject alternative name (SAN) correctly to ensure that browsers will trust it. You can set one or more SANs to the {{kib}} server’s fully-qualified domain name (FQDN), hostname, or IP address. When choosing the SAN, pick whichever attribute you’ll use to connect to {{kib}} in your browser, which is likely the FQDN. | ||
|
||
The following instructions create a Certificate Signing Request (CSR) for {{kib}}. A CSR contains information that a CA uses to generate and sign a security certificate. The certificate can be trusted (signed by a public, trusted CA) or untrusted (signed by an internal CA). A self-signed or internally-signed certificate is acceptable for development environments and building a proof of concept, but should not be used in a production environment. | ||
|
||
::::{warning} | ||
Before going to production, use a trusted CA such as [Let’s Encrypt](https://letsencrypt.org/) or your organization’s internal CA to sign the certificate. Using a signed certificate establishes browser trust for connections to {{kib}} for internal access or on the public internet. | ||
:::: | ||
|
||
|
||
1. Generate a server certificate and private key for {{kib}}. | ||
|
||
```shell | ||
./bin/elasticsearch-certutil csr -name kibana-server -dns example.com,www.example.com | ||
``` | ||
|
||
The CSR has a common name (CN) of `kibana-server`, a SAN of `example.com`, and another SAN of `www.example.com`. | ||
|
||
This command generates a `csr-bundle.zip` file by default with the following contents: | ||
|
||
```txt | ||
/kibana-server | ||
|_ kibana-server.csr | ||
|_ kibana-server.key | ||
``` | ||
|
||
2. Unzip the `csr-bundle.zip` file to obtain the `kibana-server.csr` unsigned security certificate and the `kibana-server.key` unencrypted private key. | ||
3. Send the `kibana-server.csr` certificate signing request to your internal CA or trusted CA for signing to obtain a signed certificate. The signed file can be in different formats, such as a `.crt` file like `kibana-server.crt`. | ||
4. Open `kibana.yml` and add the following lines to configure {{kib}} to access the server certificate and unencrypted private key. | ||
|
||
```yaml | ||
server.ssl.certificate: $KBN_PATH_CONF/kibana-server.crt | ||
server.ssl.key: $KBN_PATH_CONF/kibana-server.key | ||
``` | ||
|
||
::::{note} | ||
`$KBN_PATH_CONF` contains the path for the {{kib}} configuration files. If you installed {{kib}} using archive distributions (`zip` or `tar.gz`), the path defaults to `$KBN_HOME/config`. If you used package distributions (Debian or RPM), the path defaults to `/etc/kibana`. | ||
:::: | ||
|
||
5. Add the following line to `kibana.yml` to enable TLS for inbound connections. | ||
|
||
```yaml | ||
server.ssl.enabled: true | ||
``` | ||
|
||
6. Start {{kib}}. | ||
|
||
::::{note} | ||
After making these changes, you must always access {{kib}} via HTTPS. For example, `https://<your_kibana_host>.com`. | ||
:::: | ||
|
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,15 @@ | ||
--- | ||
applies_to: | ||
deployment: | ||
eck: all | ||
navigation_title: ECK | ||
mapped_pages: | ||
- https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-security.html | ||
--- | ||
|
||
# Manage TLS certificates on ECK | ||
|
||
All {{stack}} resources deployed by the ECK operator are secured by default. The operator sets up basic authentication and TLS to encrypt network traffic to, from, and within your {{es}} cluster and {{kib}} instances. | ||
|
||
% TBD | ||
(Pending to write a quick intro about use cases and links) |
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
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.