aws_recon 0.5.21 → 0.5.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws_recon/aws_recon.rb +4 -0
- data/lib/aws_recon/collectors/organizations.rb +12 -5
- data/lib/aws_recon/services.yaml +0 -5
- data/lib/aws_recon/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b8ed454cc2f353e9e3b2d063983ae46d020a3f498fed12da5a958b070d76d92
|
4
|
+
data.tar.gz: 60599857caa5c8b1a9fe73ddd11689cebd70fe318e375b8a65fba9882de0f374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe8fd51fde0b6f1c1b875c1ca24d71b6e6abc110832814ffb2505e4f5f7c27532019bfd019204d76422181488efe17534705bd52982e9b373212ebe8a8de53a4
|
7
|
+
data.tar.gz: 8cbc656f70d64b70a209a9033a3764c7aabb77a4b103308aee99dbbd341cc7712de959a662e2893646d4ae1367d02fef3e1e4ea392be54d3e873c235a4ca3741
|
data/lib/aws_recon/aws_recon.rb
CHANGED
@@ -63,6 +63,10 @@ module AwsRecon
|
|
63
63
|
|
64
64
|
# add resources to resources array for output to file
|
65
65
|
@resources.concat(collection) if @options.output_file
|
66
|
+
rescue Aws::Errors::ServiceError => e
|
67
|
+
raise if @options.quit_on_exception
|
68
|
+
|
69
|
+
puts "Ignoring exception: '#{e.message}'\n"
|
66
70
|
end
|
67
71
|
|
68
72
|
#
|
@@ -13,13 +13,19 @@ class Organizations < Mapper
|
|
13
13
|
#
|
14
14
|
# describe_organization
|
15
15
|
#
|
16
|
-
|
17
|
-
|
16
|
+
begin
|
17
|
+
@client.describe_organization.each do |response|
|
18
|
+
log(response.context.operation_name)
|
18
19
|
|
19
|
-
|
20
|
-
|
20
|
+
struct = OpenStruct.new(response.organization.to_h)
|
21
|
+
struct.type = 'organization'
|
21
22
|
|
22
|
-
|
23
|
+
resources.push(struct.to_h)
|
24
|
+
end
|
25
|
+
rescue Aws::Organizations::Errors::ServiceError => e
|
26
|
+
log_error(e.code)
|
27
|
+
|
28
|
+
raise e unless suppressed_errors.include?(e.code) && !@options.quit_on_exception
|
23
29
|
end
|
24
30
|
|
25
31
|
#
|
@@ -66,6 +72,7 @@ class Organizations < Mapper
|
|
66
72
|
def suppressed_errors
|
67
73
|
%w[
|
68
74
|
AccessDeniedException
|
75
|
+
AWSOrganizationsNotInUseException
|
69
76
|
]
|
70
77
|
end
|
71
78
|
end
|
data/lib/aws_recon/services.yaml
CHANGED
@@ -93,9 +93,6 @@
|
|
93
93
|
alias: cloudwatchlogs
|
94
94
|
- name: Kafka
|
95
95
|
alias: kafka
|
96
|
-
excluded_regions:
|
97
|
-
- af-south-1
|
98
|
-
- ap-northeast-3
|
99
96
|
- name: SecretsManager
|
100
97
|
alias: secretsmanager
|
101
98
|
- name: SecurityHub
|
@@ -141,8 +138,6 @@
|
|
141
138
|
alias: servicequotas
|
142
139
|
- name: Transfer
|
143
140
|
alias: transfer
|
144
|
-
excluded_regions:
|
145
|
-
- ap-northeast-3
|
146
141
|
- name: DirectConnect
|
147
142
|
alias: directconnect
|
148
143
|
- name: DirectoryService
|
data/lib/aws_recon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws_recon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Larsen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-02-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -277,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
277
277
|
- !ruby/object:Gem::Version
|
278
278
|
version: '0'
|
279
279
|
requirements: []
|
280
|
-
rubygems_version: 3.
|
280
|
+
rubygems_version: 3.0.8
|
281
281
|
signing_key:
|
282
282
|
specification_version: 4
|
283
283
|
summary: A multi-threaded AWS security-focused inventory collection tool.
|