soar_smaak 0.1.4 → 0.1.5
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/README.md +9 -4
- data/lib/soar_smaak/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3838aa84a00380ccf4ce210e6e4ecf189d180a66
|
4
|
+
data.tar.gz: 53c2ebe5e9fd52a189b1cd28c831b4fa542a3be7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c6ecea5927d46be936a4bc7e3f7f247e08d956a87b28a86d854fba1afea46f7abd49247f122bfc0ee5523f34ca1b6a8fe0ef4336c9981213c43d44bbfa6e373
|
7
|
+
data.tar.gz: 2d3edc6daf773e554aafecf7e702b8154a929a4566271f5d41f10b56581d52607062413988e7b98d6ed8cbb1c7f2991e8b04ce54e6a2ffa6b343c05a0584fc3c
|
data/README.md
CHANGED
@@ -4,6 +4,10 @@ This library offers Rack middle-ware for SMAAK communication. Requests are exami
|
|
4
4
|
|
5
5
|
## Dependencies
|
6
6
|
|
7
|
+
### SoarAspects::Aspects
|
8
|
+
|
9
|
+
In order for soar_smaak to obtain its configuration, auditor and signed routes from the rack environment, these need to be placed in the environment before this middleware is used. The SoarAspects::Aspects middleware accomplishes this: https://github.com/hetznerZA/soar_aspects
|
10
|
+
|
7
11
|
### configuration : optional
|
8
12
|
|
9
13
|
A dictionary including a SMAAK public and private key identifying the service component in question, as well as an optional associations dictionary with the identity and public key and pre-shared key of associations that the SMAAK middleware should verify. If a configuration is not provided, SMAAK will be disabled. An example follows:
|
@@ -62,10 +66,11 @@ Or install it yourself as:
|
|
62
66
|
In your application builder, set SOAR aspects that SoarSmaak depend on:
|
63
67
|
|
64
68
|
```
|
65
|
-
|
66
|
-
SoarAspects::
|
67
|
-
SoarAspects::
|
68
|
-
|
69
|
+
router = SoarSc::Web::Router.new(config)
|
70
|
+
SoarAspects::Aspects::configuration = config
|
71
|
+
SoarAspects::Aspects::signed_routes = router.signed_routes
|
72
|
+
SoarAspects::Aspects::auditing = SoarSc::auditing
|
73
|
+
use SoarAspects::Aspects
|
69
74
|
```
|
70
75
|
|
71
76
|
Then add the SMAAK middleware router:
|
data/lib/soar_smaak/version.rb
CHANGED