Closed
Bug 1093452
Opened 11 years ago
Closed 11 years ago
taskcluster-base: Should not require auth:credentials scopes
Categories
(Taskcluster :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: jlal, Unassigned)
Details
While working on the dockerhost-worker I found that I needed this scope to use TC base https://github.com/taskcluster/taskcluster-base/blob/bccdb70ecadefba58cfafd15245e5a23650792c6/api.js#L280 (auth:credentials) which _appears_ to allow me to fetch the accessToken for _any_ clientId I know about.
This seems pretty sketchy when we have auth:inspect which simply allows returning the scopes.
| Reporter | ||
Comment 1•11 years ago
|
||
Any ideas (or is this just a bug/configuration issue) ? I want to use TC base but in my case allowing auth:credentials is pretty bad.
Flags: needinfo?(jopsen)
Comment 2•11 years ago
|
||
You can validate an HMAC signature without the shared secret.
You can still use taskcluster-base API utilities... Just make a custom implementation of `clientLoader` and can be provided as argument in the setup... auth.taskcluster.net does this.
Instead of loading clients from auth.tc.net as the default clientLoader does, you just return clients from a JSON object. In your case the object is provided via. task.payload and is encrypted using openpgp.js.
Remember to embed taskId, deadline and creation time in the signature... See the bug on encrypted environment variables it explains in detail how to avoid Trudy decrypting it by submitting another or a similar task...
Note, people should obviously not include their own clientId/accessToken in the task.payload, they should generate a random clientId and a random accessToken. This random set of credentials will be unique to the specific task they upload...
Note, the context of this is that James is working on a worker that offers an API after it has started.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(jopsen)
Resolution: --- → INVALID
Updated•10 years ago
|
Component: TaskCluster → General
Product: Testing → Taskcluster
Target Milestone: --- → mozilla41
Version: unspecified → Trunk
Comment 3•10 years ago
|
||
Resetting Version and Target Milestone that accidentally got changed...
Target Milestone: mozilla41 → ---
Version: Trunk → unspecified
You need to log in
before you can comment on or make changes to this bug.
Description
•