Closed Bug 1786866 Opened 4 years ago Closed 3 years ago

Support `pull-request-untrusted` roles

Categories

(Release Engineering :: Firefox-CI Administration, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ahal, Assigned: ahal)

References

Details

Attachments

(2 files, 1 obsolete file)

Taskcluster has a new pullRequests policy called public_restricted.

It is a middle ground between the public policy (non-collaborator pull requests can run everything) and the collaborators policy (non-collaborator pull requests can run nothing). When the public_restricted policy is used, non-collaborator pull requests will assume a separate role from collaborator pull requests. The former will have -untrusted appended to the end of the role name.

In this way, it's possible to assign separate scopes to the two types of pull requests. Thus allowing us to block sensitive scopes for untrusted pull requests without blocking tasks that are otherwise safe to run (e.g, builds and tests).

This bug will implement support for these new pull-request-untrusted roles in ci-admin.

Taskcluster has a new pullRequests policy called public_restricted.

It is a middle ground between the public policy (non-collaborator pull requests
can run everything) and the collaborators policy (non-collaborator pull
requests can run nothing). When the public_restricted policy is used,
non-collaborator pull requests will assume a separate role from collaborator
pull requests. The former will have -untrusted appended to the end of the role
name.

In this way, it's possible to assign separate scopes to the two types of pull
requests. Thus allowing us to block sensitive scopes for untrusted pull
requests without blocking tasks that are otherwise safe to run (e.g, builds and
tests).

Attachment #9291355 - Attachment description: WIP: Bug 1786866 - Support 'pull-request-untrusted' roles → WIP: Bug 1786866 - Support 'pull-request-untrusted' roles (approach #2)
Attachment #9294938 - Attachment description: WIP: Bug 1786866 - Support the 'public_restricted' pullRequest policy (approach #1) → Bug 1786866 - Support the 'public_restricted' pullRequest policy, r?#releng-reviewers
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/ci/ci-configuration/rev/264f0a154aad Support the 'public_restricted' pullRequest policy, r=releng-reviewers,aki,jcristau
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/ci/ci-configuration/rev/37568e5e5748 Switch taskgraph project to the 'public_restricted' pullRequest policy, r=releng-reviewers,gabriel
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Attachment #9291355 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: