smart_proxy_openscap 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smart_proxy_openscap/openscap_api.rb +7 -0
- data/lib/smart_proxy_openscap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00056a49674ba03472d6826481526c4ea1c46de925c815023bfcfd1332c57f78
|
4
|
+
data.tar.gz: 89ce04958b0e9cf5443d26ed135ec4f875d4be78d6c58b422c0ce52e3f96e108
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfdb8cbb7f73e95e419fdf6dd3e737242f42ebe9f81d86c3f97ec634a450715718a541ce95096c54b9d625d7bff24a8934fbaf6730c1010ea39926d8b5e79927
|
7
|
+
data.tar.gz: abe8e00cd38c8c422fe05c9c53c19821d9755614698f4741b96ff49d30bd236a3489f76ca55253dd4a5e5297aca9e3db35d22694e981b8e2162c5dc6934d5d5e
|
@@ -25,6 +25,13 @@ module Proxy::OpenSCAP
|
|
25
25
|
include ::Proxy::Log
|
26
26
|
helpers ::Proxy::Helpers
|
27
27
|
authorize_with_ssl_client
|
28
|
+
CLIENT_PATHS = Regexp.compile(%r{^(/arf/\d+|/policies/\d+/content/|/policies/\d+/tailoring/)})
|
29
|
+
|
30
|
+
# authorize via trusted hosts but let client paths in without such authorization
|
31
|
+
before do
|
32
|
+
pass if request.path_info =~ CLIENT_PATHS
|
33
|
+
do_authorize_with_trusted_hosts
|
34
|
+
end
|
28
35
|
|
29
36
|
post "/arf/:policy" do
|
30
37
|
# first let's verify client's certificate
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_proxy_openscap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Šimon Lukašík
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-04-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|