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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f05e4227f3f52bdf1f05432dc79ec7cb799c13e1076c3de77c2d901b30a5fc0e
4
- data.tar.gz: f39b27d844d1c4e5e9bdc23b731471f86b21fdb98a7c268c60f01b113fd55e63
3
+ metadata.gz: 756ae37a5889108ac671a0e89253346d59cdce05a4d953c99c35707fa9985360
4
+ data.tar.gz: 8eceb2ccbec4970c892b82ccdc9ac5108406a2594c4d42fa36ff9e28a62a77e9
5
5
  SHA512:
6
- metadata.gz: de5a048a52648f5b0a6216264fdb52526952dc70ef90f0b7220c59858927ee9cc517e7d320dad767772b5f45ce6f3f92f9516cc551fe807b940420b80e81a343
7
- data.tar.gz: f28a79f66749c61e52ea270d7e0c8d87a8dcbcaf3ccff460207328bff9c366fd9016ede104b70bd409753d58510a510135adac3c95304b60aee54b9fdae27768
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.43.0
1
+ 1.46.0
@@ -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.43.0'
2455
+ context[:gem_version] = '1.46.0'
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.43.0'
55
+ GEM_VERSION = '1.46.0'
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.43.0
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-07-28 00:00:00.000000000 Z
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.118.0
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.118.0
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: '0'
84
+ version: '2.3'
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="