Skip to content

Commit e2d990f

Browse files
Added GitLab OIDC documentation to the /docs/oidc.md file that was missing. (#1574)
The example was copied over from https://docs.sigstore.dev/certificate_authority/oidc-in-fulcio/ documentation. Signed-off-by: Tanner Jones <[email protected]>
1 parent 1145efa commit e2d990f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/oidc.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,34 @@ The token must include the following claims:
212212

213213
All other required claims are extracted and included in custom OID fields, as documented in [OID Information](oid-info.md).
214214

215+
### GitLab
216+
217+
The token must include the following claims:
218+
219+
```json
220+
{
221+
"namespace_id": "72",
222+
"namespace_path": "my-group",
223+
"project_id": "20",
224+
"project_path": "my-group/my-project",
225+
"pipeline_id": "574",
226+
"pipeline_source": "push",
227+
"job_id": "302",
228+
"ref": "main",
229+
"ref_type": "branch",
230+
"runner_id": 1,
231+
"runner_environment": "gitlab-hosted",
232+
"sha": "714a629c0b401fdce83e847fc9589983fc6f46bc",
233+
"project_visibility": "public",
234+
"ci_config_ref_uri": "gitlab.com/my-group/my-project//.gitlab-ci.yml@refs/heads/main"
235+
}
236+
```
237+
238+
`ci_config_ref_uri` is included as a SAN URI: `https://{ci_config_ref_uri}`
239+
240+
All other required claims are extracted and included in custom OID fields, as documented in [OID Information](https://github.com/sigstore/fulcio/blob/main/docs/oid-info.md#mapping-oidc-token-claims-to-fulcio-oids).
241+
242+
215243
### SPIFFE
216244

217245
The token must include the following claims:

0 commit comments

Comments
 (0)