r/devops • DevOps Engineer & Educator • 27d ago

Discussion Securing local dev environments

With the recent high-stakes security exploits, I think as DevOps engineers it's our responsibility to make the local dev environment secure for devs.

What do you think?

What are you actively doing about it (like adopting devcontainers)

12 Upvotes

16 comments sorted by

View all comments

11

u/Geraldwelly 27d ago

We stopped treating local machines as trusted after one contractor laptop leaked a long-lived cloud key. Now every repo ships a locked-down devcontainer, secrets come from a password manager as short-lived tokens, and admin rights on laptops are the exception. The container baseline matters more than any one tool, because it keeps the same guardrails on every developer machine.

1

u/lavarius 26d ago

How are you wiring secrets in? I can't figure that out completely

1

u/Geraldwelly 26d ago

Short version: the password manager stays the source of truth, and nothing long-lived touches the disk. At container start we pull a short-lived cloud token through the manager's CLI so it only exists in that shell session and expires in a few hours. CI never gets a static key either — it federates with OIDC to the cloud. If someone has to paste a secret into a .env by hand, the design already failed.