luwei16 opened a new pull request, #71126: URL: https://github.com/apache/doris/pull/71126
### What problem does this PR solve? Issue Number: None Related PR: #66948 Problem Summary: Backport #66948 to branch-4.1. FE needs a persistent reference to a file-based TDE root key. Store the file path and SHA-256 digest with the key metadata, and keep the Base64 key in memory. Add the FE configuration field and both rotation property names used by the upstream change. ### Details The release branch recognizes `aws_kms` and `local`. Its configuration descriptions list those two values in English and Chinese. The optional fields preserve readability of existing key records. The file path defaults to an empty string. File loading, SQL privileges and the rotation implementation retain their current behavior. Digest calculation is confined to an explicit call on the key. Older readers can read new records and discard the extra fields if they rewrite them. ### Release note None ### Testing - `./run-fe-ut.sh --run org.apache.doris.encryption.RootKeyInfoTest` passed all four local-key tests. They cover metadata copying, digest verification, JSON and key-store serialization, and exclusion of the Base64 key. - `mvn -pl fe-common,fe-core checkstyle:check` passed for both FE modules. - The candidate read a key store written with the baseline metadata class. The baseline reader also read a key store written with the candidate class. The stored digest matched an independent SHA-256 test vector. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
