What would you automate for secrets and identity during a rolling deployment, and what would you leave manual?
Answer
Before automating, begin by treating configuration and infrastructure as versioned product behavior with observable dependencies. Focus on secrets and identity during a rolling deployment. Use declared configuration, health signals and known-good environment baselines as the oracle. Cover startup, connectivity, permissions, capacity, rollout and rollback. Keep data and dependencies controlled enough to reproduce failures. Release only when the environment is reproducible and failure behavior is diagnosable before user impact.
Strong answer includes
- explicit risk and test oracle for secrets and identity
- checks configuration as code
- covers rollout and rollback
- measurable evidence and residual-risk statement
Practical example
The team automated a check that a rolling deployment never proceeds past the first batch if any new pod fails to fetch its expected secret, treating that as an automatic rollback trigger. Deciding to rotate the underlying secret itself mid-deployment, though, was kept as a manual, deliberately scheduled action outside of any deployment window.