Address CI friction between security and caching #155

Open
opened 2025-02-19 12:25:13 +01:00 by kiara · 4 comments
Owner

Our NixOS-based Gitea actions runner's jobs can access their Nix store (shared), which includes other jobs. This is a potential security concern, particularly if we wanted to allow anyone to sign up to this Forgejo instance and make PRs checked by CI.
As such, we may want to further consider our options on this.

c.f. prior discussion at #152

Our NixOS-based Gitea actions runner's jobs can access their Nix store (shared), which includes other jobs. This is a potential security concern, particularly if we wanted to allow anyone to sign up to this Forgejo instance and make PRs checked by CI. As such, we may want to further consider our options on this. c.f. prior discussion at #152

Yes, essentially we just need two isolated instances for eval/build.

Yes, essentially we just need two isolated instances for eval/build.
Author
Owner

@fricklerhandwerk could you explain that a bit?

@fricklerhandwerk could you explain that a bit?

Like Nixpkgs or NGIpkgs does it: There's an isolated instance that will run builds on PRs, read-only accessing the main cache and not caching build results (or only between PR rebuilds), and another instance that runs builds on main and caches build results publicly.

Like [Nixpkgs](https://github.com/NixOS/nixpkgs/) or [NGIpkgs](https://github.com/ngi-nix/ngipkgs/) does it: There's an isolated instance that will run builds on PRs, read-only accessing the main cache and not caching build results (or only between PR rebuilds), and another instance that runs builds on `main` and caches build results publicly.
Author
Owner

that makes sense, thanks.
in addition tho, i think we would need to make sure our (main) builds would not contain sensitive info then.

that makes sense, thanks. in addition tho, i think we would need to make sure our (main) builds would not contain sensitive info then.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: fediversity/fediversity#155
No description provided.