© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. GirettiCoding Clean, Reliable, and Safe REST APIs with ASP.NET Core 8https://doi.org/10.1007/978-1-4842-9979-1_9

9. Managing Application Secrets

Anthony Giretti1  
(1)
La Salle, QC, Canada
 

Throughout this book, I've used sensitive data, a.k.a. secrets, for example, connection strings that may have been used to connect to a database, an APM, etc. The easiest way to make these secrets available is to save them in application configuration files named by environment (appsettings.json, appsettings.dev.json, appsettings.prod.json, a dedicated configuration file for each environment) and then push all these files into the GIT repository. GIT is a source code ...

Get Coding Clean, Reliable, and Safe REST APIs with ASP.NET Core 8: Develop Robust Minimal APIs with .NET 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.