Azure / secrets-store-csi-driver-provider-azure

Azure Key Vault provider for Secret Store CSI driver allows you to get secret contents stored in Azure Key Vault instance and use the Secret Store CSI driver interface to mount them into Kubernetes pods.
https://azure.github.io/secrets-store-csi-driver-provider-azure/
MIT License
432 stars 191 forks source link

Add a flag to configure the default cloud environment #1541

Closed aramase closed 1 month ago

aramase commented 3 months ago

The current logic uses AzurePublicCloud as default option when no cloud name is provided. https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/6dce6a9d51401ab8f11cf10f8b64d06c700eb481/pkg/provider/provider.go#L82-L86

Add a flag in the provider to configure default cloud to use if cloudName is not provided in SecretProviderClass. This will be useful in custom cloud envs for defining AzureStackCloud as default + setting AZURE_ENVIRONMENT_FILEPATH one-time at the provider level instead of every SecretProviderClass.