Secure GitLab CI/CD workflows using OIDC JWT on a DevSecOps platform
Feb 28, 2023Dov Hershkovitch

Summary
This post introduces the evolution of JWT support in GitLab CI/CD, moving from initial JWT (V1) for Hashicorp Vault integration to OIDC JWT (V2) for broader cloud provider integration, and finally to a production-ready OIDC token. It details the opt-in mechanism for JWT token usage to minimize exposure and the importance of the audience claim for security. The post also announces breaking changes and backward compatibility plans leading up to GitLab 16.0, where only the secured OIDC token will be available. It provides guidance on configuring pipelines to use the `id_token` keyword and enabling the 'Limit JSON Web Token (JWT) access' setting.
More from the GitLab Secrets Manager trail
- GitLab Secrets Manager adds ESO, Terraform, API support
- Manage CI/CD credentials with GitLab Secrets Manager
- A leaked personal access token shouldn't expose every project its owner can reach. Fine-grained PATs scope each token’s permissions to the job.
- Solving complex challenges with GitLab Duo Workflow
- How to scan a full commit history to detect sensitive secrets