QuestionQ48

VerifiedSecure, monitor, troubleshoot Azure solutions

You plan to deploy a container to an Azure App Service API app named api1. The source code for api1 is hosted in a GitHub repository. The container uses the API key at runtime to connect to a backend service.

The container must be able to retrieve the API key at runtime without exposing it in the source repository or Git commit history.

You need to ensure that the API key remains outside of Git commit history and is available to the container at runtime.

Solution: Save the API key as a GitHub repository secret.

Does this solution meet the goal?

Explanation

GitHub repository secrets are intended for use by GitHub Actions workflows and are not injected into an Azure App Service container at runtime. A runtime-accessible secret store or App Service configuration mechanism is required.

Community Discussion

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