by throwaway9870 · 5y ago · 0 comments
If "aggressive" means fully, then why doesn't that fix the issue?
Additionally, docker builds have free access to the network to do anything it would like. Nix goes to great lengths to sandbox builds and limit network access. Anything accessed from a network requires a pinned sha 256 hash to ensure the remote data hasn't changed. (https://nixos.wiki/wiki/Nix#Sandboxing)
It appears that with the proper package manager support, Docker would be fine?
I come from a hardware background and seem to be a lot more paranoid than most software folks. I would struggle to trust a build where so much is not pinned.
Do people really build images this way? It sounds completely insane to pull packages like that randomly from the Internet.
Do you work in an environment that maintains custom copies of every dependency in company managed repos? If so, my experience suggests your the outlier, not the people running apt, npm, etc inside their Dockerfiles.
It was really nice doing a full image rebuild and knowing the only thing that changed it was you explicitly changed.