I have an Azure function with a few secrets in its local.settings.json file.
What are the best practices when I want to share the source code of my function in GitHub?
So far I can think of the following options, but each option has some issues or challenges:
1- Remember to change the secrets in local.settings.json anytime I commit my changes. Once the commit is done, undo changes, so I can run the function and debug it. This option is very error-prone and tedious.
2- Add local.settings.json to the .gitignore file. With this approach, people who get the code from GitHub need to remember to restore the local.settings.json
3- Store the secrets in Azure Key Vault. But this is too much for such little function that I am creating.
I wanted to ask here what are the best practices how to handle the secrets in local.settings.json in a source control repository.
