Interview Prep/CI/CD/Secrets and Credentials

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.

All CI/CD questions

More on Secrets and Credentials