© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago•
40 replies
Antlin23

ASP.NET Core, prevent environment variables being exposed in launchsettings.json

I made my github repository public and immediately got an email from SendGrid saying my api key has been disabled cuz It was detected somewhere public. How do I tackle this, cuz all envarionment variables are in launchsettings? New to envirnoment variables. Prevent laucnhsetting.json from being pushed to GitHub?
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

❔ ASP.NET Core Environment Variables in Dependency Injection
C#CC# / help
3y ago
❔ Access AppSettings.json in asp.net core
C#CC# / help
3y ago
✅ launchSettings.json being ignored completely
C#CC# / help
3y ago
✅ ASP.NET Core Environment Variables: missing Parameter "clientSecret" for EntraId
C#CC# / help
2y ago