Skip to content
Snippets Groups Projects
Commit c105e155 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4453 print secret data

parent e981da5d
Branches
Tags
No related merge requests found
...@@ -67,8 +67,10 @@ public class ElasticsearchClientConfiguration { ...@@ -67,8 +67,10 @@ public class ElasticsearchClientConfiguration {
String getPassword() { String getPassword() {
log.info(String.format("get password from secret: %s in namespace %s", elasticSearchProperties.getServer().getSecretName(), elasticSearchProperties.getServer().getNamespace())); log.info(String.format("get password from secret: %s in namespace %s", elasticSearchProperties.getServer().getSecretName(), elasticSearchProperties.getServer().getNamespace()));
var secret = getCredentialsSecret(); var secret = getCredentialsSecret();
log.info(String.format("secret data: %s", secret.getStringData())); log.info(String.format("secret string data: %s", secret.getStringData()));
printMap(secret.getStringData()); printMap(secret.getStringData());
log.info(String.format("secret data: %s", secret.getData()));
printMap(secret.getData());
var password = getPasswordFromSecret(secret); var password = getPasswordFromSecret(secret);
log.info(String.format("used password: %s", password)); log.info(String.format("used password: %s", password));
return password; return password;
...@@ -79,7 +81,7 @@ public class ElasticsearchClientConfiguration { ...@@ -79,7 +81,7 @@ public class ElasticsearchClientConfiguration {
var it = map.entrySet().iterator(); var it = map.entrySet().iterator();
while (it.hasNext()) { while (it.hasNext()) {
var pair = (Map.Entry)it.next(); var pair = (Map.Entry)it.next();
log.info(String.format("String data pair: key: %s, value: %s", pair.getKey(), pair.getValue())); log.info(String.format("data pair: key: %s, value: %s", pair.getKey(), pair.getValue()));
} }
} }
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment