@@ -203,14 +203,6 @@ object KafkaConfig {
203203 val DelegationTokenExpiryTimeMsProp = " delegation.token.expiry.time.ms"
204204 val DelegationTokenExpiryCheckIntervalMsProp = " delegation.token.expiry.check.interval.ms"
205205
206- /** ********* Password encryption configuration for dynamic configs *********/
207- val PasswordEncoderSecretProp = PasswordEncoderConfigs .SECRET
208- val PasswordEncoderOldSecretProp = PasswordEncoderConfigs .OLD_SECRET
209- val PasswordEncoderKeyFactoryAlgorithmProp = PasswordEncoderConfigs .KEYFACTORY_ALGORITHM
210- val PasswordEncoderCipherAlgorithmProp = PasswordEncoderConfigs .CIPHER_ALGORITHM
211- val PasswordEncoderKeyLengthProp = PasswordEncoderConfigs .KEY_LENGTH
212- val PasswordEncoderIterationsProp = PasswordEncoderConfigs .ITERATIONS
213-
214206 /** Internal Configurations **/
215207 val UnstableApiVersionsEnableProp = " unstable.api.versions.enable"
216208 val UnstableMetadataVersionsEnableProp = " unstable.metadata.versions.enable"
@@ -419,17 +411,6 @@ object KafkaConfig {
419411 val DelegationTokenExpiryTimeMsDoc = " The token validity time in milliseconds before the token needs to be renewed. Default value 1 day."
420412 val DelegationTokenExpiryCheckIntervalDoc = " Scan interval to remove expired delegation tokens."
421413
422- /** ********* Password encryption configuration for dynamic configs *********/
423- val PasswordEncoderSecretDoc = " The secret used for encoding dynamically configured passwords for this broker."
424- val PasswordEncoderOldSecretDoc = " The old secret that was used for encoding dynamically configured passwords. " +
425- " This is required only when the secret is updated. If specified, all dynamically encoded passwords are " +
426- s " decoded using this old secret and re-encoded using $PasswordEncoderSecretProp when broker starts up. "
427- val PasswordEncoderKeyFactoryAlgorithmDoc = " The SecretKeyFactory algorithm used for encoding dynamically configured passwords. " +
428- " Default is PBKDF2WithHmacSHA512 if available and PBKDF2WithHmacSHA1 otherwise."
429- val PasswordEncoderCipherAlgorithmDoc = " The Cipher algorithm used for encoding dynamically configured passwords."
430- val PasswordEncoderKeyLengthDoc = " The key length used for encoding dynamically configured passwords."
431- val PasswordEncoderIterationsDoc = " The iteration count used for encoding dynamically configured passwords."
432-
433414 @ nowarn(" cat=deprecation" )
434415 val configDef = {
435416 import ConfigDef .Importance ._
@@ -765,12 +746,12 @@ object KafkaConfig {
765746 .define(DelegationTokenExpiryCheckIntervalMsProp , LONG , Defaults .DELEGATION_TOKEN_EXPIRY_CHECK_INTERVAL_MS , atLeast(1 ), LOW , DelegationTokenExpiryCheckIntervalDoc )
766747
767748 /** ********* Password encryption configuration for dynamic configs *********/
768- .define(PasswordEncoderSecretProp , PASSWORD , null , MEDIUM , PasswordEncoderSecretDoc )
769- .define(PasswordEncoderOldSecretProp , PASSWORD , null , MEDIUM , PasswordEncoderOldSecretDoc )
770- .define(PasswordEncoderKeyFactoryAlgorithmProp , STRING , null , LOW , PasswordEncoderKeyFactoryAlgorithmDoc )
771- .define(PasswordEncoderCipherAlgorithmProp , STRING , Defaults . PASSWORD_ENCODER_CIPHER_ALGORITHM , LOW , PasswordEncoderCipherAlgorithmDoc )
772- .define(PasswordEncoderKeyLengthProp , INT , Defaults . PASSWORD_ENCODER_KEY_LENGTH , atLeast(8 ), LOW , PasswordEncoderKeyLengthDoc )
773- .define(PasswordEncoderIterationsProp , INT , Defaults . PASSWORD_ENCODER_ITERATIONS , atLeast(1024 ), LOW , PasswordEncoderIterationsDoc )
749+ .define(PasswordEncoderConfigs . PASSWORD_ENCODER_SECRET_CONFIG , PASSWORD , null , MEDIUM , PasswordEncoderConfigs . PASSWORD_ENCODER_SECRET_DOC )
750+ .define(PasswordEncoderConfigs . PASSWORD_ENCODER_OLD_SECRET_CONFIG , PASSWORD , null , MEDIUM , PasswordEncoderConfigs . PASSWORD_ENCODER_OLD_SECRET_DOC )
751+ .define(PasswordEncoderConfigs . PASSWORD_ENCODER_KEYFACTORY_ALGORITHM_CONFIG , STRING , null , LOW , PasswordEncoderConfigs . PASSWORD_ENCODER_KEYFACTORY_ALGORITHM_DOC )
752+ .define(PasswordEncoderConfigs . PASSWORD_ENCODER_CIPHER_ALGORITHM_CONFIG , STRING , PasswordEncoderConfigs . PASSWORD_ENCODER_CIPHER_ALGORITHM_DEFAULT , LOW , PasswordEncoderConfigs . PASSWORD_ENCODER_CIPHER_ALGORITHM_DOC )
753+ .define(PasswordEncoderConfigs . PASSWORD_ENCODER_KEY_LENGTH_CONFIG , INT , PasswordEncoderConfigs . PASSWORD_ENCODER_KEY_LENGTH_DEFAULT , atLeast(8 ), LOW , PasswordEncoderConfigs . PASSWORD_ENCODER_KEY_LENGTH_DOC )
754+ .define(PasswordEncoderConfigs . PASSWORD_ENCODER_ITERATIONS_CONFIG , INT , PasswordEncoderConfigs . PASSWORD_ENCODER_ITERATIONS_DEFAULT , atLeast(1024 ), LOW , PasswordEncoderConfigs . PASSWORD_ENCODER_ITERATIONS_DOC )
774755
775756 /** ********* Raft Quorum Configuration *********/
776757 .define(RaftConfig .QUORUM_VOTERS_CONFIG , LIST , Defaults .QUORUM_VOTERS , new RaftConfig .ControllerQuorumVotersValidator (), HIGH , RaftConfig .QUORUM_VOTERS_DOC )
@@ -1349,12 +1330,12 @@ class KafkaConfig private(doLog: Boolean, val props: java.util.Map[_, _], dynami
13491330 val delegationTokenExpiryCheckIntervalMs = getLong(KafkaConfig .DelegationTokenExpiryCheckIntervalMsProp )
13501331
13511332 /** ********* Password encryption configuration for dynamic configs *********/
1352- def passwordEncoderSecret = Option (getPassword(KafkaConfig . PasswordEncoderSecretProp ))
1353- def passwordEncoderOldSecret = Option (getPassword(KafkaConfig . PasswordEncoderOldSecretProp ))
1354- def passwordEncoderCipherAlgorithm = getString(KafkaConfig . PasswordEncoderCipherAlgorithmProp )
1355- def passwordEncoderKeyFactoryAlgorithm = getString(KafkaConfig . PasswordEncoderKeyFactoryAlgorithmProp )
1356- def passwordEncoderKeyLength = getInt(KafkaConfig . PasswordEncoderKeyLengthProp )
1357- def passwordEncoderIterations = getInt(KafkaConfig . PasswordEncoderIterationsProp )
1333+ def passwordEncoderSecret = Option (getPassword(PasswordEncoderConfigs . PASSWORD_ENCODER_SECRET_CONFIG ))
1334+ def passwordEncoderOldSecret = Option (getPassword(PasswordEncoderConfigs . PASSWORD_ENCODER_OLD_SECRET_CONFIG ))
1335+ def passwordEncoderCipherAlgorithm = getString(PasswordEncoderConfigs . PASSWORD_ENCODER_CIPHER_ALGORITHM_CONFIG )
1336+ def passwordEncoderKeyFactoryAlgorithm = getString(PasswordEncoderConfigs . PASSWORD_ENCODER_KEYFACTORY_ALGORITHM_CONFIG )
1337+ def passwordEncoderKeyLength = getInt(PasswordEncoderConfigs . PASSWORD_ENCODER_KEY_LENGTH_CONFIG )
1338+ def passwordEncoderIterations = getInt(PasswordEncoderConfigs . PASSWORD_ENCODER_ITERATIONS_CONFIG )
13581339
13591340 /** ********* Quota Configuration **************/
13601341 val numQuotaSamples = getInt(KafkaConfig .NumQuotaSamplesProp )
0 commit comments