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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac6eb274872b411ed208e18241049456084a6811eced2a78b9fbeaa310609205
4
- data.tar.gz: a02cb65667f7e2e031e2587d216799e8ae9086657408efd932d03fb397b3ff92
3
+ metadata.gz: f913b5f3c0ba17afa834fb78fcde43cfc4c8024ea3c7b401713314cc4d7c0d5e
4
+ data.tar.gz: afc25a5ee4c68f85487718be1230a4bb27c4539314a07b1a4782c2db892f39d7
5
5
  SHA512:
6
- metadata.gz: 3598fbccaaca38de018489c5a243cdfbe719336beeee5c986146e2a96653302e16eb4d98b39087022252d63e0694f542bb5e389f3af4a77e3660d37c3bd37e2b
7
- data.tar.gz: 3666af2b3ae579436ce760c8d23975b15e1504a0b44e6e0e834e26b5cbda47d6b7a8bb544019bc94c742cdff067692be467e88a7d1ee2fb291fae828e4f2c046
6
+ metadata.gz: 270e5dce033d50fea82f24b49acb3e6a7f3daf5d9550693e1246b0084fd2bb32f26fcdd567592fc225003118ad39ee591279c3537b46360abbbaf0ae24e6a6d0
7
+ data.tar.gz: d4d03b1b66ab7b14a63eb1d4181ad218e78d4d14a05846717eaee395ed4bec6fac0284fb8c6594fcbe1b6e805c9daa18cf8b472e583ce7c9bb21c8e795d9603d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.45.1 (2021-10-15)
5
+ ------------------
6
+
7
+ * Issue - Add additional validation to the SNS SigningCert.
8
+
4
9
  1.45.0 (2021-09-01)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.45.0
1
+ 1.45.1
@@ -2452,7 +2452,7 @@ module Aws::SNS
2452
2452
  params: params,
2453
2453
  config: config)
2454
2454
  context[:gem_name] = 'aws-sdk-sns'
2455
- context[:gem_version] = '1.45.0'
2455
+ context[:gem_version] = '1.45.1'
2456
2456
  Seahorse::Client::Request.new(handlers, context)
2457
2457
  end
2458
2458
 
@@ -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
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-sns/customizations'
52
52
  # @!group service
53
53
  module Aws::SNS
54
54
 
55
- GEM_VERSION = '1.45.0'
55
+ GEM_VERSION = '1.45.1'
56
56
 
57
57
  end
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.0
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-09-01 00:00:00.000000000 Z
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