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

Pull all required headers to be signed. #134

Merged
merged 1 commit into from
Aug 8, 2016

Conversation

LaurenSpiegel
Copy link
Contributor

@LaurenSpiegel LaurenSpiegel commented Aug 6, 2016

@alexandre-merle
Copy link
Contributor

Related to S3 open issue scality/cloudserver#120 :)

Object.assign(request.headers, request._headers);
const signedHeaders = Object.keys(request._headers)
.filter(headerName =>
headerName.startsWith('x-amz-') || headerName.startsWith('x-scal')
Copy link
Contributor

Choose a reason for hiding this comment

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

x-amz is enought since it's x-amz-scal for custom headers :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I include both in the required headers test in case x-scal headers are created later.

Copy link
Contributor

Choose a reason for hiding this comment

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

why not :)

@alexandre-merle
Copy link
Contributor

two minor comments :) 👍

@LaurenSpiegel LaurenSpiegel force-pushed the ft/dynamicSignedHeaders branch from f460fbc to 201f54d Compare August 6, 2016 22:00
@LaurenSpiegel LaurenSpiegel force-pushed the ft/dynamicSignedHeaders branch from 201f54d to 18d657b Compare August 6, 2016 22:01
@LaurenSpiegel
Copy link
Contributor Author

@DavidPineauScality and @AntoninCoulibaly, note this has a small impact on #119

@LaurenSpiegel LaurenSpiegel force-pushed the ft/dynamicSignedHeaders branch from 5035dd4 to 18d657b Compare August 6, 2016 23:03
@LaurenSpiegel
Copy link
Contributor Author

end to end passed http://ci.ironmann.io/gh/scality/Integration/2545

@MathieuCassagne
Copy link
Contributor

LGTM 👍

@rahulreddy rahulreddy merged commit 3fabe74 into master Aug 8, 2016
@rahulreddy rahulreddy deleted the ft/dynamicSignedHeaders branch August 8, 2016 16:30
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.

4 participants