-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
560 lines (560 loc) · 16.6 KB
/
schema.json
File metadata and controls
560 lines (560 loc) · 16.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
{
"schema": {
"name": "GitLabHound",
"display_name": "GitLab (GitLabHound)",
"version": "v0.0.1",
"namespace": "GL"
},
"node_kinds": [
{
"name": "GL_AccessToken",
"display_name": "Access Token",
"description": "Base type for GitLab access tokens",
"is_display_kind": true,
"icon": "key",
"color": "#F5A623"
},
{
"name": "GL_Bot",
"display_name": "GitLab Bot",
"description": "GitLab bot / service account",
"is_display_kind": true,
"icon": "robot",
"color": "#FF8E40"
},
{
"name": "GL_Branch",
"display_name": "GitLab Branch",
"description": "A branch within a repository",
"is_display_kind": true,
"icon": "code-branch",
"color": "#FF80D2"
},
{
"name": "GL_Group",
"display_name": "GitLab Group",
"description": "GitLab group (namespace for projects and subgroups)",
"is_display_kind": true,
"icon": "user-group",
"color": "#C06EFF"
},
{
"name": "GL_GroupAccessToken",
"display_name": "Group Access Token",
"description": "Access token scoped to a specific GitLab group",
"is_display_kind": true,
"icon": "key",
"color": "#F5A623"
},
{
"name": "GL_GroupRole",
"display_name": "Group Role",
"description": "Permission role within a specific group (Minimal Access, Guest, Planner, Reporter, Developer, Maintainer, Owner, or custom)",
"is_display_kind": true,
"icon": "user-tie",
"color": "#D0B0FF"
},
{
"name": "GL_GroupVariable",
"display_name": "Group CI/CD Variable",
"description": "CI/CD variable defined at group scope",
"is_display_kind": true,
"icon": "sliders",
"color": "#E63946"
},
{
"name": "GL_Instance",
"display_name": "GitLab Instance",
"description": "The GitLab instance being analyzed",
"is_display_kind": true,
"icon": "building",
"color": "#5FED83"
},
{
"name": "GL_InstanceRole",
"display_name": "Instance Role",
"description": "Instance-level permission role (Unauthenticated, External, Member, or Administrator)",
"is_display_kind": true,
"icon": "user-tie",
"color": "#BFFFD1"
},
{
"name": "GL_InstanceVariable",
"display_name": "Instance CI/CD Variable",
"description": "CI/CD variable defined at instance scope",
"is_display_kind": true,
"icon": "sliders",
"color": "#E63946"
},
{
"name": "GL_Job",
"display_name": "GitLab Job",
"description": "An individual job within a pipeline",
"is_display_kind": true,
"icon": "gear",
"color": "#B388FF"
},
{
"name": "GL_JobArtifact",
"display_name": "Job Artifact",
"description": "Artifact archive produced by a job",
"is_display_kind": true,
"icon": "file-zipper",
"color": "#8ED1B2"
},
{
"name": "GL_JobLog",
"display_name": "Job Log",
"description": "Execution trace / log of a job",
"is_display_kind": true,
"icon": "scroll",
"color": "#A3A3A3"
},
{
"name": "GL_LeakedSecret",
"display_name": "Secret",
"description": "A credential or secret value discovered in the GitLab instance (e.g. in CI/CD variables or job logs)",
"is_display_kind": true,
"icon": "key",
"color": "#FFC800"
},
{
"name": "GL_PersonalAccessToken",
"display_name": "Personal Access Token",
"description": "Personal access token belonging to a GitLab user",
"is_display_kind": true,
"icon": "key",
"color": "#F5A623"
},
{
"name": "GL_Pipeline",
"display_name": "GitLab Pipeline",
"description": "A CI/CD pipeline run",
"is_display_kind": true,
"icon": "angles-right",
"color": "#6EC6FF"
},
{
"name": "GL_PipelineSchedule",
"display_name": "Pipeline Schedule",
"description": "A scheduled trigger for pipelines",
"is_display_kind": true,
"icon": "clock-rotate-left",
"color": "#FFD166"
},
{
"name": "GL_PipelineVariable",
"display_name": "Pipeline Schedule Variable",
"description": "Variable defined in a pipeline schedule",
"is_display_kind": true,
"icon": "sliders",
"color": "#E63946"
},
{
"name": "GL_Project",
"display_name": "GitLab Project",
"description": "GitLab project",
"is_display_kind": true,
"icon": "diagram-project",
"color": "#009CE0"
},
{
"name": "GL_ProjectAccessToken",
"display_name": "Project Access Token",
"description": "Access token scoped to a specific GitLab project",
"is_display_kind": true,
"icon": "key",
"color": "#F5A623"
},
{
"name": "GL_ProjectRole",
"display_name": "Project Role",
"description": "Permission role within a specific project (Minimal Access, Guest, Planner, Reporter, Developer, Maintainer, or Owner)",
"is_display_kind": true,
"icon": "user-tie",
"color": "#DEFEFA"
},
{
"name": "GL_ProjectVariable",
"display_name": "Project CI/CD Variable",
"description": "CI/CD variable defined at project scope",
"is_display_kind": true,
"icon": "sliders",
"color": "#E63946"
},
{
"name": "GL_Repository",
"display_name": "GitLab Repository",
"description": "Git repository associated with a project",
"is_display_kind": true,
"icon": "box-archive",
"color": "#9EECFF"
},
{
"name": "GL_Runner",
"display_name": "GitLab Runner",
"description": "A CI/CD runner that executes jobs",
"is_display_kind": true,
"icon": "gears",
"color": "#FF4D4D"
},
{
"name": "GL_RunnerManager",
"display_name": "Runner Manager",
"description": "A runner manager process (gitlab-runner agent)",
"is_display_kind": true,
"icon": "server",
"color": "#FFB347"
},
{
"name": "GL_SecureFile",
"display_name": "Secure File",
"description": "Secure file stored in a project",
"is_display_kind": true,
"icon": "file-shield",
"color": "#E63946"
},
{
"name": "GL_User",
"display_name": "GitLab User",
"description": "GitLab user account",
"is_display_kind": true,
"icon": "user",
"color": "#FF8E40"
},
{
"name": "GL_Variable",
"display_name": "CI/CD Variable",
"description": "Base type for CI/CD variables across all scopes",
"is_display_kind": true,
"icon": "sliders",
"color": "#E63946"
}
],
"relationship_kinds": [
{
"name": "GL_ArchiveProject",
"description": "Role can archive this project",
"is_traversable": false
},
{
"name": "GL_AssignedTo",
"description": "Group runner is registered to / assigned to this group",
"is_traversable": false
},
{
"name": "GL_BuildsAsSystem",
"description": "Pipelines on this branch run on a shell executor and execute as the runner manager's system user",
"is_traversable": true
},
{
"name": "GL_BuildsOn",
"description": "Pipelines on this branch may execute on this runner",
"is_traversable": false
},
{
"name": "GL_CanAssumeIdentity",
"description": "Pipelines on this branch can assume this Entra service principal identity via federated credentials",
"is_traversable": true
},
{
"name": "GL_CanCreateGroup",
"description": "User or group role is allowed to create top-level groups or subgroups",
"is_traversable": false
},
{
"name": "GL_CanCreateProject",
"description": "User or group role is allowed to create projects",
"is_traversable": false
},
{
"name": "GL_CanMerge",
"description": "Role can merge merge requests into this branch",
"is_traversable": true
},
{
"name": "GL_CanPull",
"description": "Role can pull/clone from this repository (including unauthenticated/member access to public/internal projects)",
"is_traversable": false
},
{
"name": "GL_CanPush",
"description": "Role can push commits to this branch",
"is_traversable": true
},
{
"name": "GL_CanReadSecret",
"description": "Role can read a secret",
"is_traversable": true
},
{
"name": "GL_CanRequestAccess",
"description": "Instance members can request access to this group",
"is_traversable": false
},
{
"name": "GL_CanSignUp",
"description": "Open registration is enabled; unauthenticated users can create an account (edge property require_admin_approval indicates whether the account requires admin approval before activation)",
"is_traversable": false
},
{
"name": "GL_CanUseRunner",
"description": "Group or project is allowed to use this runner for its pipelines",
"is_traversable": false
},
{
"name": "GL_ContainsCredentialsFor",
"description": "Node (CI/CD variable, job log, or artifact) contains credentials for the target secret",
"is_traversable": true
},
{
"name": "GL_Contributed",
"description": "User opened, closed, or commented on issues or merge requests in this project",
"is_traversable": false
},
{
"name": "GL_Created",
"description": "User created another user (admin action), a project, or triggered a pipeline",
"is_traversable": false
},
{
"name": "GL_Defines",
"description": "Instance, group, project, or pipeline schedule defines this CI/CD variable",
"is_traversable": true
},
{
"name": "GL_DeleteProject",
"description": "Role can delete this project",
"is_traversable": false
},
{
"name": "GL_Developed",
"description": "User pushed code or merged / approved merge requests in this project",
"is_traversable": false
},
{
"name": "GL_DownloadJobArtifacts",
"description": "Instance or project role can download job artifacts",
"is_traversable": false
},
{
"name": "GL_DownloadSecureFiles",
"description": "Role can download secure files from this project",
"is_traversable": false
},
{
"name": "GL_ExecutedBy",
"description": "Job was executed by this runner",
"is_traversable": false
},
{
"name": "GL_ForkedFrom",
"description": "Project was forked from the target project",
"is_traversable": false
},
{
"name": "GL_HasBaseRole",
"description": "Role subsumes all permissions of the lower role (permission hierarchy); also models instance Admin holding Owner in all top-level groups and user-owned projects",
"is_traversable": true
},
{
"name": "GL_HasBranch",
"description": "Repository contains this branch",
"is_traversable": false
},
{
"name": "GL_HasGroup",
"description": "Instance contains this top-level group",
"is_traversable": false
},
{
"name": "GL_HasJob",
"description": "Pipeline contains this job",
"is_traversable": false
},
{
"name": "GL_HasPipeline",
"description": "Project contains this pipeline run",
"is_traversable": false
},
{
"name": "GL_HasPipelineSchedule",
"description": "Project has this pipeline schedule",
"is_traversable": false
},
{
"name": "GL_HasPrivilegeOf",
"description": "Entity inherits the privileges of the target (e.g. a token with equivalent scope to a user)",
"is_traversable": true
},
{
"name": "GL_HasProject",
"description": "Group namespace or user personal namespace owns this project",
"is_traversable": false
},
{
"name": "GL_HasRepo",
"description": "Project has this associated git repository",
"is_traversable": false
},
{
"name": "GL_HasRole",
"description": "User holds an instance/group/project role",
"is_traversable": true
},
{
"name": "GL_HasToken",
"description": "Acess token defined by the respective entity (user, project, or group)",
"is_traversable": false
},
{
"name": "GL_HostedOn",
"description": "Runner manager process is hosted on this Active Directory computer",
"is_traversable": false
},
{
"name": "GL_InheritRole",
"description": "Subgroup role inherits from the equivalent parent group role, or a project role is inherited from the equivalent parent group role",
"is_traversable": true
},
{
"name": "GL_InviteGroups",
"description": "Role can invite groups into this group or project",
"is_traversable": false
},
{
"name": "GL_InvitedTo",
"description": "Group is shared/invited into another group or project",
"is_traversable": true
},
{
"name": "GL_IsToken",
"description": "Variable or secret value is or contains a valid GitLab access token",
"is_traversable": true
},
{
"name": "GL_ManageDeployKeys",
"description": "Role can manage deploy keys",
"is_traversable": false
},
{
"name": "GL_ManageMembers",
"description": "Role grants permission to add/remove group or project members",
"is_traversable": true
},
{
"name": "GL_ManageProjectAccessTokens",
"description": "Role can create and revoke project access tokens",
"is_traversable": false
},
{
"name": "GL_ManageProtectedBranches",
"description": "Role can configure protected branch rules",
"is_traversable": false
},
{
"name": "GL_ManageProtectedTags",
"description": "Role can configure protected tag rules",
"is_traversable": false
},
{
"name": "GL_ManageReleases",
"description": "Role can create and manage releases",
"is_traversable": false
},
{
"name": "GL_ManageRunners",
"description": "Role can enable/disable runners for this project",
"is_traversable": false
},
{
"name": "GL_ManageSecureFiles",
"description": "Role can upload/delete secure files",
"is_traversable": false
},
{
"name": "GL_ManageVariables",
"description": "Role can manage variables",
"is_traversable": false
},
{
"name": "GL_ManageWebHooks",
"description": "Role can manage webhooks",
"is_traversable": false
},
{
"name": "GL_ManagedBy",
"description": "Runner instance is managed by this runner manager process",
"is_traversable": false
},
{
"name": "GL_MemberOf",
"description": "Subgroup belongs to the parent group, or a group role grants membership in the group",
"is_traversable": true
},
{
"name": "GL_Owns",
"description": "User created and owns this pipeline schedule",
"is_traversable": true
},
{
"name": "GL_Produced",
"description": "Job produced this artifact archive or execution log",
"is_traversable": false
},
{
"name": "GL_PushedTo",
"description": "User pushed commits to this branch",
"is_traversable": false
},
{
"name": "GL_RenovateInviteAndTakeover",
"description": "Renovate bot can invite itself to the target group or project and take over its resources",
"is_traversable": true
},
{
"name": "GL_RunCICD",
"description": "Role can trigger CI/CD pipelines in this project",
"is_traversable": false
},
{
"name": "GL_RunsOn",
"description": "Pipeline was run against this branch/ref",
"is_traversable": false
},
{
"name": "GL_SyncedTo",
"description": "Entra or Active Directory user is linked / synced to this GitLab user via SSO (SAML, OAuth, OIDC, or LDAP)",
"is_traversable": true
},
{
"name": "GL_TransferProject",
"description": "Role can transfer this project to another namespace",
"is_traversable": false
},
{
"name": "GL_Triggers",
"description": "A branch push or pipeline schedule triggered this pipeline run",
"is_traversable": false
},
{
"name": "GL_ViewJobLogs",
"description": "Instance or project role can view job logs",
"is_traversable": false
}
],
"environments": [
{
"environment_kind": "GL_Instance",
"source_kind": "GL_Base",
"principal_kinds": [
"GL_User",
"GL_Group",
"GL_Project",
"GL_Repository",
"GL_Branch"
]
}
],
"relationship_findings": []
}