s3-secure 0.6.0 → 0.6.1
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 +3 -0
- data/lib/s3_secure/backwards_compatibility.rb +20 -0
- data/lib/s3_secure/policy/document/base.rb +1 -1
- data/lib/s3_secure/policy/document/force_ssl_only_access.rb +1 -1
- data/lib/s3_secure/policy/document/force_ssl_only_access_remove.rb +1 -1
- data/lib/s3_secure/public_access/block.rb +1 -1
- data/lib/s3_secure/public_access/list.rb +1 -1
- data/lib/s3_secure/public_access/show.rb +2 -2
- data/lib/s3_secure/public_access/unblock.rb +1 -1
- data/lib/s3_secure/version.rb +1 -1
- data/lib/s3_secure.rb +2 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81fe28ce4e04c9166c7749651687a6ae0978ecdb062bc0a18ddd545cd5a04fc9
|
4
|
+
data.tar.gz: 63e946c07d0e16390be21e8cf14a383e47ac61ae3297eb9ae5c5bd874916684e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77d3dc78e56b5865a52afb29c0bfea7047bd5598c3907ea52a85026b88afd1aec2b391662b3c314c1aff781268cb4aea6d2235eeff6aad2e81009add955cda29
|
7
|
+
data.tar.gz: 94702656cce8a2bcfd7e36b640f582024ec98f18889e084bdc60a51558401eaf142f55a1ad0440843e55c5bd5d55169a114c0d6a8dbac2de0c36739f27b7b91f
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.6.1] - 2021-12-30
|
7
|
+
- [#6](https://github.com/tongueroo/s3-secure/pull/6) maintain backward compatibility terraspace_plugin_aws
|
8
|
+
|
6
9
|
## [0.6.0] - 2021-12-30
|
7
10
|
- [#4](https://github.com/tongueroo/s3-secure/pull/4) refactor move directly related cli classes to subfolder
|
8
11
|
- [#5](https://github.com/tongueroo/s3-secure/pull/5) add public access block support
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module S3Secure
|
2
|
+
module BackwardsCompatibility
|
3
|
+
end
|
4
|
+
|
5
|
+
module Encryption
|
6
|
+
CLI::Encryption::Enable = Encryption::Enable
|
7
|
+
end
|
8
|
+
module Policy
|
9
|
+
CLI::Policy::Enforce = Policy::Enforce
|
10
|
+
end
|
11
|
+
module Versioning
|
12
|
+
CLI::Versioning::Enable = Versioning::Enable
|
13
|
+
end
|
14
|
+
module Lifecycle
|
15
|
+
CLI::Lifecycle::Add = Lifecycle::Add
|
16
|
+
end
|
17
|
+
module AccessLogs
|
18
|
+
CLI::AccessLogs::Enable = AccessLogs::Enable
|
19
|
+
end
|
20
|
+
end
|
@@ -5,7 +5,7 @@ module S3Secure::PublicAccess
|
|
5
5
|
presenter.header = ["Bucket", "Block Public Access?"]
|
6
6
|
|
7
7
|
buckets.each do |bucket|
|
8
|
-
|
8
|
+
say "Getting bucket public access configuration for bucket #{bucket.color(:green)}"
|
9
9
|
|
10
10
|
blocked = Show.new(bucket: bucket).blocked?
|
11
11
|
row = [bucket, blocked]
|
@@ -4,10 +4,10 @@ module S3Secure::PublicAccess
|
|
4
4
|
resp = s3.get_public_access_block(
|
5
5
|
bucket: @bucket,
|
6
6
|
)
|
7
|
-
|
7
|
+
say(resp.to_h)
|
8
8
|
resp
|
9
9
|
rescue Aws::S3::Errors::NoSuchPublicAccessBlockConfiguration
|
10
|
-
|
10
|
+
say "No public access block configuration found for bucket: #{@bucket}"
|
11
11
|
end
|
12
12
|
|
13
13
|
def blocked?
|
@@ -4,7 +4,7 @@ module S3Secure::PublicAccess
|
|
4
4
|
resp = s3.delete_public_access_block(
|
5
5
|
bucket: @bucket,
|
6
6
|
)
|
7
|
-
|
7
|
+
say("Removed public access block configuration for bucket: #{@bucket}")
|
8
8
|
resp
|
9
9
|
end
|
10
10
|
end
|
data/lib/s3_secure/version.rb
CHANGED
data/lib/s3_secure.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3-secure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
@@ -233,6 +233,7 @@ files:
|
|
233
233
|
- lib/s3_secure/autoloader.rb
|
234
234
|
- lib/s3_secure/aws_services.rb
|
235
235
|
- lib/s3_secure/aws_services/s3.rb
|
236
|
+
- lib/s3_secure/backwards_compatibility.rb
|
236
237
|
- lib/s3_secure/cli.rb
|
237
238
|
- lib/s3_secure/cli/access_logs.rb
|
238
239
|
- lib/s3_secure/cli/base.rb
|