cfn-nag 0.0.42 → 0.0.43
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/lib/json_rules/sqs_rules.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 676729f639e7761952da2c87657b837ea10b96aa
|
4
|
+
data.tar.gz: d94de2a8663170e3b1df79ef93b2a36f06778731
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b143f8719beb520e35264d368d81968056f42db4858ea886dcd4808da250d4ac0cc979c59219634b364d83bc373f70e7977fd6be35b193ca9165b95e5d78318d
|
7
|
+
data.tar.gz: 3798452e44162508ea0b1f40fbcd04e25e7ff0391507224955416d56a9e254b313bdc7e201dfb587ea801f71b4330aebc249e3363e275c400c0306b4bd93c2c4
|
data/lib/json_rules/sqs_rules.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
sqs_wildcard_action_filter = <<END
|
2
2
|
def sqs_wildcard_action:
|
3
3
|
if .Statement|type == "object"
|
4
|
-
then select(.Statement.Effect == "Allow" and (if .Statement.Action|type=="string" then (.Statement.Action | contains("*") ) else (.Statement.Action|contains(["*"])) end))
|
5
|
-
else select(.Statement[]|.Effect == "Allow" and (if .Action|type=="string" then (.Action | contains("*")) else (.Action|contains(["*"])) end))
|
4
|
+
then select(.Statement.Effect == "Allow" and .Statement.Action and (if .Statement.Action|type=="string" then (.Statement.Action | contains("*") ) else (.Statement.Action|contains(["*"])) end))
|
5
|
+
else select(.Statement[]|.Effect == "Allow" and .Action and (if .Action|type=="string" then (.Action | contains("*")) else (.Action|contains(["*"])) end))
|
6
6
|
end;
|
7
7
|
END
|
8
8
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfn-nag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.43
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- someguy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logging
|