I’ve been scratching my head for a while now on how to use a secrets file in an Azure DevOps build pipeline.

By a secrets file I’m referring to a part of your code that contains sensitive information like database connection strings, passwords or API keys. Secrets like this should never be deployed with the app or committed to source control but you all knew that anyway, right?

But if it isn’t in the repository how can you deploy it or use it in a build? In my particular case, a Python project, the secrets were stored in a config…

Peter O'Connor

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store