An auditor asks: "Show me who changed production last Tuesday and who approved it." Can you answer? How should it work?
BeginnerScenarioSecurity incidents
Answer
Situation read → If every change goes through Git and a pipeline, this is a five-minute query. If people click in the console, it's guesswork.
What I'd do →
- App and config changes: the Git history of the GitOps repo shows the commit, the PR, the reviewer, and the pipeline run that deployed it.
- Infra changes: Terraform applied only from CI, with the plan attached to the PR and an approval in a protected environment.
- Anything else: CloudTrail (organisation trail to a locked S3 bucket in a log archive account) and the Kubernetes audit log.
gh pr list --repo acme/gitops --state merged --search "merged:2026-11-03" \
--json number,title,author,mergedBy,reviews
- Close the gaps: branch protection with required reviews, no direct prod access except break-glass, and alerts on console changes in prod.
Why → Auditors want a provable chain: request → review → approval → deploy → log.
Interview tip → Say "Git is our change log"; it connects GitOps to compliance, which interviewers like.
More on Security incidents
An AWS access key for a production IAM user was pushed to a public GitHub repo 20 minutes ago. What do you do in the first 30 minutes?AdvancedYou find pods in your cluster running a crypto miner. What do you do?AdvancedA critical CVE is announced in a library you use. You have 200 images across 40 repos. How do you find and patch everything fast?IntermediateGuardDuty reports an EC2 instance talking to a known command-and-control IP. What do you do?AdvancedYou discover an S3 bucket with customer data has been public for three months. What now?IntermediateAn engineer left the company three weeks ago and you find their access key was used yesterday. How do you respond and fix the process?Beginner