You are asked to design the GitOps setup for a regulated bank. What extra controls do you add?
AdvancedScenarioAdopting GitOps & Repo Design
Answer
Situation read → Segregation of duties, change approval and evidence matter as much as automation.
What I'd do →
- Separate Argo CD instances or at least projects for prod, with SSO and no local users.
- Prod sync policy manual, or automated only inside approved sync windows; CODEOWNERS approvals from a different team than the author.
- Signed commits enforced with
signatureKeys; branch protection with required reviews and status checks. - Secrets via External Secrets from an HSM-backed manager; no secret material in Git at all.
- Notifications and commit statuses as deployment evidence; export Argo CD audit events to the SIEM.
- Policy checks (Kyverno or Gatekeeper, plus conftest in CI) to block non-compliant manifests before merge.
Why → Regulators care about who approved, what changed, and proof it was what ran.
Interview tip → Mention change-ticket IDs in commit messages or PR titles, linked via notifications.
More on Adopting GitOps & Repo Design
Your team deploys with Jenkins running `kubectl apply` and wants to move to Argo CD without downtime. How do you migrate?IntermediateA startup with three services asks whether they need a separate config repo. What do you recommend?BeginnerA team wants a Git branch per environment (`dev`, `staging`, `prod`). How do you respond?IntermediateDevelopers keep running `kubectl edit` in production to "quickly fix" things. How do you stop it without blocking incident response?IntermediateYou must deploy one microservice to 4 environments with Helm. Which values structure do you choose?BeginnerYour config repo has 400 Applications in one monorepo and every commit triggers a refresh of everything. What do you change?Advanced