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 support for Signed Urls in Tachyon #153

Merged
merged 2 commits into from
Apr 21, 2020
Merged

Conversation

joehoyle
Copy link
Member

Currently we have mix between using path-type and subdomain-style S3 bucket urls in Local Server. Because Tachyon, and the WordPress application use different URLs patterns, it means the Signed URLs generated between them are not compatible (the url path is part of the signature, so the path has to be the same in both).

We've sinse added support for loop-back requests to the S3 container on the proxy network, so we can now use the "s3-$project.altis.dev" hostname from the Tahcyon container, matching the hostname we use from the WordPress applicatio container. It also means we don't need to change the behaviour of the S3 SDK to special-case local development.

Currently we have  mix between using path-type and subdomain-style S3 bucket urls in Local Server. Because Tachyon, and the WordPress application use different URLs patterns, it means the Signed URLs generated between them are not compatible (the url path is part of the signature, so the path has to be the same in both).

We've sinse added support for loop-back requests to the S3 container on the proxy network, so we can now use the "s3-$project.altis.dev" hostname from the Tahcyon container, matching the hostname we use from the WordPress applicatio container. It also means we don't need to change the behaviour of the S3 SDK to special-case local development.
Copy link

@hm-linter hm-linter bot left a comment

Choose a reason for hiding this comment

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

Linting failed (4 errors).

4 notices occurred in your codebase, but none on files/lines included in this PR.

@joehoyle joehoyle requested a review from rmccue April 20, 2020 13:10
Copy link
Member

@rmccue rmccue left a comment

Choose a reason for hiding this comment

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

Not sure what I'm really reviewing here, but sure.

@joehoyle joehoyle merged commit ceda09c into master Apr 21, 2020
@joehoyle joehoyle deleted the tachyon-signed-urls branch April 21, 2020 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants