Docs / Install / GitLab
Install: GitLab
Run the Protet sensor next to your self-managed GitLab runners: the Helm values, the runner configuration, how to confirm the first verdict, and what to check when it is quiet. For an overview first, see Runtime security for GitLab CI.
Status. The install kit for self-managed GitLab is in design-partner rollout. We send you the current kit and walk through the install with you.
What you get. The Helm chart and the pipeline images are handed over with your account, so the chart path below is the folder you unpacked. For an air-gapped setup, the bundle, license and keys are fetched as described in Install: self-hosted. Questions: hello@protet.io.
Requirements
- GitLab CE or EE, self-managed, or GitLab Dedicated.
- Runners that use the Kubernetes executor. GitLab.com shared runners are not supported: the sensor must run on the node that hosts your job pods.
- A Kubernetes cluster where you can run a DaemonSet and Tetragon, and Helm 3.
- Your Protet chart, license and public keys (see Install: self-hosted).
1. Tetragon
The Protet sensor reads process execution from Tetragon, so nothing is added to your build images. If Tetragon is not on the cluster yet:
helm repo add cilium https://helm.cilium.io helm repo update helm install tetragon cilium/tetragon --namespace kube-system
2. Install the chart
Create the license secret, write your values file, then install:
kubectl create namespace protet kubectl -n protet create secret generic protet-license --from-file=license.json=./license/license.json
global: imageTag: "<the version you were given>" imagePullSecret: protet-registry license: enforce: true secretName: protet-license signing: bundlePublicKey: "<BUNDLE_PUBLIC_KEY>" licensePublicKey: "<LICENSE_PUBLIC_KEY>" collector: enabled: true tetragonAddr: tetragon.kube-system.svc.cluster.local:54321 ignoredBinaries: containerd-shim,pause,runc,tini
helm install protet ./protet-chart \ --namespace protet --create-namespace \ --values protet-values.yaml
Helm values reference
The values this page uses. The full list, with every default, is in the Configuration reference, and the chart's own values.yaml is the authority.
| Value | Set it to | Why |
|---|---|---|
global.imageTag | the version you were given | Pins every Protet image. |
global.imagePullSecret | a docker-registry secret | Needed when the images come from a private registry. |
license.enforce | true | Require a valid license, verified offline. |
license.secretName | the secret holding license.json | Mounted into the services. |
signing.bundlePublicKey, signing.licensePublicKey | the two public keys | Verify the detection bundle and the license. |
collector.enabled | true | Runs the per-node sensor that reads Tetragon. |
collector.tetragonAddr | your Tetragon gRPC address | The default matches the Tetragon install above. |
collector.ignoredBinaries | the default list | Binaries the sensor skips. |
3. Runner configuration
Your runner keeps its Kubernetes executor and your .gitlab-ci.yml stays as it is. This is the part of the GitLab Runner Helm values that matters here: the executor and the namespace the job pods run in.
gitlabUrl: https://gitlab.example.internal
runners:
config: |
[[runners]]
executor = "kubernetes"
[runners.kubernetes]
namespace = "gitlab-runners"
Job pods in that namespace are what you will see in findings, as container.pod_name and cloud.region.
4. Verify the first job
Check that the sensor pods run on your nodes, then start any pipeline on the runner:
kubectl -n protet get pods -o wide SENSOR_POD=$(kubectl -n protet get pods -o name | head -n 1) kubectl -n protet logs "$SENSOR_POD" | tail
Each job returns a verdict, benign or malicious, as one OCSF Detection Finding with class_uid: 2004, delivered to your webhook or log file. The schema is in Integrations. Seeing a benign finding for an ordinary job is the signal that the path works end to end.
Need this record for an audit? The compliance hub maps these findings to DORA, FINMA and NIS2, with a PDF download.
Troubleshooting
No findings after a pipeline
Check, in this order: the sensor pods are running on the nodes that host your job pods; collector.tetragonAddr resolves from the sensor pod; the job ran in a namespace and on a runner that use the Kubernetes executor. Shared runners are not supported.
The services refuse to start
With license.enforce on, an expired or unreadable license stops them. Re-download license.json and recreate the secret. See Troubleshooting.
Image pull errors
Create a docker-registry secret and set global.imagePullSecret.
docker build and Docker-in-Docker jobs
Protet watches the processes in the job's build container. Build steps that run in a separate Docker-in-Docker service container are not covered yet.