aws-sdk-cloudfront 1.75.0 → 1.75.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudfront/client.rb +1 -1
- data/lib/aws-sdk-cloudfront/signer.rb +3 -3
- data/lib/aws-sdk-cloudfront/url_signer.rb +1 -1
- data/lib/aws-sdk-cloudfront.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: 57b349e235a730a4f5b28b2ac4803025793b7e1037c08ff1eca441370cd4ffb9
|
4
|
+
data.tar.gz: 6b8016b9b88428c8b66d7b038676aed9e7fc5eddc9aeeb3308af3681826e43cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3fa37007522e89bf6c78a5d7587a567a9f7e126afad0f9ffb4c5fa726b61e07785c890bc897f2881c2094040e3907a62e2c254af1749a4b6624c07391a6f810
|
7
|
+
data.tar.gz: f915e99db17b46b45ee75dfb5c988f661e4a51e5d4d3ce84825909206a51f6eb2768e191092ff44b8239f5073490ff9bafcaeb55e32bc11c6082a4aec28da257
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.75.2 (2023-02-21)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Issue - Improve performance of URL signing
|
8
|
+
|
9
|
+
1.75.1 (2023-02-15)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Issue - Improve performance of `UrlSigner#signed_url` (#2824).
|
13
|
+
|
4
14
|
1.75.0 (2023-02-08)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.75.
|
1
|
+
1.75.2
|
@@ -8876,7 +8876,7 @@ module Aws::CloudFront
|
|
8876
8876
|
params: params,
|
8877
8877
|
config: config)
|
8878
8878
|
context[:gem_name] = 'aws-sdk-cloudfront'
|
8879
|
-
context[:gem_version] = '1.75.
|
8879
|
+
context[:gem_version] = '1.75.2'
|
8880
8880
|
Seahorse::Client::Request.new(handlers, context)
|
8881
8881
|
end
|
8882
8882
|
|
@@ -15,7 +15,8 @@ module Aws
|
|
15
15
|
# @option options [String] :private_key_path
|
16
16
|
def initialize(options = {})
|
17
17
|
@key_pair_id = key_pair_id(options)
|
18
|
-
@
|
18
|
+
@cipher = OpenSSL::Digest::SHA1.new
|
19
|
+
@private_key = OpenSSL::PKey::RSA.new(private_key(options))
|
19
20
|
end
|
20
21
|
|
21
22
|
private
|
@@ -97,8 +98,7 @@ module Aws
|
|
97
98
|
|
98
99
|
# create the signature string with policy signed
|
99
100
|
def sign_policy(policy)
|
100
|
-
|
101
|
-
key.sign(OpenSSL::Digest::SHA1.new, policy)
|
101
|
+
@private_key.sign(@cipher, policy)
|
102
102
|
end
|
103
103
|
|
104
104
|
# create canned policy that used for signing
|
@@ -33,7 +33,7 @@ module Aws
|
|
33
33
|
policy: params[:policy]
|
34
34
|
)
|
35
35
|
|
36
|
-
start_flag =
|
36
|
+
start_flag = uri.include?('?') ? '&' : '?'
|
37
37
|
signature = signed_content.map{ |k, v| "#{k}=#{v}" }.join('&').gsub("\n", '')
|
38
38
|
uri = "#{uri}#{start_flag}#{signature}"
|
39
39
|
|
data/lib/aws-sdk-cloudfront.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudfront
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.75.
|
4
|
+
version: 1.75.2
|
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: 2023-02-
|
11
|
+
date: 2023-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|