aws-sigv4 1.2.3 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sigv4/signer.rb +8 -2
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46dbb72f9e31ff1022703f91ae7e1d2cfe78c78629e682fe99468933704aff62
|
4
|
+
data.tar.gz: 963db4a8f39031b64398dea0d2ebc7167af20e79446e23bfd270c6cb85d4738f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0142942e58db9971d8ceaa2aeb7c97d1cd58bdba463366fd06831b1769a3c124f6e1f1b082c4d1b5917f794ab70556f6bd78dbb67824a35e74ccbfc5bdaafa25'
|
7
|
+
data.tar.gz: aca23ad7a8a98f24abdbbaa2afe9cde1430a7a10f627b63d7da56939665056ccc7a04226dc14e3793e3848032291aba990fc10576369f3974911593566ea9262
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.4.0 (2021-09-02)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - add `signing_algorithm` option with `sigv4` default.
|
8
|
+
|
9
|
+
1.3.0 (2021-09-01)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - AWS SDK for Ruby no longer supports Ruby runtime versions 1.9, 2.0, 2.1, and 2.2.
|
13
|
+
|
14
|
+
1.2.4 (2021-07-08)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Issue - Fix usage of `:uri_escape_path` and `:apply_checksum_header` in `Signer`.
|
18
|
+
|
4
19
|
1.2.3 (2021-03-04)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.4.0
|
data/lib/aws-sigv4/signer.rb
CHANGED
@@ -127,7 +127,13 @@ module Aws
|
|
127
127
|
@unsigned_headers << 'x-amzn-trace-id'
|
128
128
|
@unsigned_headers << 'expect'
|
129
129
|
[:uri_escape_path, :apply_checksum_header].each do |opt|
|
130
|
-
instance_variable_set("@#{opt}", options.key?(opt) ? !!options[
|
130
|
+
instance_variable_set("@#{opt}", options.key?(opt) ? !!options[opt] : true)
|
131
|
+
end
|
132
|
+
|
133
|
+
if options[:signing_algorithm] == :sigv4a
|
134
|
+
raise ArgumentError, 'You are attempting to sign a' \
|
135
|
+
' request with sigv4a which requires aws-crt and version 1.4.0.crt or later of the aws-sigv4 gem.'\
|
136
|
+
' Please install the gem or add it to your gemfile.'
|
131
137
|
end
|
132
138
|
end
|
133
139
|
|
@@ -391,8 +397,8 @@ module Aws
|
|
391
397
|
params['X-Amz-Credential'] = credential(creds, date)
|
392
398
|
params['X-Amz-Date'] = datetime
|
393
399
|
params['X-Amz-Expires'] = extract_expires_in(options)
|
394
|
-
params['X-Amz-SignedHeaders'] = signed_headers(headers)
|
395
400
|
params['X-Amz-Security-Token'] = creds.session_token if creds.session_token
|
401
|
+
params['X-Amz-SignedHeaders'] = signed_headers(headers)
|
396
402
|
|
397
403
|
params = params.map do |key, value|
|
398
404
|
"#{uri_escape(key)}=#{uri_escape(value)}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sigv4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-eventstream
|
@@ -50,8 +50,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
|
|
50
50
|
licenses:
|
51
51
|
- Apache-2.0
|
52
52
|
metadata:
|
53
|
-
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
54
|
-
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
53
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sigv4
|
54
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sigv4/CHANGELOG.md
|
55
55
|
post_install_message:
|
56
56
|
rdoc_options: []
|
57
57
|
require_paths:
|
@@ -60,15 +60,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '
|
63
|
+
version: '2.3'
|
64
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
|
-
|
71
|
-
rubygems_version: 2.7.6.2
|
70
|
+
rubygems_version: 3.1.6
|
72
71
|
signing_key:
|
73
72
|
specification_version: 4
|
74
73
|
summary: AWS Signature Version 4 library.
|