smart_proxy_request_forwarder 0.0.1 → 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: c31864d34ec557e36b425ff0d8ace18ad4c4058b099604a52bb27ed2c0c1fff6
4
- data.tar.gz: 0e96b45c140b6bebca8d3505af2f5b4b23ed989b955606f2e628f6e13338e1b3
3
+ metadata.gz: bcdf8a8ee90b6e866c9d3d4506cf39b14161f91ebf6857b3c2b275f2cbced4d6
4
+ data.tar.gz: ac59ee32d671af6165600aa93e1bc5a4f5132048e829b24f102faf5cffb05971
5
5
  SHA512:
6
- metadata.gz: 25c003ed1024b563d7d1750155551fb27f5c10db1bb55e9cf3ff7e00427d72b94e21265207694a8cd3d8ef25c456808552eacf6e961fde2745782aebd5baebcc
7
- data.tar.gz: a9e9ea1810323411faf52e39b3c297daf590c5d0ec79eca8bf58b87c07c1b2a4ebb12cabd1bca7ca4e92f156867423a802a225106bde38f67b7af1048e531f70
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.1'
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,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_request_forwarder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nadja Heitmann
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-06-06 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rest-client
@@ -45,24 +44,24 @@ email:
45
44
  executables: []
46
45
  extensions: []
47
46
  extra_rdoc_files:
48
- - README.md
49
47
  - LICENSE
48
+ - README.md
50
49
  files:
51
50
  - LICENSE
52
51
  - README.md
53
52
  - bundler.d/request_forwarder.rb
53
+ - lib/smart_proxy_request_forwarder.rb
54
54
  - lib/smart_proxy_request_forwarder/api.rb
55
55
  - lib/smart_proxy_request_forwarder/http_config.ru
56
56
  - lib/smart_proxy_request_forwarder/plugin.rb
57
57
  - lib/smart_proxy_request_forwarder/proxy_request.rb
58
58
  - lib/smart_proxy_request_forwarder/version.rb
59
59
  - settings.d/request_forwarder.yml.example
60
- homepage: https://github.com/theforeman/smart_proxy_request_forwarder
60
+ homepage: https://github.com/ATIX-AG/smart_proxy_request_forwarder
61
61
  licenses:
62
62
  - GPL-3.0-only
63
63
  metadata:
64
64
  rubygems_mfa_required: 'true'
65
- post_install_message:
66
65
  rdoc_options: []
67
66
  require_paths:
68
67
  - lib
@@ -80,8 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
79
  - !ruby/object:Gem::Version
81
80
  version: '0'
82
81
  requirements: []
83
- rubygems_version: 3.1.2
84
- signing_key:
82
+ rubygems_version: 3.6.7
85
83
  specification_version: 4
86
84
  summary: Request forwarder for Foreman smart proxy
87
85
  test_files: []