News for hackers. Stuff that matters.
Re:Unprivileged Docker Builds – A Proof of Concept by freedomben on Sunday April 29, 2018 @05:50PM (#16954103)
This is interesting, but I'm not sure if I'd stay at a company that refused me root access to my own machine. A culture where such a lack of trust exists is not one that sounds attractive to me.
Re:Unprivileged Docker Builds – A Proof of Concept by danenania on Sunday April 29, 2018 @06:40PM (#16954314)
This is something I've had to consider a lot in the design of EnvKey[1] (a config/secrets manager). I agree that refusing root access on your own machine seems like it's going too far in most cases, but where's the line?

For example, EnvKey makes it easy to only give a developer access to development/staging config so that if someone only needs to deal with code and not servers, they'll never see production-level config.

Could that get in the way sometimes? Sure. If for whatever reason someone who's normally a pure dev needs to step into ops for a bit, they'll have to ask for upgraded permissions to do so, which could certainly be seen as annoying, and could make someone feel less trusted than he or she would like to be. On the other hand, giving production secrets to every dev undeniably increases the surface area for all kinds of attacks, and I think that even small startups would be well-served by moving on from this as soon as they can.

I think the key distinction to make is between real security and security theater. As a developer, I'm willing to give up a little trust and a little efficiency if the argument for why I'm doing it seems valid, but if I'm being asked to jump through extra hoops without any clear benefit attached, I'll probably resent it. So for me, the most relevant question to ask the OP (or a company that wants to implement this) is what's the threat model? What exact attack scenarios is this protecting against? Are those realistic enough to justify the extra hoops?

1 - https://www.envkey.com

Re:Unprivileged Docker Builds – A Proof of Concept by cyphar on Monday April 30, 2018 @05:17AM (#16957021)
Rootless containers are quite useful for things like accessing computing clusters which are shared and thus nobody gets root access on them (such as in universities). Rootless building is quite useful for other reasons (mainly because it allows you to build without ever hitting a privileged codepath which is arguably a huge security improvement), but to be honest it's more of a cool feature you can implement once you have the far more useful tools implemented (such as rootless storage management and rootless containers).
Re:Unprivileged Docker Builds – A Proof of Concept by jcims on Sunday April 29, 2018 @05:54PM (#16954121)
Fair enough, but there are cases where allowing that while also meeting the web of regulatory requirements that beset some industries is difficult if not practically impossible.
Re:Unprivileged Docker Builds – A Proof of Concept by user5994461 on Sunday April 29, 2018 @05:58PM (#16954137)
In layman terms, expect banks, defense, government and healthcare to have a dedicated operation team with root access. Developers do not have it.
Re:Unprivileged Docker Builds – A Proof of Concept by crypt1d on Sunday April 29, 2018 @06:02PM (#16954156)
I've seen that in a couple of IT outsourcing companies, too. Its hilarious because it complicates working with these companies so much that sometimes u just might reconsider hiring the company and do the work yourself. I dont think they realize how much they are shooting themselves in the foot with dumb restrictions like that.
Re:Unprivileged Docker Builds – A Proof of Concept by vbezhenar on Sunday April 29, 2018 @06:02PM (#16954151)
Can you run VirtualBox and use it as your working machine instead?
Re:Unprivileged Docker Builds – A Proof of Concept by phs318u on Sunday April 29, 2018 @06:34PM (#16954287)
If the VM is on the corporate network then it’s the same as connecting an unmanaged device - defeats the purpose of locking down machines. Developer VMs should be on their own VLAN.
Re:Unprivileged Docker Builds – A Proof of Concept by user5994461 on Sunday April 29, 2018 @06:13PM (#16954203)
Yes, but I think you are missing the point. Developers can access dev and production machines with non root users, root is never needed to run software.

If you are part of the sysadmins that really need root, to manage iptables or system updates for instance, you would have root.

Re:Unprivileged Docker Builds – A Proof of Concept by theothertom on Monday April 30, 2018 @09:59AM (#16958591)
I've locked down developer workstations before, to prevent things like "connect a USB stick and take a copy of data/code". We did allow running your own VM, where you could be root if you wanted.

In general, I've found it's pretty workable to run without root/sudo for development work - there's not _that_ much stuff that you can't just install to ~/bin and run from there.