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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d956bee9ecbe7b1ef1cf64f36e5d9a20e7c8e617e0ca202295f7ab654f3005b
4
- data.tar.gz: 313443a0103b8208b4a9adf247d95b9ef4dc94792b965ee1ff6256741e1d406e
3
+ metadata.gz: 00056a49674ba03472d6826481526c4ea1c46de925c815023bfcfd1332c57f78
4
+ data.tar.gz: 89ce04958b0e9cf5443d26ed135ec4f875d4be78d6c58b422c0ce52e3f96e108
5
5
  SHA512:
6
- metadata.gz: 00cb646ef4a3580cd636d750b57ef45c616ef92a7c923115594a951e69bf35913f170da0da364e06a0d468accf8882ea8d0bf6504e0a002673ebd992be5bc662
7
- data.tar.gz: b1d32fd60f2ba23eb13a732d3053f44f0a0f26879c8965d7acbbc54c5c5081b56a32268dfac4695f95f4fa8ffb9a8938e341e135bd2ca5b5b61ee0e60c40339b
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
@@ -10,6 +10,6 @@
10
10
 
11
11
  module Proxy
12
12
  module OpenSCAP
13
- VERSION = '0.7.4'
13
+ VERSION = '0.7.5'
14
14
  end
15
15
  end
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
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: 2020-08-06 00:00:00.000000000 Z
13
+ date: 2021-04-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake