GitLab check

Inbound CI job token allowlist is disabled

GL-SEC-006MediumSecurity

Trigger condition

GitLab's GET /projects/:id/job_token_scope response has a confirmed, literal inbound_enabled: false. A confirmed true -- including when GitLab's own instance-wide 'Enforce job token allowlist' setting is what makes it true, regardless of this project's own configured value -- is treated as effectively enabled and never flagged. outbound_enabled is never read.

Evidence

States that GitLab reports inbound_enabled=false for this project's CI/CD job token allowlist.

Impact

Disabling this project's inbound CI/CD job token allowlist removes the restriction on which other projects may present a CI job token to authenticate against this project -- any project on the instance can then do so, rather than only this project and the projects/groups explicitly added to the allowlist. The triggering job's own user permissions, and whatever operations GitLab itself supports a job token for, still apply regardless of this setting -- this finding does not report that job tokens can push to this project's repository (see GL-SEC-002 for that, a separate, already-covered setting) or that any specific operation has occurred. See GitLab's CI/CD job token documentation (https://docs.gitlab.com/ci/jobs/ci_job_token/).

Recommendation

Enable 'Only this project and any groups and projects in the allowlist' under Settings > CI/CD > Job token permissions. Identify the legitimate cross-project dependencies that need to authenticate against this project with a job token, add only those entries to the allowlist, and verify those jobs still succeed after the change.

Important limitations

Evaluates only the project's own job-token-scope response -- it never lists the allowlist's own entries, and never distinguishes a project-level setting from one made true by an instance-wide enforcement setting. A missing, null, or non-boolean inbound_enabled value is unknown and never flagged, rather than assumed enabled or disabled. If the job-token-scope endpoint is unavailable (e.g. a 403 or 404), this check is skipped for the audit run rather than reporting a false clean result. Live verification against a real GitLab instance remains outstanding for this check.

← Back to the check catalogue