smart_proxy_dynflow 1.0.0 → 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: 1d83b16dc061524ea6fd926d762b5c277ec04d67a343ee284fc07150288bc023
4
- data.tar.gz: ebce0c873b7c456628669889581c4cddab8c534f81bdd4b60f36dd1de99bb9fe
3
+ metadata.gz: cd0dc07d76fb4d9c90a20b60527f12a3802fae93e7c4ab54d1485bd2f4fb401b
4
+ data.tar.gz: 9288464706db66ad870513a7ed75de6237517f805739e3cfa8071a98536471e9
5
5
  SHA512:
6
- metadata.gz: 2f0fd0fb0fe9251accb11d7759bfd9ca1319325ac5244d5f17d53af9e887b29bbf45a95689d1cca47b218707a589d6b31e7d7b8b57bf3f92a7a7cfeb465aa2df
7
- data.tar.gz: af76df1a492d8175052d8211955301390376941814c3780f70d9ade1fd9a1aaa82406f856012667d7c5dd0c9c1b08f6c90cb84c3468dcb50668c5b93e8f285c4
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'
@@ -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 = '1.0.0'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_dynflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
- rubygems_version: 4.0.3
133
+ rubygems_version: 4.0.20
134
134
  specification_version: 4
135
135
  summary: Dynflow runtime for Foreman smart proxy
136
136
  test_files: []