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

Fix Overwriting CORS Rules for S3 Direct Uploads #358

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

tubbo
Copy link
Contributor

@tubbo tubbo commented Feb 11, 2020

Workarea previously replaced the existing CORS configuration on the S3
bucket used for storing direct uploads with its own, which caused issues
for environments that share an S3 bucket between servers (such as ad-hoc
demo servers or low-traffic "all-in-one" instances). Instead of
replacing the entire configuration, Workarea now reads the existing
allowed hosts configuration and appends its own onto the end, preserving
the configuration that previously existed. This should address the
problem wherein if another server attempts a direct upload, it can
revoke the access from previous servers to upload to the S3 bucket,
since they were no longer in the CORS configuration.

@tubbo tubbo force-pushed the WORKAREA-209-fix-cors-overwriting branch from 042b0ef to 2aeef43 Compare February 11, 2020 22:30
Copy link
Contributor

@bencrouse bencrouse left a comment

Choose a reason for hiding this comment

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

Arg, just saw the build failures... :(

Workarea previously replaced the existing CORS configuration on the S3
bucket used for storing direct uploads with its own, which caused issues
for environments that share an S3 bucket between servers (such as ad-hoc
demo servers or low-traffic "all-in-one" instances). Instead of
replacing the entire configuration, Workarea now reads the existing
allowed hosts configuration and appends its own onto the end, preserving
the configuration that previously existed. This should address the
problem wherein if another server attempts a direct upload, it can
revoke the access from previous servers to upload to the S3 bucket,
since they were no longer in the CORS configuration.

WORKAREA-209
@tubbo tubbo force-pushed the WORKAREA-209-fix-cors-overwriting branch from 2aeef43 to b1ee60c Compare February 12, 2020 16:26
@tubbo
Copy link
Contributor Author

tubbo commented Feb 12, 2020

whoops, forgot to mock it out in the system test. should be OK now.

@bencrouse bencrouse merged commit 63f80fd into v3.4-stable Feb 13, 2020
@bencrouse bencrouse deleted the WORKAREA-209-fix-cors-overwriting branch February 13, 2020 14:16
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