News for hackers. Stuff that matters.
Re:Everything useful I know about kubectl by birdyrooster on Monday July 05, 2021 @03:23PM (#27741093)
Create a User/Role for deleting (or whatever dangerous action) resources in prod cluster/namespace. Setup RBAC which allows your employees to impersonate as that user/role using kubectl --as. This way if you send your coworkers a command for dev environment and they try to run it in prod it will fail because they didn’t run kubectl as that impersonated user.
Re:Everything useful I know about kubectl by icythere on Tuesday July 06, 2021 @12:30AM (#27744230)
Totally agreed. This is the right way for many problems. Sometimes it's quite not possible to deploy the idea: In one of my past working spaces, everyone (even newbies) was provided with all _root_ privileges -- the idea was to help the team to learn from their mistakes (if any), and it's actually a great idea.