smart_proxy_request_forwarder 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60b6caaf7bd2f2c70ded8f6d6954c25c56e2c0d175caa716ace4b0e8a3a052df
4
- data.tar.gz: aeb5594cac42515f02f7f2faa293e4f646847d134b74ec3120fb30b0ccbdec11
3
+ metadata.gz: bcdf8a8ee90b6e866c9d3d4506cf39b14161f91ebf6857b3c2b275f2cbced4d6
4
+ data.tar.gz: ac59ee32d671af6165600aa93e1bc5a4f5132048e829b24f102faf5cffb05971
5
5
  SHA512:
6
- metadata.gz: 20bb3570abf04d539151c1d02b186e74c0ef704923c69a3ead11499f4f61513785676d29331dffe66a4f72ec71ea84817f4aa0666b334de4fd970806664096d4
7
- data.tar.gz: d9e5c9e8b0dbefc00d7bfbf4e9dc0c080634e94db7294fe5463d66fc6a6c518bd69c77fa6a8815c6217994e5fbfcb61c6596f0ab1a1eb9aededfec3c3a4602fb
6
+ metadata.gz: 85750b9cb1895dbad705ebd308f7e91cf138f55babebc6e2027844ad8f8dc3000b2ff25570a17cb8355186dafdb8e46ffff390c9c606e68ea8f66c7d17c2ae10
7
+ data.tar.gz: a087d4853499b7240e5a9c207fb2a0b6d682009249fcc5709a249eaa4fee5cb4ed24496dcd9a24d60c7bbc903d067fb4de722edd6fbba00c543b7ec74efcb39a
@@ -3,7 +3,10 @@
3
3
  require 'smart_proxy_request_forwarder/proxy_request'
4
4
 
5
5
  class Proxy::RequestForwarder::Api < Sinatra::Base
6
+ include Sinatra::Authorization::Helpers
7
+
6
8
  post '/*' do
9
+ do_authorize_any
7
10
  case request.path
8
11
  when '/request_forwarder/hosts/facts', '/request_forwarder/config_reports'
9
12
  response = Proxy::RequestForwarder::ProxyRequest.new.foreman_request(request)
@@ -5,6 +5,6 @@ module Proxy::RequestForwarder
5
5
  rackup_path File.expand_path('http_config.ru', __dir__)
6
6
 
7
7
  default_settings enabled: true
8
- plugin :request_forwarder, ::Proxy::VERSION
8
+ plugin :request_forwarder, ::Proxy::RequestForwarder::VERSION
9
9
  end
10
10
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Proxy
4
4
  module RequestForwarder
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
6
6
  end
7
7
  end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'smart_proxy_request_forwarder/version'
4
+ require 'smart_proxy_request_forwarder/plugin'
5
+ require 'smart_proxy_request_forwarder/api'
6
+
7
+ module Proxy
8
+ module RequestForwarder
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_request_forwarder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nadja Heitmann
@@ -50,13 +50,14 @@ files:
50
50
  - LICENSE
51
51
  - README.md
52
52
  - bundler.d/request_forwarder.rb
53
+ - lib/smart_proxy_request_forwarder.rb
53
54
  - lib/smart_proxy_request_forwarder/api.rb
54
55
  - lib/smart_proxy_request_forwarder/http_config.ru
55
56
  - lib/smart_proxy_request_forwarder/plugin.rb
56
57
  - lib/smart_proxy_request_forwarder/proxy_request.rb
57
58
  - lib/smart_proxy_request_forwarder/version.rb
58
59
  - settings.d/request_forwarder.yml.example
59
- homepage: https://github.com/theforeman/smart_proxy_request_forwarder
60
+ homepage: https://github.com/ATIX-AG/smart_proxy_request_forwarder
60
61
  licenses:
61
62
  - GPL-3.0-only
62
63
  metadata: