!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

423 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.143 Servers

Load older messages


SenderMessageTime
27 Jul 2025
@raitobezarius:matrix.orgraitobezarius
In reply to @emilazy:matrix.org
why does that sound like it's going to get assigned to me? :)
I doubt :P
16:08:36
@raitobezarius:matrix.orgraitobezariusRoot access to the CI builders is not a simple decision16:08:46
@emilazy:matrix.orgemilyfrankly, I am not sure what the actual desired threat model is so I'm not sure what the requirements would be to have Darwin sandbox testing without breaking it16:08:50
@emilazy:matrix.orgemily(I'm not even sure if running CI requires manual approval)16:09:18
@raitobezarius:matrix.orgraitobezariusWhat I'm planning to do to our CI builders is to have go through reinitialization daily or something16:09:21
@raitobezarius:matrix.orgraitobezariusSo I am not afraid of about an attacker getting persistence16:09:44
@raitobezarius:matrix.orgraitobezariusNetwork isolation should be fine as well16:09:51
@emilazy:matrix.orgemilyyou could just have a macOS host that only runs a macOS VM and restores it to a snapshot before every build16:09:54
@raitobezarius:matrix.orgraitobezariusThe only thing I am not sure about is abuse16:09:55
@emilazy:matrix.orgemilyand EULA says you can run two of these at a time16:09:57
@emilazy:matrix.orgemilythen compromise of the builder VM should be low impact16:10:08
@raitobezarius:matrix.orgraitobezariushow is the performance penalty of macOS virtualization on macOS?16:10:26
@emilazy:matrix.orgemily(but I don't know what the current concurrency is)16:10:29
@raitobezarius:matrix.orgraitobezariuswe have 2 job slots for macOS right now16:10:39
@raitobezarius:matrix.orgraitobezariusit's our slowest machine type16:10:44
@raitobezarius:matrix.orgraitobezariusi have 2 more M2 in the pipeline16:10:48
@emilazy:matrix.orgemilyI have not measured it. I think it's not optimal but it's much better than in the pre-Apple Silicon days or on non-macOS hosts16:10:53
@raitobezarius:matrix.orgraitobezariusbut I didn't set them up because Darwin sysadmin is not yet pleasant to me16:10:56
@raitobezarius:matrix.orgraitobezariusBut also I can just have MDM on them16:11:07
@raitobezarius:matrix.orgraitobezariusSo maybe it's fine to just reinit them daily or something?16:11:17
@raitobezarius:matrix.orgraitobezariusThoug16:11:28
@raitobezarius:matrix.orgraitobezariush16:11:29
@raitobezarius:matrix.orgraitobezariusThe most most most important thing is abuse vector16:11:34
@raitobezarius:matrix.orgraitobezariusIf we disable the sandbox and someone writes something in a test that will respawn a new task and DoS something16:11:54
@raitobezarius:matrix.orgraitobezariusit's annoying16:11:56
@raitobezarius:matrix.orgraitobezariusI guess, the VM technique here would close this down16:12:11
@emilazy:matrix.orgemily with _NIX_TEST_NO_SANDBOX=1 you allow setuid bits in builds again 16:12:27
@emilazy:matrix.orgemily compared to even --option sandbox false 16:12:32
@emilazy:matrix.orgemilythat's basically the only change16:12:40
@raitobezarius:matrix.orgraitobezariusSo, a VM is absolutely necessary in fact16:12:47

Show newer messages


Back to Room ListRoom Version: 10