Skip to content

Best way to securely store database connection string for Database Connection of Static Web App #1323

Discussion options

You must be logged in to vote

Hi @jacksorjacksor, when you link your database to your Static Web Apps resource with the database connections feature, you specify your secrets to connect to the database. Only your configuration file, not your secrets, need to be stored in your repository. When we make the connection to your database, we use the configuration file provided in your repository and override it with the secrets collected from the Azure Portal/ARM when you create the database connection.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thomasgauvin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants