aws-sdk-sns 1.45.0 → 1.45.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f913b5f3c0ba17afa834fb78fcde43cfc4c8024ea3c7b401713314cc4d7c0d5e
|
4
|
+
data.tar.gz: afc25a5ee4c68f85487718be1230a4bb27c4539314a07b1a4782c2db892f39d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 270e5dce033d50fea82f24b49acb3e6a7f3daf5d9550693e1246b0084fd2bb32f26fcdd567592fc225003118ad39ee591279c3537b46360abbbaf0ae24e6a6d0
|
7
|
+
data.tar.gz: d4d03b1b66ab7b14a63eb1d4181ad218e78d4d14a05846717eaee395ed4bec6fac0284fb8c6594fcbe1b6e805c9daa18cf8b472e583ce7c9bb21c8e795d9603d
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.45.
|
1
|
+
1.45.1
|
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.45.
|
4
|
+
version: 1.45.1
|
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-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|