norad_cli 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.ruby-version +1 -1
- data/Gemfile.lock +70 -0
- data/WALKTHROUGH.md +2 -2
- data/lib/norad_cli/support/api_security_container_seed_script.rb +1 -1
- data/lib/norad_cli/version.rb +1 -1
- data/norad_cli.gemspec +6 -6
- metadata +37 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d84fbf79a2180fae8bee968dd26f8259c789ae2
|
4
|
+
data.tar.gz: b5ab5d02cd70e0f491157fd50e63a4af11ac84a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2bb0686835ae130de5203e1a93559c1faf14de75da90a3f20e35de2f381061f1edc205618966598c8011c670afea33f75f3fdbd11912c1115e190e84c18d8ee
|
7
|
+
data.tar.gz: 378538d34d81e0c664c0b663106be66cf55fc1328e5d2e56fecffe4ec9fa86e305fc326078a717e5d535cb66a6687cb961ef2a7c5518d162a1184ca65971a222
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.3
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
norad_cli (0.2.3)
|
5
|
+
docker-api
|
6
|
+
git
|
7
|
+
rainbow (~> 2.2.1)
|
8
|
+
rspec (~> 3.0)
|
9
|
+
safe_yaml
|
10
|
+
thor
|
11
|
+
|
12
|
+
GEM
|
13
|
+
remote: https://rubygems.org/
|
14
|
+
specs:
|
15
|
+
ast (2.3.0)
|
16
|
+
bundler-audit (0.6.0)
|
17
|
+
bundler (~> 1.2)
|
18
|
+
thor (~> 0.18)
|
19
|
+
diff-lcs (1.3)
|
20
|
+
docker-api (1.34.0)
|
21
|
+
excon (>= 0.47.0)
|
22
|
+
multi_json
|
23
|
+
excon (0.60.0)
|
24
|
+
git (1.3.0)
|
25
|
+
multi_json (1.13.1)
|
26
|
+
parallel (1.12.1)
|
27
|
+
parser (2.4.0.2)
|
28
|
+
ast (~> 2.3)
|
29
|
+
powerpack (0.1.1)
|
30
|
+
rainbow (2.2.2)
|
31
|
+
rake
|
32
|
+
rake (10.5.0)
|
33
|
+
rspec (3.7.0)
|
34
|
+
rspec-core (~> 3.7.0)
|
35
|
+
rspec-expectations (~> 3.7.0)
|
36
|
+
rspec-mocks (~> 3.7.0)
|
37
|
+
rspec-core (3.7.1)
|
38
|
+
rspec-support (~> 3.7.0)
|
39
|
+
rspec-expectations (3.7.0)
|
40
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
+
rspec-support (~> 3.7.0)
|
42
|
+
rspec-mocks (3.7.0)
|
43
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
+
rspec-support (~> 3.7.0)
|
45
|
+
rspec-support (3.7.0)
|
46
|
+
rubocop (0.52.1)
|
47
|
+
parallel (~> 1.10)
|
48
|
+
parser (>= 2.4.0.2, < 3.0)
|
49
|
+
powerpack (~> 0.1)
|
50
|
+
rainbow (>= 2.2.2, < 4.0)
|
51
|
+
ruby-progressbar (~> 1.7)
|
52
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
53
|
+
ruby-progressbar (1.9.0)
|
54
|
+
safe_yaml (1.0.4)
|
55
|
+
thor (0.20.0)
|
56
|
+
unicode-display_width (1.3.0)
|
57
|
+
|
58
|
+
PLATFORMS
|
59
|
+
ruby
|
60
|
+
|
61
|
+
DEPENDENCIES
|
62
|
+
bundler (~> 1.12)
|
63
|
+
bundler-audit (~> 0.5)
|
64
|
+
norad_cli!
|
65
|
+
rake (~> 10.0)
|
66
|
+
rspec (~> 3.0)
|
67
|
+
rubocop (~> 0.47)
|
68
|
+
|
69
|
+
BUNDLED WITH
|
70
|
+
1.16.1
|
data/WALKTHROUGH.md
CHANGED
@@ -6,7 +6,7 @@ This document walks through the steps for creating a security test and integrati
|
|
6
6
|
$ gem install norad_cli
|
7
7
|
```
|
8
8
|
|
9
|
-
Other dependencies include a working [Norad Development Box](https://norad
|
9
|
+
Other dependencies include a working [Norad Development Box](https://gitlab.com/norad/dev-box) and [Docker](https://www.docker.com/community-edition).
|
10
10
|
|
11
11
|
# Security Test Development Steps
|
12
12
|
|
@@ -63,7 +63,7 @@ To start off, we use the scaffold command to create all of the required files to
|
|
63
63
|
```
|
64
64
|
$ norad sectest scaffold --help
|
65
65
|
Usage:
|
66
|
-
norad scaffold TESTNAME
|
66
|
+
norad sectest scaffold TESTNAME
|
67
67
|
|
68
68
|
Options:
|
69
69
|
-t, [--test-type=TEST_TYPE] # The security test type, Options: [authenticated|web_application|brute_force|ssl_crypto|ssh_crypto|whole_host]
|
@@ -10,7 +10,7 @@ module SeedGenerator
|
|
10
10
|
container_file.write("sc.default_config = #{symbolized_config(m['default_config'])}\n") if m.key?('default_config')
|
11
11
|
container_file.write("sc.category = :#{m['category'].to_sym}\n")
|
12
12
|
container_file.write("sc.test_types = #{m['test_types']}\n")
|
13
|
-
container_file.write("sc.
|
13
|
+
container_file.write("sc.application_type = ApplicationType.find_by(name: '#{m['application_type']}')\n") if m.key?('application_type')
|
14
14
|
container_file.write("sc.configurable = #{m['configurable']}\n") if m.key?('configurable')
|
15
15
|
container_file.write("sc.multi_host = #{m['multi_host']}\n") if m.key?('multi_host')
|
16
16
|
container_file.write("sc.help_url = '#{docsite}##{readme_anchor}'\n")
|
data/lib/norad_cli/version.rb
CHANGED
data/norad_cli.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.description = 'Command line interface for norad.'
|
15
15
|
spec.homepage = 'https://gitlab.com/norad/cli'
|
16
16
|
spec.license = 'Apache-2.0'
|
17
|
-
spec.required_ruby_version = '>= 2.
|
17
|
+
spec.required_ruby_version = '>= 2.4.0'
|
18
18
|
|
19
19
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
20
|
spec.bindir = 'bin'
|
@@ -22,17 +22,17 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
|
24
24
|
# Regular Dependencies
|
25
|
-
spec.add_dependency 'git'
|
26
|
-
spec.add_dependency 'thor'
|
27
25
|
spec.add_dependency 'docker-api'
|
28
|
-
spec.add_dependency '
|
29
|
-
spec.add_dependency 'rspec', '~> 3.0'
|
26
|
+
spec.add_dependency 'git'
|
30
27
|
spec.add_dependency 'rainbow', '~> 2.2.1'
|
28
|
+
spec.add_dependency 'rspec', '~> 3.0'
|
29
|
+
spec.add_dependency 'safe_yaml'
|
30
|
+
spec.add_dependency 'thor'
|
31
31
|
|
32
32
|
# Development Dependencies
|
33
33
|
spec.add_development_dependency 'bundler', '~> 1.12'
|
34
|
+
spec.add_development_dependency 'bundler-audit', '~> 0.5'
|
34
35
|
spec.add_development_dependency 'rake', '~> 10.0'
|
35
36
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
36
37
|
spec.add_development_dependency 'rubocop', '~> 0.47'
|
37
|
-
spec.add_development_dependency 'bundler-audit', '~> 0.5'
|
38
38
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: norad_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Hitchcock
|
@@ -10,10 +10,10 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2018-01-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: docker-api
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
|
-
name:
|
30
|
+
name: git
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - ">="
|
@@ -41,19 +41,33 @@ dependencies:
|
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '0'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
|
-
name:
|
44
|
+
name: rainbow
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - "
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
49
|
+
version: 2.2.1
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - "
|
54
|
+
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
56
|
+
version: 2.2.1
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: rspec
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '3.0'
|
64
|
+
type: :runtime
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '3.0'
|
57
71
|
- !ruby/object:Gem::Dependency
|
58
72
|
name: safe_yaml
|
59
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,47 +83,47 @@ dependencies:
|
|
69
83
|
- !ruby/object:Gem::Version
|
70
84
|
version: '0'
|
71
85
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
86
|
+
name: thor
|
73
87
|
requirement: !ruby/object:Gem::Requirement
|
74
88
|
requirements:
|
75
|
-
- - "
|
89
|
+
- - ">="
|
76
90
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
91
|
+
version: '0'
|
78
92
|
type: :runtime
|
79
93
|
prerelease: false
|
80
94
|
version_requirements: !ruby/object:Gem::Requirement
|
81
95
|
requirements:
|
82
|
-
- - "
|
96
|
+
- - ">="
|
83
97
|
- !ruby/object:Gem::Version
|
84
|
-
version: '
|
98
|
+
version: '0'
|
85
99
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
100
|
+
name: bundler
|
87
101
|
requirement: !ruby/object:Gem::Requirement
|
88
102
|
requirements:
|
89
103
|
- - "~>"
|
90
104
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
92
|
-
type: :
|
105
|
+
version: '1.12'
|
106
|
+
type: :development
|
93
107
|
prerelease: false
|
94
108
|
version_requirements: !ruby/object:Gem::Requirement
|
95
109
|
requirements:
|
96
110
|
- - "~>"
|
97
111
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
112
|
+
version: '1.12'
|
99
113
|
- !ruby/object:Gem::Dependency
|
100
|
-
name: bundler
|
114
|
+
name: bundler-audit
|
101
115
|
requirement: !ruby/object:Gem::Requirement
|
102
116
|
requirements:
|
103
117
|
- - "~>"
|
104
118
|
- !ruby/object:Gem::Version
|
105
|
-
version: '
|
119
|
+
version: '0.5'
|
106
120
|
type: :development
|
107
121
|
prerelease: false
|
108
122
|
version_requirements: !ruby/object:Gem::Requirement
|
109
123
|
requirements:
|
110
124
|
- - "~>"
|
111
125
|
- !ruby/object:Gem::Version
|
112
|
-
version: '
|
126
|
+
version: '0.5'
|
113
127
|
- !ruby/object:Gem::Dependency
|
114
128
|
name: rake
|
115
129
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,20 +166,6 @@ dependencies:
|
|
152
166
|
- - "~>"
|
153
167
|
- !ruby/object:Gem::Version
|
154
168
|
version: '0.47'
|
155
|
-
- !ruby/object:Gem::Dependency
|
156
|
-
name: bundler-audit
|
157
|
-
requirement: !ruby/object:Gem::Requirement
|
158
|
-
requirements:
|
159
|
-
- - "~>"
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
version: '0.5'
|
162
|
-
type: :development
|
163
|
-
prerelease: false
|
164
|
-
version_requirements: !ruby/object:Gem::Requirement
|
165
|
-
requirements:
|
166
|
-
- - "~>"
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
version: '0.5'
|
169
169
|
description: Command line interface for norad.
|
170
170
|
email:
|
171
171
|
- rbhitchcock@gmail.com
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- ".travis.yml"
|
186
186
|
- CONTRIBUTING.md
|
187
187
|
- Gemfile
|
188
|
+
- Gemfile.lock
|
188
189
|
- LICENSE
|
189
190
|
- README.md
|
190
191
|
- Rakefile
|
@@ -269,7 +270,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
269
270
|
requirements:
|
270
271
|
- - ">="
|
271
272
|
- !ruby/object:Gem::Version
|
272
|
-
version: 2.
|
273
|
+
version: 2.4.0
|
273
274
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
274
275
|
requirements:
|
275
276
|
- - ">="
|