smiklosovic commented on code in PR #4340:
URL: https://github.com/apache/cassandra/pull/4340#discussion_r2301181105
##########
test/unit/org/apache/cassandra/db/virtual/SettingsTableTest.java:
##########
@@ -299,4 +316,36 @@ public void testTransparentEncryptionOptionsOverride()
throws Throwable
config.transparent_data_encryption_options.iv_length = 7;
check(pre + "iv_length", "7");
}
+
+ @Test
+ public void testCredentialsAreRedacted() throws Throwable
+ {
+
assertValue("transparent_data_encryption_options.key_provider.parameters",
+ String.format("{keystore_password=%s,
keystore=conf/.keystore, key_password=%s}",
+ Credential.REDACTED_STRING,
+ Credential.REDACTED_STRING));
+
+ Set<Map.Entry<String, Property>> entries = new
DefaultLoader().flatten(Config.class)
Review Comment:
I want to test that from now on whatever we put `@Credential` on will be
redacted.
--
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]