Dapr: Reading local secrets with .NET 5

added by DotNetKicks
11/18/2020 5:37:56 PM

471 Views

Now that Dapr is about to hit version 1.0.0 let me show you how easy is to read secrets with a .NET 5 console application. dotnet new console -n DaprSecretSample cd DaprSecretSample dotnet add package Dapr.Client --prerelease Create a components folder and inside place a file named secretstore.yaml with the following contents: This component will enable Dapr, and therefore your application, to read secrets from a secrets.json file.


0 comments