aws_security_viz 0.1.5.pre.alpha.pre.131 → 0.1.5.pre.alpha.pre.133
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/Dockerfile +9 -0
- data/README.md +11 -0
- metadata +22 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17b549a859742751ebb0560457463892b17e82f3a64bdbaba43bf0456e0dd8cb
|
4
|
+
data.tar.gz: ea28623d88295e15e27796823d21bcccb60dd44e09f64f41fb4c81f95b0c2390
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '024718029536d96ae0c92778ab363cb3d6df0e10e19694c9bd980a2f8541e40ca7c2da8f5d4181bbaa8e630b9e5e6bc9678f9dfae3dab45f684d62699799ef64'
|
7
|
+
data.tar.gz: 80397effcb279de46e3dbe37b0b5796e073290eec8818ad17ae290fcd58241d77b420e726f83ab4ab8b0bbc224d7f92463304eeb87f8b6729657c81c53cffa05
|
data/Dockerfile
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
FROM ubuntu:latest
|
2
|
+
RUN apt-get update
|
3
|
+
# RUN gem install aws_security_viz # use bundler instead because nokogiri makes problems
|
4
|
+
RUN apt-get install -y git ruby-dev ruby graphviz libxml2-dev g++ zlib1g-dev python
|
5
|
+
RUN git clone https://github.com/anaynayak/aws-security-viz.git
|
6
|
+
WORKDIR /aws-security-viz
|
7
|
+
RUN gem install bundler --no-document
|
8
|
+
RUN bundle install
|
9
|
+
ENTRYPOINT ["/bin/sh"]
|
data/README.md
CHANGED
@@ -49,6 +49,17 @@ To generate a web view
|
|
49
49
|
* The json file name needs to be passed in as a html fragment identifier.
|
50
50
|
* The generated graph can be viewed in a webserver e.g. http://localhost:3000/view.html#aws.json by using `python -m SimpleHTTPServer 3000` (python2) or `python -m http.server 3000` (python3)
|
51
51
|
|
52
|
+
## DOCKER USAGE
|
53
|
+
|
54
|
+
If you don't want to install the dependencies and ruby libs you can execute aws-security-viz inside a docker container. To do so, follow these steps:
|
55
|
+
|
56
|
+
1. Clone this repository, open it in a console.
|
57
|
+
2. Build the docker container: `sudo docker build -t sec-viz .`
|
58
|
+
3. Run the container: `sudo docker run -i --rm -t -p 3000:3000 --name sec-viz sec-viz` (Description: `-i` interactive shell, `--rm` remove the container after usage, `-t` attach this terminal to it, `-p 3000:3000` we expose port 3000 for the HTTP server, `-name sec-viz` the container will have the same name as the image we will start)
|
59
|
+
4. Now you can use the tool as described in [usage](#USAGE). Make sure that you use the commands with `bundler exec ` as prefix. For example: `bundler exec aws_security_viz -a your_aws_key -s your_aws_secret_key -f aws.json`.
|
60
|
+
5. To start the web view, execute `python -m SimpleHTTPServer 3000` in the container. You can open it with your local browser at `http://0.0.0.0:3000/`. There you can view the generated images and the graph. Use `Ctrl+C` to close the HTTP server.
|
61
|
+
6. Terminate the docker container by typing `exit` in the console.
|
62
|
+
|
52
63
|
### Help
|
53
64
|
|
54
65
|
```
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws_security_viz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.5.pre.alpha.pre.
|
4
|
+
version: 0.1.5.pre.alpha.pre.133
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anay Nayak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -28,62 +28,62 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '12.0'
|
34
31
|
- - ">="
|
35
32
|
- !ruby/object:Gem::Version
|
36
33
|
version: 12.0.0
|
34
|
+
- - "~>"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '12.0'
|
37
37
|
type: :development
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- - "~>"
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '12.0'
|
44
41
|
- - ">="
|
45
42
|
- !ruby/object:Gem::Version
|
46
43
|
version: 12.0.0
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '12.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '3.5'
|
54
51
|
- - ">="
|
55
52
|
- !ruby/object:Gem::Version
|
56
53
|
version: 3.5.0
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '3.5'
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- - "~>"
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: '3.5'
|
64
61
|
- - ">="
|
65
62
|
- !ruby/object:Gem::Version
|
66
63
|
version: 3.5.0
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '3.5'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: graphviz
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- - "~>"
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: '1.1'
|
74
71
|
- - ">="
|
75
72
|
- !ruby/object:Gem::Version
|
76
73
|
version: 1.1.0
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '1.1'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - "~>"
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '1.1'
|
84
81
|
- - ">="
|
85
82
|
- !ruby/object:Gem::Version
|
86
83
|
version: 1.1.0
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '1.1'
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: optimist
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,6 +158,7 @@ files:
|
|
158
158
|
- ".travis.yml"
|
159
159
|
- CHANGELOG.md
|
160
160
|
- CODE_OF_CONDUCT.md
|
161
|
+
- Dockerfile
|
161
162
|
- Gemfile
|
162
163
|
- LICENSE.md
|
163
164
|
- README.md
|
@@ -213,8 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
214
|
- !ruby/object:Gem::Version
|
214
215
|
version: 1.3.1
|
215
216
|
requirements: []
|
216
|
-
|
217
|
-
rubygems_version: 2.7.7
|
217
|
+
rubygems_version: 3.0.2
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Visualize your aws security groups
|