-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow to use AWS Signature v1 for creating signed AWS urls #998
Conversation
57426e4
to
ab95b00
Compare
Could you add documentation for how the user would provide the algorithm version? |
Did you implement the v1 signing algorithm yourself or find it in another go project somewhere? |
Thanks! It may also be worth calling out on, in case a provider doesn't support v4 signing. https://github.com/heptio/ark/blob/master/docs/support-matrix.md#s3-compatible-backup-storage-providers |
Done |
} | ||
|
||
func (v1 *signer) Sign() error { | ||
credValue, err := v1.Credentials.Get() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Call this credentials?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about credentialsValue
? credentials
would clash with the imported package name.
@bashofmann LGTM here. You'll need to add an entry to @skriss please do a final review. Once Steve is 👍, please squash down to 1 commit and make sure it has the signoff. Thanks! |
LGTM pending |
Some aws implementations, for example the quobyte object storage, do not support the v4 signing algorithm, but only v1. This makes it possible to configure the signatureVersion. The algorithm implementation was ported from https://github.com/oNestLab/botocore/blob/d6c1be296e8cfe0706cb0c8bbcad9c095d0f4d09/botocore/auth.py#L860-L862 which is used by the aws CLI client. This fixes vmware-tanzu#811. Signed-off-by: Bastian Hofmann <bashofmann@gmail.com>
1806971
to
e13806e
Compare
Some s3 implementations, for example the quobyte object storage, do not
support the v4 signing algorithm, but only v1.
This makes it possible to configure the signatureVersion.
The algorithm implementation was ported from https://github.com/oNestLab/botocore/blob/d6c1be296e8cfe0706cb0c8bbcad9c095d0f4d09/botocore/auth.py#L860-L862
which is used by the aws CLI client.
This fixes #811.