# runner.li security controls

This page goes through runner.li's security controls one at a time, for the person who has to sign off on running CI jobs outside the company. Each control starts with its status: **Available** today in the free beta, **At launch** of the paid service, or **Planned**. The [Built and planned](https://docs.runner.li/status/) page in the documentation carries the same split and is updated with every release.

## Isolation: a virtual machine per job

**Available.** Each job runs in its own virtual machine (Kata Containers), which is deleted when the job ends. Nothing from one job is visible to the next, whether it is yours or another customer's.

- Docker builds work in every job, with a Docker daemon per job. On GitLab, the privileged `docker:dind` service runs in the same job pod, and the whole pod runs in its own virtual machine, so the daemon cannot reach the host or other customers.
- Jobs never reach VSHN's internal networks, the infrastructure the runners run on, or other customers' jobs.
- A job runs for at most 3 hours.

## Credentials: what runner.li holds, and what a job holds

**Available.** runner.li gives a job no credential beyond the forge's own job token. The credentials you give runner.li stay with the runner.li service that starts your jobs; a job never gets them. Secrets your workflow passes in, such as a registry token, reach the job as they would on any runner, so their scope is yours to set.

- **GitLab:** the runner token stays with runner.li's runner manager. The job gets only GitLab's `CI_JOB_TOKEN`, which is scoped to the job and expires with it. runner.li also takes a project access token with only the `read_api` scope, to see waiting jobs.
- **GitHub:** you install the GitHub App runner.li CI on the repositories that should use it, not on the whole organization, and no key or token leaves your side. The app asks for Administration (read and write) to manage self-hosted runners, Actions (read), Commit statuses (read and write) and Metadata (read). It also asks for Contents (read), only to check that a job's commit is in its branch's history. That permission lets the app read the code, which runner.li does not do; without it, everything else works.
- **Forgejo:** runner.li needs an access token from an owner of the organizations it serves, with the scopes `write:organization` and `write:repository`. Forgejo gives an organization's Actions API to owners only, and the scopes do not narrow an owner's rights: whoever holds that token could read and change every repository of the organization. We suggest a bot user that owns only the organizations runner.li serves, or a separate organization for the repositories that use it. You can delete the token at any time.

## Network egress per job

**Available on Forgejo and GitHub.** Each job gets an egress tier that limits what it may reach. GitLab jobs reach the internet.

| Tier | The job reaches |
|---|---|
| forge | your forge only, plus where its runner fetches actions |
| registries | forge, plus the common package registries and container registries |
| custom | registries, plus the host names you give us |
| open | any host by name |
| any | open, plus raw IP addresses |

- Every tier except any connects only to addresses the job looked up by name, so a job cannot send data to a bare IP address. The lower three tiers also limit the ports.
- A job on a trusted ref (a protected branch, main and master by default, or a tag listed for you) started by a push, a schedule, a manual start or a release gets your trusted tier, open by default in the beta. Every other job, pull requests included, gets the untrusted tier, registries by default, which is never looser than the trusted one. Both are set per repository.
- On GitHub, a trusted job can get the untrusted tier: a GitHub runner takes any queued job with its labels, so while a pull request job with the same labels waits, a job on a trusted ref may get the untrusted tier too. A job counts as on a trusted branch only when its commit is in that branch's history; without the Contents permission, only when its commit is the branch's latest.
- A tier is a guardrail, not a guarantee. Many package registries sit on shared CDN addresses that also serve other sites, and some registry names also take uploads. A tier stops accidents and simple theft, not a job built to send data out. Do not give secrets to jobs you do not trust.

## Pull requests from forks

**Available.** runner.li treats every pull request job as untrusted, whoever opened it, and gives it no credential beyond the forge's own job token. On Forgejo and GitHub it gets the untrusted egress tier; on GitLab, which has no egress tiers yet, it reaches the internet like every GitLab job.

- Limits on how many slots and how long untrusted jobs may take are planned. Until then, on a public repository your forge's approval setting decides whether a stranger's pull request runs on your slots at all.
- Forgejo and Codey require approval for pull requests from forks by authors without write access.
- GitHub requires approval for first-time contributors by default. For a public repository, choose approval for all external contributors. Workflows started by `pull_request_target` run without approval whatever the setting; on runner.li they get the untrusted tier.
- GitLab runs a merge request pipeline from a fork in the fork's project, on the fork's runners. It runs on runner.li only when a member of your project starts it in your project.

## Caches

**Available.** Every job starts in a fresh machine, so a cache carries over only where it is stored outside that machine.

- On GitHub, `actions/cache` uses GitHub's cache service, as on GitHub's own runners.
- On Forgejo and Codey, the cache server is inside the job's machine and is gone when the job ends.
- On GitLab, there is no shared cache yet.
- On every forge, a registry cache carries over, because your registry keeps it. Who may write to that cache is set in your registry.

## Evidence per build

**At launch.** Every build gets a log of every outbound connection and a record of the site and country where it ran. The runner records both outside the job, so a compromised job cannot change its own record. Today the location is recorded for Forgejo and GitHub jobs, but not yet visible to customers.

- **Planned:** signed build provenance. Forgejo and GitHub jobs on the beta sites are already signed; you cannot verify the records yet.
- **Planned:** an SBOM per build. Builds cache their dependencies where a runner cannot see into them, so a complete SBOM has to come from your build's own output. The documentation will say what that takes once it is designed.

## Location

**Available in France.** During the beta, jobs run on our site in Paris. We are working on sites in Switzerland and Germany, and Switzerland has a waitlist.

- **At launch:** you choose the location per job with a runner label: Global, Europe, EU, Germany, France or Switzerland. The contract names the country, and evidence and portal data are kept in Switzerland for every location.
- The [compliance page](/compliance/) sets out what this means for FINMA, ISG, DSG and CRA reviews.

## What stays with you

The secrets in your forge, which jobs receive them, and the review of workflow files and pipeline changes. Approving pull requests from forks, after reading the change, including its workflow files. The choice of egress tier for each repository, and which refs count as trusted. Who may write to your registry caches.

## Not answered here yet

Penetration test results and incident notification times are not on this page yet. The audit package at launch covers the data processing agreement, the subprocessor list per location and the FINMA outsourcing checklist. For anything else your review needs, ask us in a consultation.

## Next step

Going through a security review? [Book a consultation](https://vshn.cal.vs.hn/runnerli), or [ask through the form](/?intent=consultation#contact). If the runners must stay in your own network or cloud account, [ask about dedicated, on-premises or in-account runner.li](/?intent=dedicated#contact).
