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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 857995857a6c41dd15dc598588a6a9e95f8c2ea339015d639f0e0f55c3833c75
4
- data.tar.gz: 27904bba5d68b18fb10cab09d4fba987a015effe2b51cf94aee05ff5d802fba2
3
+ metadata.gz: 57b349e235a730a4f5b28b2ac4803025793b7e1037c08ff1eca441370cd4ffb9
4
+ data.tar.gz: 6b8016b9b88428c8b66d7b038676aed9e7fc5eddc9aeeb3308af3681826e43cb
5
5
  SHA512:
6
- metadata.gz: 1273b3f56c88cc1d25eba7d66d9e2b5ebc31fb6761e9f9c5bef36f16d6ee0f3809ce50c57e7a7d0fa33f6ca1f3c1bda99abb4f923cd4370a89ebca4b78989935
7
- data.tar.gz: e2bcabe9621a2c2bfdeb14e549a13c1378e85af2d49d62112251fd905c8e3b4a48032a7dc5ec554d14daf359edc8e20b0e9003b08eb81f6e8bf3e8a775032004
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.0
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.0'
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
- @private_key = private_key(options)
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
- key = OpenSSL::PKey::RSA.new(@private_key)
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 = URI.parse(uri).query ? '&' : '?'
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
 
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-cloudfront/customizations'
53
53
  # @!group service
54
54
  module Aws::CloudFront
55
55
 
56
- GEM_VERSION = '1.75.0'
56
+ GEM_VERSION = '1.75.2'
57
57
 
58
58
  end
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.0
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-08 00:00:00.000000000 Z
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