A GitHub Actions secret appears in plain text in the job log even though secrets are supposed to be masked
BeginnerTroubleshootingSecrets management: Vault, External Secrets and SOPS
Answer
Likely causes → Masking only matches the exact stored string. A value that was base64-encoded, URL-encoded, split into lines (a multi-line JSON key) or derived from the secret is not masked.
Diagnose → Search the log for the transformed form, and check for steps that do echo $SECRET | base64, cat key.json or set -x.
Fix → Delete the log run (Actions UI, or gh run delete <id>) and rotate the secret. Mask derived values before using them:
TOKEN=$(echo "$RAW" | base64 -d)
echo "::add-mask::$TOKEN"
Prevent → Never print secrets, avoid set -x in steps that handle them, and store structured credentials as a single-line value.
More on Secrets management: Vault, External Secrets and SOPS
`vault kv get secret/app/db` returns `Code: 403. Errors: * permission denied` although the policy allows `secret/app/*`BeginnerVault pod restarted and `vault status` shows `Sealed: true`; every app now fails to fetch secretsBeginnerPod stuck in `Init:0/1`; the `vault-agent-init` container logs `error authenticating: ... Code: 403 ... * permission denied`IntermediateAfter a cluster upgrade, Vault Kubernetes auth fails for every pod with `error validating token: invalid issuer (iss) claim`AdvancedPods annotated with `vault.hashicorp.com/agent-inject: true` start without a Vault sidecar, and the app fails on a missing fileBeginnerExternalSecret shows `SecretSyncedError` with `AccessDeniedException: ... is not authorized to perform: secretsmanager:GetSecretValue`Intermediate