QuestionQ51

VerifiedSecure, monitor, troubleshoot Azure solutions

You are preparing a production deployment for an Azure Function app. The app will run in multiple environments.

The solution must support environment-specific configuration and prevent secrets from being stored in source control.

You need to develop the solution.

Solution: Save production secrets in environment variables defined by the Dockerfile.

Does this solution meet the goal?

Explanation

Dockerfile-defined environment variables bake secret values into the container image or its build metadata, so they are not a secure mechanism for keeping secrets out of source control or for supplying distinct values per environment. Azure Functions supports configuration through application settings, which are exposed to the app as environment variables; secrets should be supplied through environment-specific app settings or a managed secret store at deployment/runtime.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!