title: How to deploy ASP.NET Core UserSecrets to production
body: <p>I followed the <a href="https://docs.asp.net/en/latest/security/app-secrets.html" rel="noreferrer">Safe storage of app secrets during development</a> guide over on the asp.net docs during development but it does not describe how to use it when publishing to another machine for QA, Production, etc.  What I figured it would do was insert them into the appsettings.json during publish but it does not.  I ended up having to place my SendGrid keys and other sensitive information directly into the appsettings.json which really defeats the purpose of the app secrets.</p>
  <p>Is using app secrets the best way or is there another way to store API keys and SQL user/passwords in my configs?</p>