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 +4 -4
- data/Gemfile +2 -0
- data/lib/smart_proxy_dynflow/core.rb +2 -9
- data/lib/smart_proxy_dynflow/version.rb +1 -1
- data/settings.d/dynflow.yml.example +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd0dc07d76fb4d9c90a20b60527f12a3802fae93e7c4ab54d1485bd2f4fb401b
|
|
4
|
+
data.tar.gz: 9288464706db66ad870513a7ed75de6237517f805739e3cfa8071a98536471e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a4e33c275e9b5d76185f3e09ca747364a499f63d020dabaab36ecd970237db41363c2226111cc7746acc42569c13a15057302dbb9e8e37a88c79ee432fd7560f
|
|
7
|
+
data.tar.gz: 10e3d672cd05f8254bccd99eb356a92d26846fd4c9c38df0378ed7454ced21b84bb2a52b31ead3135a8161745985b55c349a03ae084fd669e8ea7f88e9eeeb05
|
data/Gemfile
CHANGED
|
@@ -4,17 +4,10 @@ require 'fileutils'
|
|
|
4
4
|
|
|
5
5
|
module Proxy::Dynflow
|
|
6
6
|
class Core
|
|
7
|
-
attr_accessor :world
|
|
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
|
-
|
|
97
|
+
do_authorize_any if Settings.instance.console_auth
|
|
105
98
|
end
|
|
106
99
|
|
|
107
100
|
Core.ensure_initialized
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
:enabled: true
|
|
3
3
|
:database:
|
|
4
4
|
|
|
5
|
-
# Require a
|
|
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.
|
|
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.
|
|
133
|
+
rubygems_version: 4.0.20
|
|
134
134
|
specification_version: 4
|
|
135
135
|
summary: Dynflow runtime for Foreman smart proxy
|
|
136
136
|
test_files: []
|