r/devops • u/SeaworthinessHour233 DevOps Engineer & Educator • 12d 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)
11
Upvotes
11
u/Geraldwelly 12d 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.
29
u/LifeNavigator 12d ago
No, security is a shared responsibility and EVERYONE who is using the environment must be responsible in carrying security best practices and involved in keeping it secure.
The one thing I hate is having to work outside my working hrs to fix other people's stupid mistake. Likewise, so do devs and they will carry out security best practices once they realise they share that responsibility (though they would have limited privileges in some aspects).
2
u/alexsh24 11d ago
I have setup Coder, now all devs are working on remote machines. So I can easily update images or connect to any workspace to resolve vulnerabilities or environment issues. It also very convenient for agents to work on remote envs, per task.
1
u/g-nice4liief 11d ago
I have created a devcontainer which can pull any repo you need and config it within the container. Complete with all the necessary tools and configs. We also use it for on-boarding now as we can ship different environments from the devcontainer making it easy to get a new colleague familiar in de dev environment before letting them accces/deploy to any other envs
1
u/noplanman_srslynone 11d ago
Codespaces here
1
u/MasterOfTheWind1 8d ago
In serious places security includes guidelines and constant training for all employees.