Closed Bug 1597329 Opened 6 years ago Closed 6 years ago

application-services: Cannot kick release off because of missing scope

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jlorenzo, Assigned: jlorenzo)

References

(Regression)

Details

Attachments

(2 files)

Submitting the task to Taskcluster failed. Details

Taskcluster-GitHub attempted to create a task for this event with the following scopes:

[
  "assume:repo:github.com/mozilla/application-services:release",
  "queue:route:statuses",
  "queue:scheduler-id:taskcluster-github"
]

The expansion of these scopes is not sufficient to create the task, leading to the following:

Client ID static/taskcluster/github does not have sufficient scopes and is missing the following scopes:

{
  "AllOf": [
    "queue:create-task:scriptworker-k8s/appservices-3-signing",
    "queue:create-task:highest:scriptworker-k8s/appservices-3-beetmover"
  ]
}

This request requires the client to satisfy the following scope expression:

{
  "AllOf": [
    "queue:create-task:highest:app-services-3/b-linux",
    "queue:create-task:highest:app-services-3/images",
    "queue:route:statuses",
    "queue:route:notify.email.*",
    "queue:scheduler-id:taskcluster-github",
    "queue:route:index.project.application-services.*",
    "docker-worker:cache:application-services-*",
    "project:releng:services/tooltool/api/download/internal",
    "project:mozilla:application-services:releng:beetmover:action:push-to-maven",
    "project:mozilla:application-services:releng:signing:cert:release-signing",
    "queue:create-task:scriptworker-k8s/appservices-3-signing",
    "secrets:get:project/application-services/symbols-token",
    "project:mozilla:application-services:releng:beetmover:bucket:maven-production",
    "queue:create-task:highest:scriptworker-k8s/appservices-3-beetmover",
    "queue:route:statuses",
    {
      "AnyOf": [
        {
          "AllOf": [
            "queue:scheduler-id:taskcluster-github",
            {
              "AnyOf": [
                "queue:create-task:highest:app-services-3/decision"
              ]
            }
          ]
        }
      ]
    }
  ]
}
* method:     createTask

* errorCode:  InsufficientScopes

* statusCode: 403

* time:       2019-11-18T16:22:27.967Z

https://github.com/mozilla/application-services/commit/b88630040b32c99b183bf00e738c2f6ca30818a5#commitcomment-36010306

The error is because GCP[1] and ci-admin[2][3] have different assumptions regarding the name scheme.

Mihai agreed we should eventually follow ci-admin's. In the meantime, I'm going to add more scopes so it unblocks the release. I'll clean this up later.

[1] https://github.com/mozilla/application-services/pull/2147/files#diff-ac0229d1171c0983b27003af4c7441a5R190
[2] https://hg.mozilla.org/ci/ci-configuration/file/f11b90a46659e947183411a0c7f7fd133db1990c/grants.yml#l1197
[3] https://hg.mozilla.org/ci/ci-configuration/file/f11b90a46659e947183411a0c7f7fd133db1990c/projects.yml#l496

Because it doesn't carry any mobile-specific roles but it does add some github scopes

Marking this bug as fixed (which is the case). Let's do the followups in another bug.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Blocks: 1605212
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: