How would you approach secrets and identity under constrained CPU and memory?
Answer
Start by treating configuration and infrastructure as versioned product behavior with observable dependencies. Focus on secrets and identity under constrained CPU and memory. 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
On a memory-constrained instance, an identity library that cached and periodically refreshed short-lived tokens for every downstream service ended up holding far more tokens in memory than needed, contributing to OOM kills. The approach was scoping token caching per actual dependency in use and adding a hard cap on cached credential memory footprint.