© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•8mo ago•
37 replies
SALADLORD

✅ How do you guys handle user secrets for GitHub, Docker, or in prod?

So lets say I create a ASP.NET Core web API with database seeder that creates default accounts, admin account in the database. Of course I will not hard code the values and instead I initialize user secrets and put all the username and passwords in the secrets JSON file.

I just want to know from experienced devs how you guys handle sensitive data like this because I'm reading some devs push their sensitive data into the repo which lets just say they shouldn't do that. I'm just a beginner and wanna know if what im doing is right.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Aspire user secrets not available in prod environment
C#CC# / help
12mo ago
❔ ✅ how do you handle user configurations in wpf with mvvm pattern?
C#CC# / help
3y ago
✅ How do you handle countdowns of objects?
C#CC# / help
2y ago
❔ How do i handle user settings in wpf .net core
C#CC# / help
3y ago