aws-sdk-sns 1.43.0 → 1.46.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sns/client.rb +1 -1
- data/lib/aws-sdk-sns/message_verifier.rb +11 -1
- data/lib/aws-sdk-sns.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 756ae37a5889108ac671a0e89253346d59cdce05a4d953c99c35707fa9985360
|
4
|
+
data.tar.gz: 8eceb2ccbec4970c892b82ccdc9ac5108406a2594c4d42fa36ff9e28a62a77e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08c4aa5d0c329442b32f1bede3c2db18bde31b8c96698d40f5bdafec1101d1f6d4f924c24a28de6a79b110a84128664682c127ff64eb486f432b1b286b24fecf'
|
7
|
+
data.tar.gz: 244e35483fbabc28fa9f56c5564073116f7ebadf0b6d01010661fe59659fd8b7d34b69e19e6071aef21572822aefbfdc34b8be1cac3f51a5b504544bc108ce5b
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.46.0 (2021-10-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.45.1 (2021-10-15)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Issue - Add additional validation to the SNS SigningCert.
|
13
|
+
|
14
|
+
1.45.0 (2021-09-01)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.44.0 (2021-07-30)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.43.0 (2021-07-28)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.46.0
|
data/lib/aws-sdk-sns/client.rb
CHANGED
@@ -123,7 +123,9 @@ module Aws
|
|
123
123
|
|
124
124
|
def download_pem(uri)
|
125
125
|
verify_uri!(uri)
|
126
|
-
https_get(uri)
|
126
|
+
pem = https_get(uri)
|
127
|
+
verify_pem_format!(pem)
|
128
|
+
pem
|
127
129
|
end
|
128
130
|
|
129
131
|
def verify_uri!(uri)
|
@@ -153,6 +155,14 @@ module Aws
|
|
153
155
|
end
|
154
156
|
end
|
155
157
|
|
158
|
+
def verify_pem_format!(pem)
|
159
|
+
cert_regex = /\A[\s]*-----BEGIN [A-Z]+-----\n[A-Za-z\d+\/\n]+[=]{0,2}\n-----END [A-Z]+-----[\s]*\Z/
|
160
|
+
unless pem =~ cert_regex
|
161
|
+
msg = 'The certificate does not match expected X509 PEM format.'
|
162
|
+
raise VerificationError, msg
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
156
166
|
def https_get(uri, failed_attempts = 0)
|
157
167
|
args = []
|
158
168
|
args << uri.host
|
data/lib/aws-sdk-sns.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-sns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.46.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-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.121.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.121.2
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
81
|
requirements:
|
82
82
|
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: '
|
84
|
+
version: '2.3'
|
85
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|