Develop and test in isolated VMs or containers never use production credentials or store secrets in source code. Keep dev machines network-segmented, use short-lived credentials or a secrets manager for API keys, and snapshot/configure images so compromised dev hosts can be rebuilt quickly.
PDF Download: Use Isolated Development Environments
References