Quick Notes165 words

Preventing leakage of sensitive information — quick notes

Preventing leakage — quick notes

FactDetail
Log maskingTransformed or encoded values are not masked automatically; register the derived value before output, and prior occurrences remain exposed
Secret variables in scriptsMust be explicitly mapped via env:
Command-line argumentsAvoid — they can appear in process listings and logs
Public GitHub fork validationsSecrets and protected resources are not exposed by default
Nonsecret variable-group valuesMasking is not guaranteed; access is not limited by approvals, checks, or pipeline permissions
Git historyRevoke or rotate first; removing the current file does not remove the secret from history, clones, or forks

Strongest control: remove the stored credential. WIF exchanges a trusted external token for an access token; managed identities let suitable Azure-hosted workloads obtain tokens without developer-managed credentials.

Primary sources: https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops · https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops · https://learn.microsoft.com/en-us/azure/devops/pipelines/library/variable-groups · https://learn.microsoft.com/en-us/azure/devops/pipelines/security/overview?view=azure-devops · https://learn.microsoft.com/en-us/entra/workload-id/workload-identity-federation · https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview · https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free