How do you audit who used which secret in pipelines?
IntermediateProductionSecrets and Credentials
Answer
Use a secret manager with audit logging (Vault audit devices, CloudTrail for Secrets Manager and STS AssumeRoleWithWebIdentity, which records the OIDC sub), correlate role-session names with the pipeline run (role-session-name: gha-${{ github.run_id }}), and ship the logs to a SIEM with alerts for access from unexpected repos, refs or times.
More on Secrets and Credentials
Why are long-lived credentials in CI a problem, and what is the modern alternative?BeginnerHow do you manage application secrets from build to runtime?IntermediateHow do you store secrets in Git safely for GitOps?IntermediateHow do you detect secrets committed to a repo?BeginnerWhat do you do after a secret is committed to Git?IntermediateHow do you use HashiCorp Vault with CI/CD?Advanced