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 caching support for GCE via GCS and AWS V2-compatible signed URL #680

Merged
merged 94 commits into from Apr 7, 2016

Conversation

BanzaiMan
Copy link
Contributor

This PR adds caching support for GCE.

Using cache_settings (see travis-ci/travis-scheduler#14) in the build payload, we configure a subclass of DirectoryCache for caching.

Tests:

AWS has a peculiar rule about the bucket's hostname depending
on the region it resides in.

This is not extendable to other service providers, so we
devise a means of varying such a rule based on the
implementation.
Also add Gcs specs (most signature specs fail at
the moment).
This makes the intent of this method clearer.
String is not useful here
It is not used
Using the example in http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html#RESTAuthenticationExamples

StringToSign:

```
GET\n
\n
\n
Tue, 27 Mar 2007 19:36:42 +0000\n
/johnsmith/photos/puppy.jpg
```

Request:

```
GET /photos/puppy.jpg HTTP/1.1
Host: johnsmith.s3.amazonaws.com
Date: Tue, 27 Mar 2007 19:36:42 +0000
Authorization: AWS AKIAIOSFODNN7EXAMPLE:bWq2s1WEIj+Ydj0vQ697zp+IXMU=
```
scheduler puts this on the wire, for testing purposes
logger doesn't seem available
We changed the payload put in by scheduler
@theuni
Copy link

theuni commented Mar 24, 2016

nice!

@BanzaiMan BanzaiMan deployed to org-production April 4, 2016 21:18 Active
@BanzaiMan BanzaiMan deployed to com-production April 4, 2016 21:19 Active
@BanzaiMan BanzaiMan deployed to com-production April 7, 2016 07:39 Active
@BanzaiMan BanzaiMan merged commit 9d9f632 into master Apr 7, 2016
@BanzaiMan BanzaiMan deleted the ha-feature-aws-v2-signature-debug-expires branch April 9, 2016 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants