Santosh Hari shows us how to use application secrets when building .NET Core applications:
I was writing a sample dotnetcore console application for a talk because why I felt using a sample aspnet core web app was overkill. The app was connecting to a bunch of Azure cloud and 3rd party services (think Twilio API for SMS or LaunchDarkly API for Feature Flags) and I had to deal with connection strings.
Now I have a nasty habit of “accidentally” checking in connection string and secrets into public GitHub repositories, so I wanted to do this right from the get go.
That’s a bad habit to be in, and Santosh shows us how we can avoid doing that via use of application secrets.