-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: TLS support #55
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
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
d45f8fb
wip: add run-securityadmin job
labrenbe c489b44
configure tls on run-securityadmin
labrenbe ffa0585
add tls secret class to crd
labrenbe aaa560f
Merge remote-tracking branch 'origin/main' into feat/run-securityadmi…
labrenbe 4d7496c
add tls volume to sts
labrenbe 7f805b8
add tls config to opensearch.yml
labrenbe c6db525
disable security demo install
labrenbe 1c3e672
Merge remote-tracking branch 'origin/main' into feat/run-securityadmi…
labrenbe bbbdbb6
wip amend integration tests
labrenbe 1aeb4db
Merge remote-tracking branch 'origin/main' into feat/tls-support
labrenbe ab42f5a
fix smoke test
labrenbe 97681a3
restore properties file
labrenbe 815d243
mount tls volume in default directory of official image
labrenbe 95986a5
use tls feature in all integration tests
labrenbe 910a58d
use OPENSEARCH_PATH_CONF for tls config
labrenbe 9252b06
Merge remote-tracking branch 'origin/main' into feat/tls-support
labrenbe beb2aff
fix incorrectly resolved merge conflict
labrenbe 383e358
Merge remote-tracking branch 'origin/main' into feat/tls-support
labrenbe 25745d1
wip: adress feedback on pr
labrenbe bcb5542
Merge remote-tracking branch 'origin/main' into feat/tls-support
labrenbe 8257b95
address feedback on PR
labrenbe bd86ebc
Merge remote-tracking branch 'origin/main' into feat/tls-support
labrenbe 36120a8
add changelog entry
labrenbe 0294f91
rename CRD fields based on decision
labrenbe cb97dee
Merge remote-tracking branch 'origin/main' into feat/tls-support
labrenbe 7c6e1d9
Merge branch 'main' into feat/tls-support
siegfriedweber cfc730a
address feedback on PR
labrenbe d94777e
Merge remote-tracking branch 'origin/main' into feat/tls-support
labrenbe ce4e355
address more feedback on PR
labrenbe 4b007f1
remove duplicate SecretClassName length check
labrenbe 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
siegfriedweber marked this conversation as resolved.
Show resolved
Hide resolved
|
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,40 @@ | ||
| = Security | ||
| :description: Configure TLS encryption for OpenSearch with the Stackable Operator. | ||
|
|
||
| == TLS | ||
|
|
||
| The internal and client communication at the REST API can be encrypted with TLS. | ||
| This requires the xref:secret-operator:index.adoc[Secret Operator] to be running in the Kubernetes cluster providing certificates. | ||
| The used certificates can be changed in a cluster-wide config and are configured using xref:secret-operator:secretclass.adoc[SecretClasses]. | ||
| TLS encryption on the REST API may be disabled, while it is always enabled for the internal communication between nodes using the `transport` port. | ||
|
|
||
| [source,yaml] | ||
| ---- | ||
| --- | ||
| apiVersion: opensearch.stackable.tech/v1alpha1 | ||
| kind: OpenSearchCluster | ||
| metadata: | ||
| name: opensearch | ||
| spec: | ||
| image: | ||
| productVersion: 3.1.0 | ||
| clusterConfig: | ||
| tls: | ||
| serverSecretClass: tls # <1> | ||
| internalSecretClass: opensearch-internal-tls # <2> | ||
| nodes: | ||
| config: | ||
| requestedSecretLifetime: 7d # <3> | ||
| roleGroups: | ||
| default: | ||
| replicas: 3 | ||
| ---- | ||
| <1> The `spec.clusterConfig.tls.serverSecretClass` refers to the client-to-server encryption at the REST API. | ||
| Defaults to the `tls` SecretClass and can be disabled by setting `serverSecretClass` to `null`. | ||
| <2> The `spec.clusterConfig.tls.internalSecretClass` refers to the internal encryption between OpenSearch nodes using mTLS (transport). | ||
| Defaults to the `tls` SecretClass and can't be disabled. | ||
| <3> The lifetime for autoTls certificates generated by the secret operator. | ||
| Only a lifetime up to the `maxCertificateLifetime` setting in the SecretClass is applied. | ||
|
|
||
| Important: The operator sets the configuration `plugins.security.nodes_dn` to `["CN=generated certificate for pod"]` which provides weak authentication between nodes. | ||
| If you want to increase security and use certificates which identify the OpenSearch nodes specifically, you must also adapt the `plugins.security.nodes_dn` setting via configOverrides. |
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
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.