fog-aws 3.23.0 → 3.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -31
- data/fog-aws.gemspec +6 -3
- data/lib/fog/aws/credential_fetcher.rb +12 -1
- data/lib/fog/aws/models/storage/files.rb +3 -2
- data/lib/fog/aws/requests/storage/put_bucket.rb +0 -4
- data/lib/fog/aws/storage.rb +1 -1
- data/lib/fog/aws/version.rb +1 -1
- data/lib/fog/aws.rb +1 -0
- metadata +18 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3cb08aaff9345f1d92ac8657cfb9e988a40ea6df9b4d2798b58451998aab7228
|
|
4
|
+
data.tar.gz: fa2f8726d7c12f65f236078ee76bb9547f1716ee971184b47411a0e8ef9fae06
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 805fcafc8ba99443196293eb75bf730a8463f4fe1e43e6f4db8a4143ee7c4dc8fc53f1484e16e9492714b16be25a7e10ab8142c0ffdf78154e61219a836839e9
|
|
7
|
+
data.tar.gz: 6dd4145aa498bf06f0003e71c3bfd537d64776665ba5b1a4375340971b3a82aee14ed6d81509a028722fed02f4bbae3cacbe05ef9b523c4c5716d8d8883ef71e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,59 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [v3.
|
|
3
|
+
## [v3.25.0](https://github.com/fog/fog-aws/tree/v3.25.0) (2024-08-29)
|
|
4
4
|
|
|
5
|
-
[Full Changelog](https://github.com/fog/fog-aws/compare/v3.
|
|
6
|
-
|
|
7
|
-
**Closed issues:**
|
|
8
|
-
|
|
9
|
-
- Read credentials from Rails config file [\#705](https://github.com/fog/fog-aws/issues/705)
|
|
10
|
-
|
|
11
|
-
**Merged pull requests:**
|
|
12
|
-
|
|
13
|
-
- add il-central-1 region [\#712](https://github.com/fog/fog-aws/pull/712) ([geemus](https://github.com/geemus))
|
|
14
|
-
- Fix frozen string literal issue for ruby 3.4.0 [\#709](https://github.com/fog/fog-aws/pull/709) ([chaadow](https://github.com/chaadow))
|
|
15
|
-
- Fix typos [\#707](https://github.com/fog/fog-aws/pull/707) ([kianmeng](https://github.com/kianmeng))
|
|
16
|
-
|
|
17
|
-
## [v3.22.0](https://github.com/fog/fog-aws/tree/v3.22.0) (2024-03-18)
|
|
18
|
-
|
|
19
|
-
[Full Changelog](https://github.com/fog/fog-aws/compare/v3.21.1...v3.22.0)
|
|
5
|
+
[Full Changelog](https://github.com/fog/fog-aws/compare/v3.24.0...v3.25.0)
|
|
20
6
|
|
|
21
7
|
**Closed issues:**
|
|
22
8
|
|
|
23
|
-
-
|
|
9
|
+
- gsub exception from normalize\_headers with carrierwave [\#720](https://github.com/fog/fog-aws/issues/720)
|
|
10
|
+
- Add AWS EKS Pod Identity support [\#718](https://github.com/fog/fog-aws/issues/718)
|
|
24
11
|
|
|
25
12
|
**Merged pull requests:**
|
|
26
13
|
|
|
27
|
-
-
|
|
14
|
+
- only try to gsub etag on files if there is one closes \#720 [\#722](https://github.com/fog/fog-aws/pull/722) ([geemus](https://github.com/geemus))
|
|
15
|
+
- Added support for EKS Pod Identity. [\#721](https://github.com/fog/fog-aws/pull/721) ([y-sugawara-acs](https://github.com/y-sugawara-acs))
|
|
16
|
+
- Disable S3 Signature v4 Streaming by default [\#719](https://github.com/fog/fog-aws/pull/719) ([stanhu](https://github.com/stanhu))
|
|
17
|
+
- Drop warning if region is not us-east-1 in mock [\#717](https://github.com/fog/fog-aws/pull/717) ([stanhu](https://github.com/stanhu))
|
|
18
|
+
- add base64 require and dependency [\#716](https://github.com/fog/fog-aws/pull/716) ([geemus](https://github.com/geemus))
|
|
28
19
|
|
|
29
|
-
## [v3.
|
|
20
|
+
## [v3.24.0](https://github.com/fog/fog-aws/tree/v3.24.0) (2024-07-08)
|
|
30
21
|
|
|
31
|
-
[Full Changelog](https://github.com/fog/fog-aws/compare/v3.
|
|
22
|
+
[Full Changelog](https://github.com/fog/fog-aws/compare/v3.23.0...v3.24.0)
|
|
32
23
|
|
|
33
24
|
**Closed issues:**
|
|
34
25
|
|
|
35
|
-
-
|
|
26
|
+
- Fog.mock! not working with Storage provider [\#713](https://github.com/fog/fog-aws/issues/713)
|
|
36
27
|
|
|
37
28
|
**Merged pull requests:**
|
|
38
29
|
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
- Add Ruby 3.3 to CI matrix [\#698](https://github.com/fog/fog-aws/pull/698) ([m-nakamura145](https://github.com/m-nakamura145))
|
|
42
|
-
- Bump github/codeql-action from 2 to 3 [\#697](https://github.com/fog/fog-aws/pull/697) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
43
|
-
- Bump actions/stale from 8 to 9 [\#696](https://github.com/fog/fog-aws/pull/696) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
44
|
-
- Fix broken format in CHANGELOG [\#692](https://github.com/fog/fog-aws/pull/692) ([y-yagi](https://github.com/y-yagi))
|
|
30
|
+
- Prefer AWS\_REGION over AWS\_DEFAULT\_REGION in credential fetching [\#715](https://github.com/fog/fog-aws/pull/715) ([stanhu](https://github.com/stanhu))
|
|
31
|
+
- Provide a 'Changelog' link on rubygems.org/gems/fog-aws [\#714](https://github.com/fog/fog-aws/pull/714) ([mark-young-atg](https://github.com/mark-young-atg))
|
|
45
32
|
|
|
46
|
-
## [v3.
|
|
33
|
+
## [v3.23.0](https://github.com/fog/fog-aws/tree/v3.23.0) (2024-06-18)
|
|
47
34
|
|
|
48
|
-
[Full Changelog](https://github.com/fog/fog-aws/compare/v3.
|
|
35
|
+
[Full Changelog](https://github.com/fog/fog-aws/compare/v3.22.0...v3.23.0)
|
|
49
36
|
|
|
50
37
|
**Closed issues:**
|
|
51
38
|
|
|
52
|
-
-
|
|
39
|
+
- Read credentials from Rails config file [\#705](https://github.com/fog/fog-aws/issues/705)
|
|
53
40
|
|
|
54
41
|
**Merged pull requests:**
|
|
55
42
|
|
|
56
|
-
-
|
|
43
|
+
- add il-central-1 region [\#712](https://github.com/fog/fog-aws/pull/712) ([geemus](https://github.com/geemus))
|
|
44
|
+
- Fix frozen string literal issue for ruby 3.4.0 [\#709](https://github.com/fog/fog-aws/pull/709) ([chaadow](https://github.com/chaadow))
|
|
45
|
+
- Fix typos [\#707](https://github.com/fog/fog-aws/pull/707) ([kianmeng](https://github.com/kianmeng))
|
|
57
46
|
|
|
58
47
|
|
|
59
48
|
|
data/fog-aws.gemspec
CHANGED
|
@@ -28,7 +28,10 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.add_development_dependency 'rubyzip', '~> 2.3.0'
|
|
29
29
|
spec.add_development_dependency 'shindo', '~> 0.3'
|
|
30
30
|
|
|
31
|
-
spec.add_dependency '
|
|
32
|
-
spec.add_dependency 'fog-
|
|
33
|
-
spec.add_dependency 'fog-
|
|
31
|
+
spec.add_dependency 'base64', '~> 0.2.0'
|
|
32
|
+
spec.add_dependency 'fog-core', '~> 2.1'
|
|
33
|
+
spec.add_dependency 'fog-json', '~> 1.1'
|
|
34
|
+
spec.add_dependency 'fog-xml', '~> 0.1'
|
|
35
|
+
|
|
36
|
+
spec.metadata['changelog_uri'] = spec.homepage + '/blob/master/CHANGELOG.md'
|
|
34
37
|
end
|
|
@@ -21,7 +21,7 @@ module Fog
|
|
|
21
21
|
if options[:use_iam_profile]
|
|
22
22
|
begin
|
|
23
23
|
role_data = nil
|
|
24
|
-
region = options[:region] || ENV["AWS_DEFAULT_REGION"]
|
|
24
|
+
region = options[:region] || ENV["AWS_REGION"] || ENV["AWS_DEFAULT_REGION"]
|
|
25
25
|
|
|
26
26
|
if ENV["AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"]
|
|
27
27
|
connection = options[:connection] || Excon.new(CONTAINER_CREDENTIALS_HOST)
|
|
@@ -29,6 +29,17 @@ module Fog
|
|
|
29
29
|
role_data = connection.get(:path => credential_path, :idempotent => true, :expects => 200).body
|
|
30
30
|
session = Fog::JSON.decode(role_data)
|
|
31
31
|
|
|
32
|
+
if region.nil?
|
|
33
|
+
connection = options[:metadata_connection] || Excon.new(INSTANCE_METADATA_HOST)
|
|
34
|
+
token_header = fetch_credentials_token_header(connection, options[:disable_imds_v2])
|
|
35
|
+
region = connection.get(:path => INSTANCE_METADATA_AZ, :idempotent => true, :expects => 200, :headers => token_header).body[0..-2]
|
|
36
|
+
end
|
|
37
|
+
elsif ENV["AWS_CONTAINER_CREDENTIALS_FULL_URI"]
|
|
38
|
+
connection = options[:connection] || Excon.new(ENV['AWS_CONTAINER_CREDENTIALS_FULL_URI'])
|
|
39
|
+
container_authorization_token = File.read(options[:aws_container_authorization_token_file] || ENV['AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE'])
|
|
40
|
+
role_data = connection.get(:idempotent => true, :expects => 200, :headers => {'Authorization' => container_authorization_token}).body
|
|
41
|
+
session = Fog::JSON.decode(role_data)
|
|
42
|
+
|
|
32
43
|
if region.nil?
|
|
33
44
|
connection = options[:metadata_connection] || Excon.new(INSTANCE_METADATA_HOST)
|
|
34
45
|
token_header = fetch_credentials_token_header(connection, options[:disable_imds_v2])
|
|
@@ -125,8 +125,9 @@ module Fog
|
|
|
125
125
|
def normalize_headers(data)
|
|
126
126
|
data.headers['Last-Modified'] = Time.parse(fetch_and_delete_header(data, 'Last-Modified'))
|
|
127
127
|
|
|
128
|
-
etag = fetch_and_delete_header(data, 'ETag')
|
|
129
|
-
|
|
128
|
+
if (etag = fetch_and_delete_header(data, 'ETag'))
|
|
129
|
+
data.headers['ETag'] = etag.gsub('"', '')
|
|
130
|
+
end
|
|
130
131
|
|
|
131
132
|
DASHED_HEADERS.each do |header|
|
|
132
133
|
value = fetch_and_delete_header(data, header)
|
|
@@ -61,10 +61,6 @@ DATA
|
|
|
61
61
|
end
|
|
62
62
|
if !self.data[:buckets][bucket_name]
|
|
63
63
|
self.data[:buckets][bucket_name] = bucket
|
|
64
|
-
elsif self.region != 'us-east-1'
|
|
65
|
-
response.status = 409
|
|
66
|
-
Fog::Logger.warning "Your region '#{self.region}' does not match the default region 'us-east-1'"
|
|
67
|
-
raise(Excon::Errors.status_error({:expects => 201}, response))
|
|
68
64
|
end
|
|
69
65
|
response
|
|
70
66
|
end
|
data/lib/fog/aws/storage.rb
CHANGED
|
@@ -559,7 +559,7 @@ module Fog
|
|
|
559
559
|
@persistent = options.fetch(:persistent, false)
|
|
560
560
|
@acceleration = options.fetch(:acceleration, false)
|
|
561
561
|
@signature_version = options.fetch(:aws_signature_version, 4)
|
|
562
|
-
@enable_signature_v4_streaming = options.fetch(:enable_signature_v4_streaming,
|
|
562
|
+
@enable_signature_v4_streaming = options.fetch(:enable_signature_v4_streaming, false)
|
|
563
563
|
validate_signature_version!
|
|
564
564
|
@path_style = options[:path_style] || false
|
|
565
565
|
|
data/lib/fog/aws/version.rb
CHANGED
data/lib/fog/aws.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fog-aws
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.25.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Lane
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2024-
|
|
12
|
+
date: 2024-08-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -81,6 +81,20 @@ dependencies:
|
|
|
81
81
|
- - "~>"
|
|
82
82
|
- !ruby/object:Gem::Version
|
|
83
83
|
version: '0.3'
|
|
84
|
+
- !ruby/object:Gem::Dependency
|
|
85
|
+
name: base64
|
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
|
87
|
+
requirements:
|
|
88
|
+
- - "~>"
|
|
89
|
+
- !ruby/object:Gem::Version
|
|
90
|
+
version: 0.2.0
|
|
91
|
+
type: :runtime
|
|
92
|
+
prerelease: false
|
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
94
|
+
requirements:
|
|
95
|
+
- - "~>"
|
|
96
|
+
- !ruby/object:Gem::Version
|
|
97
|
+
version: 0.2.0
|
|
84
98
|
- !ruby/object:Gem::Dependency
|
|
85
99
|
name: fog-core
|
|
86
100
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -1442,7 +1456,8 @@ files:
|
|
|
1442
1456
|
homepage: https://github.com/fog/fog-aws
|
|
1443
1457
|
licenses:
|
|
1444
1458
|
- MIT
|
|
1445
|
-
metadata:
|
|
1459
|
+
metadata:
|
|
1460
|
+
changelog_uri: https://github.com/fog/fog-aws/blob/master/CHANGELOG.md
|
|
1446
1461
|
post_install_message:
|
|
1447
1462
|
rdoc_options: []
|
|
1448
1463
|
require_paths:
|