soar_aspects 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +24 -4
- data/lib/soar_aspects.rb +10 -0
- data/lib/soar_aspects/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98b34781c7325e0ca1ed0e1bc3f5f4c94a2c1409
|
4
|
+
data.tar.gz: 0fd126ce707a29e087736c8fc9d3d88ae2cb92fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0663a540b1ebfdd02f253e5608786b003c89a62fe0e4eb9d504d5c4ab2c8fac92d8726c3e3ade3e00801833aa22a77a8703ec96d298ade5715317b5704ef081f
|
7
|
+
data.tar.gz: 86565a64aa523847f40d45ec2f4eeed4b4167716c0542f3e7a39796eebedcc4ee40e1cc9fd8ee42979d3ab0100a8e92e1c7750e7c7de50dff9c0f21bb5f2c915
|
data/README.md
CHANGED
@@ -26,10 +26,10 @@ Or install it yourself as:
|
|
26
26
|
## Usage
|
27
27
|
|
28
28
|
```
|
29
|
-
SoarAspects::config = @config
|
30
|
-
SoarAspects::signed_routes = @signed_routes
|
31
|
-
SoarAspects::auditing = @auditing
|
32
|
-
use SoarAspects
|
29
|
+
SoarAspects::Aspects::config = @config
|
30
|
+
SoarAspects::Aspects::signed_routes = @signed_routes
|
31
|
+
SoarAspects::Aspects::auditing = @auditing
|
32
|
+
use SoarAspects::Aspects
|
33
33
|
```
|
34
34
|
|
35
35
|
### configuration
|
@@ -48,6 +48,26 @@ SOAR routing middleware is interested in the meta of routes, such as security NF
|
|
48
48
|
|
49
49
|
SOAR uses auditors for logging and other reporting. auditing here is an object that adheres to https://rubygems.org/gems/soar_auditor_api
|
50
50
|
|
51
|
+
### lexicon
|
52
|
+
|
53
|
+
A lexicon of description and parameter, path and method definitions for a service. For the SOAR architecture, this looks so:
|
54
|
+
|
55
|
+
```
|
56
|
+
{
|
57
|
+
'/route-path' => {
|
58
|
+
'description' => 'Business question answered here',
|
59
|
+
'service_name' => 'business_service',
|
60
|
+
'path' => '/route-path',
|
61
|
+
'method' => 'get',
|
62
|
+
'params' => {
|
63
|
+
'pattern' => {
|
64
|
+
'required' => 'true', 'type' => 'string'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
}
|
68
|
+
}
|
69
|
+
```
|
70
|
+
|
51
71
|
## Contributing
|
52
72
|
|
53
73
|
Please send feedback and comments to the author at:
|
data/lib/soar_aspects.rb
CHANGED
@@ -7,6 +7,7 @@ module SoarAspects
|
|
7
7
|
@@configuration = nil
|
8
8
|
@@signed_routes = nil
|
9
9
|
@@auditing = nil
|
10
|
+
@@lexicon = nil
|
10
11
|
|
11
12
|
def self.configuration=(configuration)
|
12
13
|
@@configuration = configuration
|
@@ -32,6 +33,14 @@ module SoarAspects
|
|
32
33
|
@@auditing
|
33
34
|
end
|
34
35
|
|
36
|
+
def self.lexicon=(lexicon)
|
37
|
+
@@lexicon = lexicon
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.lexicon
|
41
|
+
@@lexicon
|
42
|
+
end
|
43
|
+
|
35
44
|
def initialize(app)
|
36
45
|
@app = app
|
37
46
|
end
|
@@ -40,6 +49,7 @@ module SoarAspects
|
|
40
49
|
env['configuration'] = @@configuration
|
41
50
|
env['signed_routes'] = @@signed_routes
|
42
51
|
env['auditing'] = @@auditing
|
52
|
+
env['lexicon'] = @@lexicon
|
43
53
|
@app.call(env)
|
44
54
|
end
|
45
55
|
end
|
data/lib/soar_aspects/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soar_aspects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernst Van Graan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.4.8
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Library facilitating seeding of SOAR aspects in the rack environment
|