terraspace_plugin_aws 0.2.0 → 0.2.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe3bb9a8a7744b46c03ecb1abb577b0c0efd86e5304041b5e0c3e2aa085edb36
|
|
4
|
+
data.tar.gz: 0c5c7d985be2fc6eb218ade8b698f4e4534038428c238af911f8bdab903be846
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9aa446bf85feb83a954620b52222f3e28215a36e8769fdc4c620af2d02913ad7c81b4985674220d222c5ee95cf6226ce24cf8761d4bd991a6cb967037be11b3c
|
|
7
|
+
data.tar.gz: a7fd615550e52f1ec56d1b1701f843c4fa9b21f664efd286e01552a1bc9b875db2ea1b02247b7961ab4788107551ad6247f7e330e09d2097680f33660a3b958f
|
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 *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
|
6
|
+
## [0.2.1]
|
|
7
|
+
- #3 quiet s3-secure messages
|
|
8
|
+
|
|
6
9
|
## [0.2.0]
|
|
7
10
|
- #2 include layer interface, update template to expansion method
|
|
8
11
|
|
|
@@ -4,12 +4,12 @@ class TerraspacePluginAws::Interfaces::Backend::Bucket
|
|
|
4
4
|
module Secure
|
|
5
5
|
def secure(bucket)
|
|
6
6
|
c = TerraspacePluginAws::Interfaces::Config.instance.config.s3
|
|
7
|
-
|
|
8
|
-
S3Secure::Encryption::Enable.new(
|
|
9
|
-
S3Secure::Policy::Enforce.new(
|
|
10
|
-
S3Secure::Versioning::Enable.new(
|
|
11
|
-
S3Secure::Lifecycle::Add.new(
|
|
12
|
-
S3Secure::AccessLogs::Enable.new(
|
|
7
|
+
options = {bucket: bucket, quiet: true}
|
|
8
|
+
S3Secure::Encryption::Enable.new(options).run if c.encryption
|
|
9
|
+
S3Secure::Policy::Enforce.new(options.merge(sid: "ForceSSLOnlyAccess")).run if c.enforce_ssl
|
|
10
|
+
S3Secure::Versioning::Enable.new(options).run if c.versioning
|
|
11
|
+
S3Secure::Lifecycle::Add.new(options).run if c.lifecycle
|
|
12
|
+
S3Secure::AccessLogs::Enable.new(options).run if c.access_logging
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: terraspace_plugin_aws
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tung Nguyen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-09-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-dynamodb
|