Switch to AWS v4 signatures #5

Merged
basti merged 9 commits from feature/aws_v4_signatures into master 2023-11-21 14:19:38 +00:00
Owner

closes #3

closes #3
basti added 3 commits 2023-11-15 18:16:16 +00:00
raucao added 1 commit 2023-11-16 10:15:01 +00:00
raucao added 1 commit 2023-11-16 10:27:35 +00:00
raucao added 1 commit 2023-11-16 10:39:46 +00:00
raucao added 1 commit 2023-11-16 10:42:12 +00:00
raucao added 1 commit 2023-11-16 10:45:25 +00:00
raucao added 1 commit 2023-11-16 11:40:03 +00:00
galfert approved these changes 2023-11-21 13:18:15 +00:00
galfert left a comment
Owner

Looks all good to me 👍

Looks all good to me 👍
@ -3,3 +2,3 @@
WORKDIR /liquorcabinet
ENV RACK_ENV=staging
ENV RACK_ENV=production
Owner

Is this change intentional?

Is this change intentional?
Author
Owner

Yes, I think default should be production.

Yes, I think default should be production.
basti marked this conversation as resolved
@ -89,3 +78,1 @@
def hmac(key, value)
OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha1'), key, value)
def auth_headers_for(http_method, url, headers, data = nil)
Owner

The headers param could be made optional as well, then you wouldn't need to add an empty hash for the calls in do_head_request and do_delete_request.

auth_headers_for(http_method, url, headers = {}, data = nil)
The `headers` param could be made optional as well, then you wouldn't need to add an empty hash for the calls in `do_head_request` and `do_delete_request`. ```rb auth_headers_for(http_method, url, headers = {}, data = nil) ```
basti marked this conversation as resolved
raucao added 1 commit 2023-11-21 14:18:26 +00:00
basti merged commit 8b6f201a0b into master 2023-11-21 14:19:38 +00:00
basti deleted branch feature/aws_v4_signatures 2023-11-21 14:19:42 +00:00
Sign in to join this conversation.
No description provided.