You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Confine file writes of services to the repository (Landlock on Linux, low integrity on Windows) #2
Deferred. ADR-0022 covers outbound network calls only. Writes outside the repository (a service or a build deleting or changing files elsewhere in the user's profile) are not covered by anything today.
What exists, without elevation
Linux: Landlock (kernel 5.13+ for the file system): the shim restricts a service's process tree to writing in the repository, the state directory, temp and named extra paths; reads stay allowed. Unprivileged, inherited by children.
Windows: a low-integrity token. A process at low integrity may write only to locations labelled low (%LOCALAPPDATA%Low, folders labelled with icacls /setintegritylevel low), which the owner can label without admin rights. Reads stay allowed. Much less invasive than an AppContainer (which also cuts loopback and registry access).
Open questions
Toolchains write to their caches (NuGet %USERPROFILE%\.nuget, npm cache, Go module cache, ~/.m2): label them or list them as allowed paths per stack?
Builds and services the same, or only services?
Opt-in per stack ([sandbox] files = "repo"?) and an audit mode first, like ADR-0022 stage 1?
Next step
A proposed ADR next to ADR-0022, with a spike on Windows: does a .NET and a Node service run at low integrity with their caches labelled?
Activity
docs(plan): tray, file confinement and code signing deferred (#1, #2, #3