2

I have an application ASP.NET MVC 5 (.NET 4.6.2) developed using Visual Studio and I'm using Webhook from Github to deploy my aplication on Azure. I've already create the connection string on Azure so I need to push the App on GitHub without connection string (and of course not to publish my password). There are somehow to remove the connection string automatically when I push the App on GitHub?

2

1 Answer 1

1

Instead of adding it in code, or in an application.config folder, it should be stored either in User Secrets, an Environment Variable (which stores it in plaintext so beware), or something like Azure Key Vault

See https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-2.1&tabs=windows for options for storing secrets during development.

Sign up to request clarification or add additional context in comments.

1 Comment

Fixed typo. Thanks @PeterB

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.