smart_proxy_dynflow 0.9.4 → 1.0.1

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: e7e0e12ddc21b25d46fe7d1ea6c7af572f98d0fff69e19ebf4764059e41a6644
4
- data.tar.gz: 2326988132e96960c1739c41b1b99f53452cf3684839f97e8cb4c050459b43df
3
+ metadata.gz: cd0dc07d76fb4d9c90a20b60527f12a3802fae93e7c4ab54d1485bd2f4fb401b
4
+ data.tar.gz: 9288464706db66ad870513a7ed75de6237517f805739e3cfa8071a98536471e9
5
5
  SHA512:
6
- metadata.gz: bc8c5012e01624d165f801e6de4f3d0707cbdcfa42437fc0887fe10ccc89d5606813fae0fc8761c73cee40bae0ae275d0115165521f903e7ee24f90a129423bb
7
- data.tar.gz: a20e4eb660064c01d2ede0c5e38ccadaded5d0feac2768865e59295b2a3ba44a47be743a3bd074f68cdb11891930bbe08f8b554033f24907b64e0d0d09bd843b
6
+ metadata.gz: a4e33c275e9b5d76185f3e09ca747364a499f63d020dabaab36ecd970237db41363c2226111cc7746acc42569c13a15057302dbb9e8e37a88c79ee432fd7560f
7
+ data.tar.gz: 10e3d672cd05f8254bccd99eb356a92d26846fd4c9c38df0378ed7454ced21b84bb2a52b31ead3135a8161745985b55c349a03ae084fd669e8ea7f88e9eeeb05
data/Gemfile CHANGED
@@ -16,6 +16,8 @@ group :development do
16
16
  end
17
17
 
18
18
  group :test do
19
+ # multi_json passes positional parser options, which JSON 3 no longer accepts.
20
+ gem 'json', '< 3'
19
21
  gem 'minitest'
20
22
  gem 'mocha'
21
23
  gem 'public_suffix'
@@ -13,7 +13,7 @@ module Proxy
13
13
 
14
14
  include ::Sinatra::Authorization::Helpers
15
15
 
16
- TASK_UPDATE_REGEXP_PATH = %r{/tasks/(\S+)/(update|done)}.freeze
16
+ TASK_UPDATE_REGEXP_PATH = %r{/tasks/(\S+)/(update|done)}
17
17
 
18
18
  before do
19
19
  if match = request.path_info.match(TASK_UPDATE_REGEXP_PATH)
@@ -4,17 +4,10 @@ require 'fileutils'
4
4
 
5
5
  module Proxy::Dynflow
6
6
  class Core
7
- attr_accessor :world, :accepted_cert_serial
7
+ attr_accessor :world
8
8
 
9
9
  def initialize
10
10
  @world = create_world
11
- cert_file = Proxy::SETTINGS.foreman_ssl_cert || Proxy::SETTINGS.ssl_certificate
12
- if cert_file
13
- client_cert = File.read(cert_file)
14
- # we trust only requests using the same certificate as we are
15
- # (in other words the local proxy only)
16
- @accepted_cert_serial = OpenSSL::X509::Certificate.new(client_cert).serial
17
- end
18
11
  end
19
12
 
20
13
  def create_world(&block)
@@ -101,7 +94,7 @@ module Proxy::Dynflow
101
94
  include ::Sinatra::Authorization::Helpers
102
95
 
103
96
  before do
104
- do_authorize_with_ssl_client if Settings.instance.console_auth
97
+ do_authorize_any if Settings.instance.console_auth
105
98
  end
106
99
 
107
100
  Core.ensure_initialized
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Proxy
4
4
  module Dynflow
5
- VERSION = '0.9.4'
5
+ VERSION = '1.0.1'
6
6
  end
7
7
  end
@@ -2,7 +2,8 @@
2
2
  :enabled: true
3
3
  :database:
4
4
 
5
- # Require a valid cert to access Dynflow console
5
+ # Require a client certificate trusted by the proxy and listed in the
6
+ # proxy's :trusted_hosts setting to access the Dynflow console
6
7
  # :console_auth: true
7
8
 
8
9
  # Maximum age of execution plans to keep before having them cleaned
metadata CHANGED
@@ -1,29 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_dynflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-11-20 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: dynflow
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: '1.6'
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
23
25
  requirements:
24
- - - "~>"
26
+ - - ">="
25
27
  - !ruby/object:Gem::Version
26
28
  version: '1.6'
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: '3.0'
27
32
  - !ruby/object:Gem::Dependency
28
33
  name: rest-client
29
34
  requirement: !ruby/object:Gem::Requirement
@@ -111,7 +116,6 @@ licenses:
111
116
  - GPL-3.0-only
112
117
  metadata:
113
118
  rubygems_mfa_required: 'true'
114
- post_install_message:
115
119
  rdoc_options: []
116
120
  require_paths:
117
121
  - lib
@@ -119,18 +123,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
123
  requirements:
120
124
  - - ">="
121
125
  - !ruby/object:Gem::Version
122
- version: '2.7'
123
- - - "<"
124
- - !ruby/object:Gem::Version
125
- version: '4'
126
+ version: '3.0'
126
127
  required_rubygems_version: !ruby/object:Gem::Requirement
127
128
  requirements:
128
129
  - - ">="
129
130
  - !ruby/object:Gem::Version
130
131
  version: '0'
131
132
  requirements: []
132
- rubygems_version: 3.3.27
133
- signing_key:
133
+ rubygems_version: 4.0.20
134
134
  specification_version: 4
135
135
  summary: Dynflow runtime for Foreman smart proxy
136
136
  test_files: []