You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_logger.LogDebug($"Attempting to lookup secret {passwordSecretName} in namespace {passwordSecretNamespace}");
1135
+
_logger.LogDebug("Attempting to lookup secret {PasswordSecretName} in namespace {PasswordSecretNamespace}",passwordSecretName,passwordSecretNamespace);
// Logger.LogTrace("Password hash for '{Secret}/{Key}': {Hash}", KubeSecretName, keyName, passwordHash);
331
+
Logger.LogTrace("Password hash for '{Secret}/{Key}': {Hash}",KubeSecretName,keyName,passwordHash);//TODO: Remove this line, it is for debugging purposes only
332
+
Logger.LogTrace("Password for '{Secret}/{Key}': {Hash}",KubeSecretName,keyName,keyPassword);//TODO: Remove this line, it is for debugging purposes only
327
333
varkeyAlias=keyName;
328
334
Logger.LogTrace("Key alias: {Alias}",keyAlias);
329
335
Logger.LogDebug("Attempting to deserialize JKS store '{Secret}/{Key}'",KubeSecretName,keyName);
@@ -953,7 +959,19 @@ private Dictionary<string, List<string>> HandlePkcs12Secret(JobConfiguration con
953
959
// iterate through the keys in the secret and add them to the pkcs12 store
954
960
foreach(var(keyName,keyBytes)ink8sData.Inventory)
955
961
{
962
+
Logger.LogTrace("Key name: {KeyName}",keyName);
963
+
if(keyBytes==null||keyBytes.Length==0)
964
+
{
965
+
Logger.LogWarning("Key '{KeyName}' in secret {Secret} is empty or null, skipping",keyName,KubeSecretName);
966
+
continue;
967
+
}
968
+
Logger.LogDebug("Attempting to get password for key '{Key}' in k8s namespace {Namespace} in secret '{Secret}'",keyName,KubeNamespace,KubeSecretName);
Logger.LogTrace("Password for '{Secret}/{Key}': {Hash}",KubeSecretName,keyName,keyPassword);//TODO: Remove this line, it is for debugging purposes only
971
+
varkeyAlias=keyName;
972
+
Logger.LogTrace("Key alias: {Alias}",keyAlias);
973
+
Logger.LogDebug("Attempting to deserialize PKCS12 store '{Secret}/{Key}'",KubeSecretName,keyName);
0 commit comments