Closed Bug 1405889 Opened 7 years ago Closed 7 years ago

fetching private artifacts through taskcluster-proxy doesn't work

Categories

(Taskcluster :: Workers, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jonasfj, Assigned: pmoore)

References

Details

Attachments

(2 files)

A) Auth issue $ curl -L http://taskcluster/queue.taskcluster.net/v1/task/.../artifacts/... causes 403 from S3, because taskcluster-client-go always attaches: content-type: application/json regardless of whether or not there is a body (GET requests never have a body). And golang (net/http) forwards the content-type header causing the StringToSign that S3 computes to change, rendering the signature invalid. B) taskcluster-proxy doesn't stream the response, so downloading a large artifact would run it out of memory
Commit pushed to master at https://github.com/taskcluster/taskcluster-client-go https://github.com/taskcluster/taskcluster-client-go/commit/7450d4c392165a03bd7cc982a5b13de3788be405 Merge pull request #21 from taskcluster/bug-1405889 Bug 1405889 - only set content-type of there is a body
Released in taskcluster-proxy 4.0.1/latest: https://hub.docker.com/r/taskcluster/taskcluster-proxy/tags/
Attachment #8915571 - Flags: review?(garndt)
This is a new integration test in taskcluster-proxy that checks that a private artifact can be retrieved. Note, the test fails without the taskcluster-client-go patch with the same error that :nalexander had, I believe (see the PR for the output). When applying the fix in taskcluster-client-go, the test passes.
Assignee: nobody → pmoore
Status: NEW → ASSIGNED
Attachment #8915694 - Flags: review?(garndt)
Attachment #8915571 - Flags: review?(garndt) → review+
Attachment #8915694 - Flags: review?(garndt) → review+
Docker worker change has been merged, but not deployed. Deployment can happen Monday morning.
Docker worker changes were rolled out yesterday to use the new proxy (which fixes problem A in the description, but not problem B). Any new docker-worker instance will be using this new proxy.
Found in triage. Pete: are you still working on this? What's left to do?
(In reply to Chris Cooper [:coop] from comment #11) > Found in triage. > > Pete: are you still working on this? What's left to do? All done!
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Component: Docker-Worker → Workers
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: