rule #1: never give developers production secrets. That way they wont be able to misuse them or push them to the repo. From my experience devs only care whether their software works, security is often an afterthought.
rule #2: its not only secrets management, the whole stack should go through security hardening and regular security review.