Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add anonymous scopes to services #3704

Closed
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions services/auth/src/static-scopes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{
"clientId": "static/taskcluster/built-in-workers",
"scopes": [
"assume:anonymous",
"assume:worker-id:built-in/*",
"queue:claim-work:built-in/*",
"queue:resolve-task",
Expand All @@ -11,6 +12,7 @@
{
"clientId": "static/taskcluster/github",
"scopes": [
"assume:anonymous",
"assume:repo:github.com/*",
"assume:scheduler-id:taskcluster-github/*",
"queue:route:checks",
Expand All @@ -21,6 +23,7 @@
{
"clientId": "static/taskcluster/hooks",
"scopes": [
"assume:anonymous",
"assume:hook-id:*",
"notify:email:*",
"queue:create-task:*"
Expand All @@ -29,6 +32,7 @@
{
"clientId": "static/taskcluster/index",
"scopes": [
"assume:anonymous",
"queue:get-artifact:*"
]
},
Expand Down Expand Up @@ -56,6 +60,7 @@
{
"clientId": "static/taskcluster/web-server",
"scopes": [
"assume:anonymous",
"assume:github-org-admin:*",
"assume:github-team:*",
"assume:login-identity:*",
Expand All @@ -78,6 +83,7 @@
{
"clientId": "static/taskcluster/worker-manager",
"scopes": [
"assume:anonymous",
"assume:worker-id:*",
"assume:worker-pool:*",
"assume:worker-type:*",
Expand Down
1 change: 1 addition & 0 deletions services/built-in-workers/scopes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
- assume:worker-id:built-in/*
- queue:worker-id:built-in/*
- queue:resolve-task
- assume:anonymous
1 change: 1 addition & 0 deletions services/github/scopes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
- queue:route:statuses
- queue:route:checks
- assume:scheduler-id:taskcluster-github/*
- assume:anonymous
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: git will complain without a newline at the end of the file, here and other places.

1 change: 1 addition & 0 deletions services/hooks/scopes.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- assume:hook-id:*
- notify:email:*
- queue:create-task:*
- assume:anonymous
1 change: 1 addition & 0 deletions services/index/scopes.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- queue:get-artifact:*
- assume:anonymous
1 change: 1 addition & 0 deletions services/web-server/scopes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
- auth:reset-access-token:github/*
- auth:update-client:github/*
- assume:login-identity:*
- assume:anonymous
1 change: 1 addition & 0 deletions services/worker-manager/scopes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
- queue:worker-id:*
- worker-manager:remove-worker:*
- worker-manager:reregister-worker:*
- assume:anonymous