Skip to content

Use AES by default for HDFS wire encryption #680

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

Open
Jimvin opened this issue May 14, 2025 · 0 comments · May be fixed by #693
Open

Use AES by default for HDFS wire encryption #680

Jimvin opened this issue May 14, 2025 · 0 comments · May be fixed by #693
Assignees

Comments

@Jimvin
Copy link
Member

Jimvin commented May 14, 2025

When Kerberos is enabled the operator automatically enables wire encryption by setting dfs.data.transfer.protection to "privacy" and dfs.encrypt.data.transfer to "true". By default the 3DES algorithm is used, but the faster and more secure AES algorithm is available. There is a marked performance improvement when AES is enabled compared to 3DES.

AES encryption can be enabled by adding the following property to hdfs-site.xml:

  • dfs.encrypt.data.transfer.cipher.suite: "AES/CTR/NoPadding"

The key length can be defined using the property dfs.encrypt.data.transfer.cipher.key.bitlength to 128, 192 or 256, with 128 bit being the default.

https://hadoop.apache.org/docs/r3.3.6/hadoop-project-dist/hadoop-common/SecureMode.html#Data_Encryption_on_Block_data_transfer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Status: Development: In Progress
Development

Successfully merging a pull request may close this issue.

2 participants