TractusX Helm Chart: setting either the vault.azure.clientsecret
_or_ vault.azure.certificate
does not work
#168
Labels
bug
Something isn't working
Describe the bug
Setting the
vault.azure.clientsecret
value to authenticate against an Azure KevVault does not work, because it always gets overwritten byvault.azure.certificate
.The reason is that the respective environment variables (
EDC_VAULT_CERTIFICATE
andEDC_VAULT_CLIENTSECRET
) are always set, even whenvault.azure.certificate
is not configured, and they have a default value of""
(empty string).Then, the
AzureVaultExtension
checks if the certificate path isnull
, which it isn't (because it's""
), and tries to interpret the empty string as certificate path, which obviously fails.Possible Implementation
setting the environment variables only if the respective
Value
s exist:The text was updated successfully, but these errors were encountered: