Hi,
Currently, all our key vault secrets are accessible and linked to as Environment Variables. Power Automate flows are able to retrieve these environment variable secrets easily using the RetrieveEnvironmentVariableSecretValue action.
Now what I am aiming for is to retrieve the Environment Variable secrets in Plugins. Unfortunately, RetrieveEnvironmentVariableSecretValue cannot be called directly thru code and only available for Flow use (see link). I thought of the following work around:
1. Create an http request triggered flow, use the RetrieveEnvironmentVariableSecretValue action to retrieve the secret and return the secret value as response. Plugin will call the flow via http request.
- This can work. The only problem is that the flow has to be configured for public use because if this flow is to be configured as accessible only by 'anyone within tenant' or a 'specific user', calling this flow will still require a secret and it will still be the same problem.
2. Retrieve the secret directly from azure key vault. - This approach will still require a secret.
Are there any other possible ways I can retrieve key vault secrets in Dataverse plugin?