Skip to content

Add cipher suite (AES/CTR/NoPadding) per default #693

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 5 commits into from
Jun 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
- Use `--file-log-max-files` (or `FILE_LOG_MAX_FILES`) to limit the number of log files kept.
- Use `--file-log-rotation-period` (or `FILE_LOG_ROTATION_PERIOD`) to configure the frequency of rotation.
- Use `--console-log-format` (or `CONSOLE_LOG_FORMAT`) to set the format to `plain` (default) or `json`.
- The operator now defaults to `AES/CTR/NoPadding` for `dfs.encrypt.data.transfer.cipher.suite` to improve security and performance ([#693]).

### Changed

Expand Down Expand Up @@ -46,6 +47,7 @@ All notable changes to this project will be documented in this file.
[#677]: https://github.com/stackabletech/hdfs-operator/pull/677
[#683]: https://github.com/stackabletech/hdfs-operator/pull/683
[#684]: https://github.com/stackabletech/hdfs-operator/pull/684
[#693]: https://github.com/stackabletech/hdfs-operator/pull/693

## [25.3.0] - 2025-03-21

Expand Down
1 change: 1 addition & 0 deletions docs/modules/hdfs/pages/usage-guide/security.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ The `kerberos.secretClass` is used to give HDFS the possibility to request keyta

The `tlsSecretClass` is needed to request TLS certificates, used e.g. for the Web UIs.

NOTE: The hdfs-operator defaults to `AES/CTR/NoPadding` for `dfs.encrypt.data.transfer.cipher.suite`. This can be changed using config overrides.

=== 4. Verify that Kerberos authentication is required
Use `stackablectl stacklet list` to get the endpoints where the HDFS namenodes are reachable.
Expand Down
4 changes: 4 additions & 0 deletions rust/operator-binary/src/security/kerberos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ impl HdfsSiteConfigBuilder {
fn add_wire_encryption_settings(&mut self) -> &mut Self {
self.add("dfs.data.transfer.protection", "privacy");
self.add("dfs.encrypt.data.transfer", "true");
self.add(
"dfs.encrypt.data.transfer.cipher.suite",
"AES/CTR/NoPadding",
);
self
}
}
Expand Down