-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathgrants.yml
3037 lines (2778 loc) · 97.5 KB
/
grants.yml
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
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
# Grants of scopes to repos or user groups, or parts of projects
#
# Format:
# - grant:
# - <scope>
# - ..
# to:
# - <grantee>
# - ..
#
# The `grant` property specifies the scopes to be granted. Each will have {..}
# parameters expanded with parameters from the grantees selected.
#
# ## Projects
#
# A grantee can either be a project or a user group. A project looks like this:
#
# - projects:
# level: [2, 3] # condition
# job: ["branch:default", "cron:*"]
#
# The top-level property can be `projects` or `project`, whichever reads better.
#
# The conditions select matching projects from projects.yml. Each specifies a
# condition name and either a single value or an array of values. For an array
# of values, a project with any value in the array is matched. The conditions
# are AND'ed together. Available conditions are:
#
# * access
# * level (as derived from access or directly specified)
# * alias
# * feature (projects with the given feature or for `!feature`, projects without)
# * is_try (true/false)
# * trust_domain
# * job
#
# "job" is a little special: it is a list of the jobs on the matching projects
# to which the grant applies. These are suffixes to the `repo` roles,
# defaulting to "*":
#
# * * (all jobs on the repo)
# * branch:default (pushes to the repo)
# * cron:<job> (cron jobs; kleene-* is allowed)
# * action:<actionPerm> (action jobs; kleene-* is allowed)
#
# The following expansions of the granted scopes are performed:
#
# * {alias} (project alias)
# * {level} (numeric level; not substituted if this repo has no numeric level)
# * {repo_path} (path within repository (e.g. hg.mozilla.org or github.com, if repo is on that host)
# * {trust_domain}
#
# ## User Groups
#
# A user group grantee looks like this:
#
# - group: <groupName>
# or
# - groups: [<group1>, <group2>, ..]
#
# The property name can be `group` or `groups`, whichever reads better.
#
# The resulting scopes are granted to role `project:releng:ci-group:<groupName>`.
# Then `assume:project:releng:ci-group:<groupName>` to the appropriate access-control
# role, hopefully with the same name. This indirection exists because `mozilla-group`
# role changes need access to the cluster's root crendentials.
#
# No expansions are available for user groups.
# Platform roles
- grant:
# Scopes assigned to credentials generated by taskcluster-login; so, to human users.
# The `*` matches the user's identity as defined by the taskcluster-login service.
- auth:list-clients
- auth:create-client:<..>/*
- auth:delete-client:<..>/*
- auth:reset-access-token:<..>/*
- auth:update-client:<..>/*
- queue:get-artifact:login-identity/<..>/*
- queue:create-task:highest:built-in/succeed
- queue:create-task:highest:built-in/fail
- queue:pending-list:*
- queue:claimed-list:*
to:
- roles:
- login-identity:*
- grant:
- queue:claim-work:<..>
- queue:worker-id:*
- secrets:get:worker-type:<..>
- secrets:get:worker-pool:<..>
to:
- roles:
- worker-type:*
- grant:
- auth:websocktunnel-token:firefoxcitc/*
to:
- roles:
- worker-type:*
environments: firefoxci
- grant:
- auth:websocktunnel-token:cloudopsstage/*
to:
- roles:
- worker-type:*
environments: staging
- grant:
- auth:sentry:generic-worker
to:
- roles:
- worker-type:releng-hardware/*
- worker-type:performance-hardware/*
##
# scopes for all gecko-related projects
- grant:
# coalescing routes support dropping unnecessary tasks under load
- queue:route:coalesce.v1.{alias}.*
# allow fetching secrets appropriate to this level
# TODO: switch to trust-domain-scopes format
- secrets:get:project/releng/{trust_domain}/build/level-{level}/*
# Provide access to sccache buckets
- assume:project:taskcluster:{trust_domain}:level-{level}-sccache-buckets
to:
- project:
feature: gecko-roles
- grant:
# access to workers; all levels have access to the same workers, but at
# different priorities and levels
- queue:create-task:{priority}:scriptworker-k8s/{trust_domain}-{level}-*
- queue:create-task:{priority}:scriptworker-k8s/{trust_domain}-t-*
to:
- project:
feature: gecko-roles
trust_domain: [gecko, comm]
- grant:
- queue:create-task:{priority}:scriptworker-k8s/{trust_domain}-1-*
to:
- project:
alias: maple
- grant:
- auth:gcp:access-token:sccache-3/comm-sccache-l1*
to:
- role:
- project:taskcluster:comm:level-1-sccache-buckets
- grant:
- auth:gcp:access-token:sccache-3/comm-sccache-l2*
to:
- role:
- project:taskcluster:comm:level-2-sccache-buckets
- grant:
- auth:gcp:access-token:sccache-3/comm-sccache-l3*
to:
- role:
- project:taskcluster:comm:level-3-sccache-buckets
- grant:
- auth:gcp:access-token:sccache-3/sccache-l1*
to:
- role:
- project:taskcluster:gecko:level-1-sccache-buckets
- grant:
- auth:gcp:access-token:sccache-3/sccache-l2*
to:
- role:
- project:taskcluster:gecko:level-2-sccache-buckets
- grant:
- auth:gcp:access-token:sccache-3/sccache-l3*
to:
- role:
- project:taskcluster:gecko:level-3-sccache-buckets
- grant:
# access to workers; all levels have access to the same workers, but at
# different priorities and levels
- queue:create-task:{priority}:bitbar/gecko-t-*
- queue:create-task:{priority}:gecko-{level}/*
- queue:create-task:{priority}:gecko-t/*
- queue:create-task:{priority}:releng-hardware/gecko-{level}-*
- queue:create-task:{priority}:releng-hardware/gecko-t-*
- queue:create-task:{priority}:releng-hardware/win11-64-*
- queue:create-task:{priority}:performance-hardware/gecko-t-*
# access to openh264 artifacts; necessary for symbol upload and signing when
# building new openh264 binaries
- queue:get-artifact:private/openh264/*
to:
- project:
feature: gecko-roles
trust_domain: gecko
- grant:
# Let's not require a separate level 2 pool for hardware
- queue:create-task:{priority}:releng-hardware/gecko-1-*
to:
- project:
feature: gecko-roles
trust_domain: [gecko]
level: 2
- grant:
- queue:get-artifact:private/openh264/*
to:
- groups:
- team_moco
- grant:
# access to OSX testers
- queue:create-task:{priority}:releng-hardware/gecko-t-osx-*
to:
- project:
feature: gecko-roles
trust_domain: comm
# moz-tree roles include the basic scopes available to version-control trees at
# each of the three Mozilla source-code management levels. They are useful as
# shorthand to configure `repo:*` roles. While most scopes are still contained
# in these grants, prefer to add new grants as separate stanzas in this file,
# and remove scopes from these grants.
- grant:
- docker-worker:capability:device:loopbackAudio
- docker-worker:capability:device:loopbackVideo
- docker-worker:capability:device:kvm
- docker-worker:capability:privileged
- docker-worker:feature:allowPtrace
- generic-worker:feature:allowPtrace
- index:insert-task:garbage.*
- notify:email:*
- purge-cache:{trust_domain}-{level}/*
- purge-cache:{trust_domain}-t/*
- queue:get-artifact:project/gecko/*
- queue:route:index.garbage.*
- queue:route:notify.*
- secrets:get:project/taskcluster/gecko/hgfingerprint
- secrets:get:project/taskcluster/gecko/hgmointernal
- secrets:get:project/perftest/gecko/level-{level}/*
- secrets:get:project/releng/gecko/build/windows-laf-tokens.data
to:
- projects:
feature: gecko-roles
level: [1, 2, 3]
- grant:
- generic-worker:os-group:gecko-t/t-win7-32/Administrators
- generic-worker:os-group:gecko-t/t-win7-32-beta/Administrators
- generic-worker:os-group:gecko-t/t-win10-64/Administrators
- generic-worker:os-group:gecko-t/t-win10-64-alpha/Administrators
- generic-worker:os-group:gecko-t/t-win10-64-beta/Administrators
- generic-worker:os-group:gecko-t/win11-64-2009/Administrators
- generic-worker:os-group:gecko-t/win11-64-24h2/Administrators
- generic-worker:os-group:gecko-t/win11-64-2009-alpha/Administrators
- generic-worker:os-group:gecko-t/win11-64-24h2-alpha/Administrators
- generic-worker:os-group:gecko-t/t-linux-2204-wayland-experimental/audio
- generic-worker:os-group:gecko-t/t-linux-2204-wayland-experimental/video
- generic-worker:os-group:gecko-t/t-linux-2204-wayland-snap/snap_sudo
- generic-worker:os-group:gecko-t/t-linux-2404-wayland-snap/snap_sudo
- generic-worker:os-group:gecko-t/t-linux-2404-wayland-relsre/snap_sudo
- generic-worker:run-as-administrator:gecko-t/t-win10-64
- generic-worker:run-as-administrator:gecko-t/t-win10-64-alpha
- generic-worker:run-as-administrator:gecko-t/t-win10-64-beta
- generic-worker:run-as-administrator:gecko-t/win11-64-2009-alpha
- generic-worker:run-as-administrator:gecko-t/win11-64-24h2-alpha
- generic-worker:run-as-administrator:gecko-t/win11-64-2009
- generic-worker:run-as-administrator:gecko-t/win11-64-24h2
- generic-worker:run-as-administrator:releng-hardware/win11-64*
- project:releng:addons.mozilla.org:server:staging
- project:releng:balrog:action:*
- project:releng:balrog:channel:*
- project:releng:balrog:server:dep
- project:releng:beetmover:action:*
- project:releng:beetmover:bucket:dep
- project:releng:beetmover:apt-repo:dep
- project:releng:beetmover:bucket:dep-partner
- project:releng:beetmover:bucket:maven-staging
- project:releng:beetmover:bucket:maven-nightly-staging
- project:releng:bouncer:action:*
- project:releng:bouncer:server:staging
- project:releng:bouncer:server:staging-nazgul
- project:releng:flathub:firefox:mock
- project:releng:googleplay:product:fenix:dep
- project:releng:googleplay:product:focus-android:dep
- project:releng:microsoftstore:mock
- project:releng:ship-it:action:create-new-release
- project:releng:ship-it:action:mark-as-shipped
- project:releng:ship-it:action:mark-as-started
- project:releng:ship-it:action:update-product-channel-version
- project:releng:ship-it:server:staging
- project:releng:signing:cert:dep-signing
- project:releng:signing:format:*
- project:releng:treescript:action:*
- project:releng:treescript:action:tagging
- queue:create-task:medium:proj-autophone/*
- queue:create-task:low:bitbar/gecko-t-*
- queue:create-task:low:scriptworker-prov-v1/depsigning-mac-v1
- queue:create-task:low:scriptworker-prov-v1/depsigning-mac-v1-dev
- queue:get-artifact:releng/partner/*
# TODO(bug 1824855): move mobile secrets into the gecko namespace
- secrets:get:project/mobile/firefox-android/android-components/firebase
- secrets:get:project/mobile/firefox-android/focus-android/firebase
- secrets:get:project/mobile/firefox-android/fenix/firebase
- secrets:get:project/mobile/ci/testrail
to:
- projects:
feature: gecko-roles
level: [1, 2, 3]
trust_domain: gecko
- grant:
- generic-worker:allow-rdp:gecko-1/b-win*
- generic-worker:allow-rdp:gecko-t/t-win*
- generic-worker:allow-rdp:gecko-1/win*
- generic-worker:allow-rdp:gecko-t/win*
- generic-worker:os-group:gecko-t/t-win7-32/Administrators
- generic-worker:os-group:gecko-t/t-win7-32-beta/Administrators
- generic-worker:os-group:gecko-t/t-win10-64/Administrators
- generic-worker:os-group:gecko-t/t-win10-64-alpha/Administrators
- generic-worker:os-group:gecko-t/t-win10-64-beta/Administrators
- generic-worker:os-group:gecko-t/win11-64-2009/Administrators
- generic-worker:os-group:gecko-t/win11-64-2009-alpha/Administrators
- generic-worker:run-as-administrator:gecko-t/t-win10-64
- generic-worker:run-as-administrator:gecko-t/t-win10-64-alpha
- generic-worker:run-as-administrator:gecko-t/t-win10-64-beta
- generic-worker:run-as-administrator:gecko-t/win11-64-2009-alpha
- generic-worker:run-as-administrator:gecko-t/win11-64-2009
- project:releng:addons.mozilla.org:server:staging
- project:releng:balrog:action:*
- project:releng:balrog:channel:*
- project:releng:balrog:server:dep
- project:releng:beetmover:action:*
- project:releng:beetmover:bucket:dep
- project:releng:beetmover:apt-repo:dep
- project:releng:beetmover:bucket:dep-partner
- project:releng:beetmover:bucket:maven-staging
- project:releng:bouncer:action:*
- project:releng:bouncer:server:staging
- project:releng:bouncer:server:staging-nazgul
- project:releng:flathub:firefox:mock
- project:releng:microsoftstore:mock
- project:releng:ship-it:action:create-new-release
- project:releng:ship-it:action:mark-as-shipped
- project:releng:ship-it:action:mark-as-started
- project:releng:ship-it:action:update-product-channel-version
- project:releng:ship-it:server:staging
- project:releng:signing:cert:dep-signing
- project:releng:signing:format:*
- project:releng:treescript:action:*
- project:releng:treescript:action:tagging
- queue:create-task:medium:proj-autophone/*
- queue:create-task:low:bitbar/gecko-t-*
- queue:create-task:low:scriptworker-prov-v1/depsigning-mac-v1
- queue:create-task:low:scriptworker-prov-v1/depsigning-mac-v1-dev
- queue:get-artifact:releng/partner/*
to:
- projects:
feature: gecko-roles
level: [1, 2, 3]
trust_domain: gecko
environments: staging
- grant:
- project:comm:thunderbird:releng:balrog:action:*
- project:comm:thunderbird:releng:balrog:server:dep
- project:comm:thunderbird:releng:beetmover:action:*
- project:comm:thunderbird:releng:beetmover:bucket:dep
- project:comm:thunderbird:releng:bouncer:action:*
- project:comm:thunderbird:releng:bouncer:server:staging
- project:comm:thunderbird:releng:bouncer:server:staging-nazgul
- project:comm:thunderbird:releng:ship-it:action:mark-as-shipped
- project:comm:thunderbird:releng:ship-it:action:mark-as-started
- project:comm:thunderbird:releng:ship-it:action:update-product-channel-version
- project:comm:thunderbird:releng:ship-it:server:staging
- project:comm:thunderbird:releng:signing:cert:dep-signing
- project:comm:thunderbird:releng:signing:format:*
- project:comm:thunderbird:releng:treescript:action:push
- project:comm:thunderbird:releng:treescript:action:tagging
- project:comm:thunderbird:releng:treescript:action:version_bump
- queue:create-task:low:scriptworker-prov-v1/tb-depsigning-mac-v1
- queue:get-artifact:project/comm/*
- secrets:get:project/comm/thunderbird/releng/build/level-1/*
to:
- projects:
feature: gecko-roles
level: [1, 2, 3]
trust_domain: comm
- grant:
- secrets:get:project/taskcluster/gecko/build/level-2/*
- secrets:get:project/civet/github-deploy-key
- queue:get-artifact:project/civet/*
to:
- projects:
feature: gecko-roles
level: [2, 3]
# moz-tree:level:3:*
- grant:
- secrets:get:project/taskcluster/gecko/build/level-3/*
- secrets:get:project/civet/github-deploy-key
- queue:get-artifact:project/civet/*
to:
- projects:
feature: gecko-roles
level: [3]
# moz-tree:level:3:gecko
- grant:
- auth:aws-s3:read-write:tc-gp-private-1d-us-east-1/releng/mbsdiff-cache/
- notify:slack-channel:*
- project:releng:addons.mozilla.org:server:production
- project:releng:signing:cert:nightly-signing
- project:releng:signing:cert:release-signing
- project:releng:signing:cert:release-apple-notarization
- queue:create-task:highest:proj-autophone/*
- queue:create-task:highest:scriptworker-prov-v1/depsigning-mac-v1
- queue:create-task:highest:scriptworker-prov-v1/signing-mac-v1
- queue:create-task:highest:scriptworker-prov-v1/mac-notarization-poller
- queue:route:index.gecko.heavyprofile.*
- queue:route:notify.email.release+tcstaging@mozilla.com.
- queue:route:notify.email.release-automation-notifications@mozilla.com.*
- secrets:get:project/mobile/firefox-android/fenix/nightly
- secrets:get:project/mobile/firefox-android/fenix/nightly-simulation
to:
- projects:
feature: gecko-roles
level: [3]
trust_domain: gecko
# moz-tree:level:3:comm
- grant:
# Thunderbird Sheriff's room
- notify:matrix-room:!TWztIhgqLawNpRBZTC:mozilla.org*
- queue:create-task:highest:scriptworker-prov-v1/tb-depsigning-mac-v1
- queue:create-task:highest:scriptworker-prov-v1/tb-signing-mac-v1
- queue:create-task:highest:scriptworker-prov-v1/tb-mac-notarization-poller
- secrets:get:project/comm/thunderbird/releng/build/level-3/*
to:
- projects:
feature: gecko-roles
level: [3]
trust_domain: comm
# tooltool downloads
- grant:
- docker-worker:relengapi-proxy:tooltool.download.internal
- docker-worker:relengapi-proxy:tooltool.download.public
- project:releng:services/tooltool/api/download/internal
- project:releng:services/tooltool/api/download/public
# This cache contains cached downloads from tooltool. Since tooltool is
# content-addressible, and verifies hashes on files in the cache, there is no
# risk of cache poisoning or collisions.
- docker-worker:cache:tooltool-cache
to:
- projects:
feature: gecko-roles
level: [1, 2, 3]
- grant:
# Allow the backfill action to trigger the per-push action that schedules the backfilled tasks.
- hooks:trigger-hook:project-{trust_domain}/in-tree-action-{level}-backfill/*
to:
- projects:
job: [action:backfill]
feature: [gecko-roles, gecko-actions]
level: [1, 2, 3]
##
# project-specific scopes (for esr's to hang onto their old scopes)
- grant:
- project:releng:balrog:server:beta
- project:releng:balrog:server:esr
- project:releng:balrog:server:release
- project:releng:beetmover:bucket:maven-production
- project:releng:beetmover:bucket:partner
- project:releng:beetmover:bucket:release
- project:releng:beetmover:apt-repo:release
- project:releng:bouncer:server:production
- project:releng:bouncer:server:production-nazgul
- project:releng:googleplay:product:fenix
- project:releng:googleplay:product:focus-android
- project:releng:ship-it:server:production
# XXX `fennec-production-signing` handles beta signing too.
- project:releng:signing:cert:fennec-production-signing
# `production-signing` handles mozillaonline signing
- project:releng:signing:cert:production-signing
- secrets:get:project/mobile/firefox-android/focus-android/beta
- secrets:get:project/mobile/firefox-android/focus-android/release
- secrets:get:project/mobile/firefox-android/fenix/beta
- secrets:get:project/mobile/firefox-android/fenix/release
- secrets:get:project/mobile/firefox-android/fenix/beta-mozillaonline
- secrets:get:project/mobile/firefox-android/fenix/release-mozillaonline
to:
- projects:
job: [action:release-promotion]
trust_domain: gecko
level: [3]
alias: [mozilla-esr128, mozilla-esr115, mozilla-release, mozilla-beta]
- grant:
- project:releng:googleplay:product:fenix
- project:releng:googleplay:product:focus-android
to:
- projects:
job: [action:googleplay]
trust_domain: gecko
level: [3]
alias: [mozilla-central]
# pushing RCs to beta
- grant:
- project:releng:flathub:firefox:stable
- project:releng:flathub:firefox:beta
to:
- projects:
job: [action:release-promotion]
trust_domain: gecko
level: [3]
alias: [mozilla-release]
- grant:
- project:releng:flathub:firefox:beta
to:
- projects:
job: [action:release-promotion]
trust_domain: gecko
level: [3]
alias: [mozilla-beta]
- grant:
- project:releng:microsoftstore:release
to:
- projects:
job: [action:release-promotion]
trust_domain: gecko
level: [3]
alias: [mozilla-release]
- grant:
- project:releng:microsoftstore:beta
to:
- projects:
job: [action:release-promotion]
trust_domain: gecko
level: [3]
alias: [mozilla-beta]
- grant:
- project:releng:ship-it:server:production
to:
- project:
job: [cron:daily-releases]
trust_domain: gecko
level: [3]
alias: [mozilla-beta]
- grant:
- hooks:trigger-hook:project-gecko/in-tree-action-3-merge-automation/*
to:
- project:
job: [cron:merge-beta-to-release-dry-run]
trust_domain: gecko
level: [3]
alias: [mozilla-beta]
- project:
job: [cron:merge-central-to-beta-dry-run]
trust_domain: gecko
level: [3]
alias: [mozilla-central]
- grant:
- queue:create-task:{priority}:scriptworker-k8s/gecko-3-tree
to:
- project:
job: [cron:l10n-bumper]
trust_domain: gecko
level: [3]
alias: [autoland]
- grant:
# Allow the scriptworker-canary cron hook to trigger the corresponding action.
- hooks:trigger-hook:project-{trust_domain}/in-tree-action-{level}-scriptworker-canary/*
to:
- project:
job: [cron:scriptworker-canary]
trust_domain: gecko
level: [3]
alias: [mozilla-central, autoland]
- grant:
# Allow the scriptworker-canary action to access the trybld-scriptworker key.
- secrets:get:project/releng/scriptworker/scriptworker-canary-sshkey
to:
- project:
job: [action:scriptworker-canary]
trust_domain: gecko
level: [3]
alias: [mozilla-central, autoland]
- grant:
# Allow the backfill-all-browsertime cron hook to trigger the backfill action.
- hooks:trigger-hook:project-{trust_domain}/in-tree-action-{level}-backfill/*
to:
- project:
job: [cron:backfill-all-browsertime]
trust_domain: gecko
level: [3]
alias: [autoland]
- grant:
- project:comm:thunderbird:releng:balrog:server:esr
to:
- project:
job: [action:release-promotion]
trust_domain: comm
level: [3]
alias: [comm-esr128, comm-esr115]
- grant:
- project:comm:thunderbird:releng:balrog:server:release
to:
- project:
job: [action:release-promotion]
trust_domain: comm
level: [3]
alias: [comm-release]
- grant:
- project:comm:thunderbird:releng:balrog:server:beta
to:
- project:
job: [action:release-promotion]
trust_domain: comm
level: [3]
alias: comm-beta
- grant:
- project:comm:thunderbird:releng:signing:cert:nightly-signing
- project:comm:thunderbird:releng:signing:cert:release-apple-notarization
to:
- project:
alias: comm-central
- grant:
- project:comm:thunderbird:releng:signing:cert:release-signing
- project:comm:thunderbird:releng:signing:cert:release-apple-notarization
to:
- project:
level: [3]
alias: [comm-esr128, comm-esr115, comm-release, comm-beta]
- grant:
- project:comm:thunderbird:releng:beetmover:bucket:release
- project:comm:thunderbird:releng:bouncer:server:production
- project:comm:thunderbird:releng:bouncer:server:production-nazgul
- project:comm:thunderbird:releng:ship-it:server:production
to:
- project:
job: [action:release-promotion]
trust_domain: comm
level: [3]
alias: [comm-esr128, comm-esr115, comm-release, comm-beta]
- grant:
- project:comm:thunderbird:releng:microsoftstore:release
to:
- projects:
job: [action:release-promotion]
trust_domain: comm
level: [3]
alias: [comm-esr128, comm-esr115, comm-release]
- grant:
- project:comm:thunderbird:releng:microsoftstore:beta
to:
- projects:
job: [action:release-promotion]
trust_domain: comm
level: [3]
alias: [comm-beta]
- grant:
- project:comm:thunderbird:releng:flathub:stable
to:
- projects:
job: [action:release-promotion]
trust_domain: comm
level: [3]
alias: [comm-esr128, comm-esr115, comm-release]
- grant:
- project:comm:thunderbird:releng:flathub:beta
to:
- projects:
job: [action:release-promotion]
trust_domain: comm
level: [3]
alias: [comm-beta]
- grant:
- project:releng:beetmover:bucket:nightly
- project:releng:balrog:server:nightly
to:
- project:
alias: [oak, cedar, pine, larch]
# grant relman access to trigger mozilla-central & mozilla-releases hooks
# bug 1899553: grant relman access to trigger google play pushes
# bug 1916613: grant relman access to trigger merge-automation actions
- grant:
- hooks:trigger-hook:project-releng/cron-task-mozilla-central*
- hooks:trigger-hook:project-releng/cron-task-releases-mozilla*
- hooks:trigger-hook:project-gecko/in-tree-action-3-googleplay/*
- hooks:trigger-hook:project-gecko/in-tree-action-3-merge-automation/*
to:
- groups:
- shipit_firefox
- grant:
# Bug 1523321: Token for mirroring webrender to github
- secrets:get:project/webrender-ci/wrupdater-github-token
# Bug 1604686: Token for gfx github sync.
- secrets:get:gecko/gfx-github-sync/token
# Bug 1751132: Token for rlbox github sync.
- secrets:get:gecko/rlbox-github-sync/token
# focus and fenix nightly builds
- secrets:get:project/mobile/firefox-android/focus-android/nightly
- secrets:get:project/mobile/firefox-android/fenix/nightly
to:
- project:
alias: mozilla-central
- grant:
# Bug 1698511: Sentry API key is stored in this secret
- secrets:get:project/engwf/gecko/{level}/tokens
to:
- project:
alias: [mozilla-central, try]
- grant:
# Grant engwf team access to secrets and artifacts for engwf
- secrets:get:project/engwf/*
- secrets:set:project/engwf/*
to:
- groups:
- engworkflow
- grant:
# Bug 1599870
- secrets:get:project/civet/github-deploy-key
- queue:get-artifact:project/civet/*
to:
- project:
alias:
- try
- grant:
# Bug 1618285 (Updatebot)
- secrets:get:project/updatebot/2/try-sshkey
- secrets:get:project/updatebot/2/phabricator-token
- secrets:get:project/updatebot/2/bugzilla-api-key
- secrets:get:project/updatebot/2/database-password
- secrets:get:project/updatebot/2/sentry-url
- secrets:get:project/updatebot/2/sql-proxy-config
- queue:get-artifact:project/updatebot/*
- hooks:trigger-hook:project-gecko/in-tree-action-1-generic/*
to:
- project:
alias:
- holly
level: 2
- grant:
# Bug 1618285 (Updatebot)
# Only grant the retrigger permission to -central/holly
- hooks:trigger-hook:project-gecko/in-tree-action-1-generic/*
to:
- project:
alias:
- mozilla-central
- holly
# This ensures that these are not granted to a level 1 repo
level: [2, 3]
- grant:
# Bug 1618285 (Updatebot)
- secrets:get:project/updatebot/3/try-sshkey
- secrets:get:project/updatebot/3/phabricator-token
- secrets:get:project/updatebot/3/bugzilla-api-key
- secrets:get:project/updatebot/3/database-password
- secrets:get:project/updatebot/3/sentry-url
- secrets:get:project/updatebot/3/sql-proxy-config
- queue:get-artifact:project/updatebot/*
to:
- project:
alias:
- mozilla-central
level: 3
- grant:
# Bug 1530376: Add scopes for Code Review bot in CI
- queue:route:project.relman.codereview.*
to:
- project:
alias: try
- grant:
# Bug 1800472: Allow try-comm-central to trigger code review bot
- queue:route:project.relman.codereview.*
to:
- project:
alias: try-comm-central
- grant:
# Bug 1876393: Allow mozilla-central to trigger tb-rust-update-check on comm-central
- hooks:trigger-hook:project-releng/cron-task-comm-central/tb-rust-vendor-check
to:
- project:
alias: mozilla-central
##
# Non-gecko tree projects
- grant:
- docker-worker:feature:allowPtrace
- queue:create-task:{priority}:releng-hardware/nss-{level}-b-*
- queue:route:index.docker.images.v1.{alias}.*
- project:releng:services/tooltool/api/download/internal
- project:releng:services/tooltool/api/download/public
to:
- project:
trust_domain: nss
- grant:
# These are public
- secrets:get:project/taskcluster/gecko/hgfingerprint
- secrets:get:project/taskcluster/gecko/hgmointernal
# Allow fetching secrets appropriate to this level
- secrets:get:project/{trust_domain}/level-{level}/*
- secrets:get:project/{trust_domain}/level-any/*
# Allow a sensible scheduler-id
- queue:scheduler-id:{trust_domain}-level-{level}
# Allows cancelling tasks with that scheduler-id
- queue:cancel-task:{trust_domain}-level-{level}/*
# Allow reruning tasks with that scheduler-id
- queue:rerun-task:{trust_domain}-level-{level}/*
# Allow creating tasks on workers associated to the trust-domain
- queue:create-task:{priority}:{trust_domain}-{level}/*
- queue:create-task:{priority}:{trust_domain}-t/*
- queue:create-task:{priority}:releng-hardware/{trust_domain}-b-{level}-*
- queue:create-task:{priority}:built-in/*
to:
- project:
feature: trust-domain-scopes
- grant:
# routes to support locating tasks that create specific versions of artifacts
# (toolchains, etc.)
- queue:route:index.{trust_domain}.cache.level-{level}.*
- index:insert-task:{trust_domain}.cache.level-{level}.*
# allow using worker caches appropriate to this trust domain and level
- docker-worker:cache:{trust_domain}-level-{level}-*
- generic-worker:cache:{trust_domain}-level-{level}-*
to:
- project:
feature: trust-domain-scopes
has_trust_project: false
- grant:
# routes to support locating tasks that create specific versions of artifacts
# (toolchains, etc.)
- queue:route:index.{trust_domain}.v2.{trust_project}.cache.level-{level}.*
- index:insert-task:{trust_domain}.v2.{trust_project}.cache.level-{level}.*
# allow fetching secrets appropriate to this level
- secrets:get:project/{trust_domain}/{trust_project}/level-{level}/*
- secrets:get:project/{trust_domain}/{trust_project}/level-any/*
# allow using worker caches appropriate to this trust domain and level
- docker-worker:cache:{trust_domain}-project-{trust_project}-level-{level}-*
- generic-worker:cache:{trust_domain}-project-{trust_project}-level-{level}-*
to:
- project:
feature: trust-domain-scopes
has_trust_project: true
- grant:
# routes to support locating tasks that create specific versions of artifacts
# (toolchains, etc.)
- queue:route:index.{trust_domain}.cache.pr.*
- index:insert-task:{trust_domain}.cache.pr.*
# Legacy routes, remove once all projects are on Taskgraph 8+
- queue:route:index.{trust_domain}.cache.head.*
- index:insert-task:{trust_domain}.cache.head.*
to:
- project:
job: [pull-request:*]
feature: trust-domain-scopes
has_trust_project: false
- grant:
# routes to support locating tasks that create specific versions of artifacts
# (toolchains, etc.)
- queue:route:index.{trust_domain}.v2.{trust_project}.cache.pr.*
- index:insert-task:{trust_domain}.v2.{trust_project}.cache.pr.*
# Legacy routes, remove once all projects are on Taskgraph 8+
- queue:route:index.{trust_domain}.v2.{trust_project}.cache.head.*
- index:insert-task:{trust_domain}.v2.{trust_project}.cache.head.*
to:
- project:
job: [pull-request:*]
feature: trust-domain-scopes
has_trust_project: true
- grant:
# routes to support indexing by product
- queue:route:index.{trust_domain}.v2.{alias}.*
- index:insert-task:{trust_domain}.v2.{alias}.*
to:
- project:
include_pull_requests: false
feature: trust-domain-scopes
- grant:
# needed by Github service's auto-cancel feature
- queue:cancel-task-group:{trust_domain}-level-1/*
- queue:seal-task-group:{trust_domain}-level-1/*
# routes to support indexing by product
- queue:route:index.{trust_domain}.v2.{alias}-pr.*
- index:insert-task:{trust_domain}.v2.{alias}-pr.*
to:
- project:
job: [pull-request:*]
feature: trust-domain-scopes
- grant:
# routes to support reporting to treeherder
- queue:route:tc-treeherder-stage.{alias}.*
- queue:route:tc-treeherder.{alias}.*
- queue:route:tc-treeherder-stage.v2.{alias}.*
- queue:route:tc-treeherder.v2.{alias}.*
to:
- project:
feature: treeherder-reporting
include_pull_requests: false
- grant:
# routes to support reporting to treeherder
- queue:route:tc-treeherder-stage.v2.{alias}-pr.*
- queue:route:tc-treeherder.v2.{alias}-pr.*
to:
- project:
job: [pull-request:*]
feature: treeherder-reporting
- grant:
- queue:route:tc-treeherder-stage.v2.{alias}-pr.*
- queue:route:tc-treeherder.v2.{alias}-pr.*
to:
- project:
job: [pr-action:*]
feature:
- treeherder-reporting
- pr-actions
- grant:
- secrets:get:project/releng/taskgraph/ci
to:
- project:
alias: taskgraph
job: [action:*, branch:*, pull-request:trusted, release:*]
- grant:
- secrets:get:project/releng/taskgraph/mozilla-taskgraph/ci
to:
- project:
alias: mozilla-taskgraph
job: [action:*, branch:*, pull-request:trusted, release:*]
- grant: