kitchen-kerberos 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/kitchen/kerberos/version.rb +1 -1
- data/lib/kitchen/transport/kerberos.rb +10 -1
- data/lib/train/transports/kerberos.rb +12 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ef67620ce8e450337ac11558d2f072fc476c9aa
|
4
|
+
data.tar.gz: af2090103350a2afef11cda4bb0b52d9bf773a65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 950692a16ecd6fc95de48ad105b3798e0a9fd9754462f661e7e24b69ad9f93f0c462aaa28edaebf69ea00022bfbc7ef6c2ff204e003779de332d6df2962ba360
|
7
|
+
data.tar.gz: 07cfd42f7c630f6a888d4a4cc39ec186376e5284096bb901606b1b8c53af43f8fb1cfabe6db37a9018ad7c5e94c75693062877e2e0abe6196d5c9acf458ca6d0
|
data/CHANGELOG.md
ADDED
@@ -51,7 +51,6 @@ module Kitchen
|
|
51
51
|
opts = {
|
52
52
|
logger: logger,
|
53
53
|
user_known_hosts_file: "/dev/null",
|
54
|
-
paranoid: false,
|
55
54
|
hostname: data[:hostname],
|
56
55
|
port: data[:port],
|
57
56
|
username: data[:username],
|
@@ -69,11 +68,21 @@ module Kitchen
|
|
69
68
|
auth_methods: %w[gssapi-with-mic]
|
70
69
|
}
|
71
70
|
|
71
|
+
opts[verify_host_key_option] = false
|
72
|
+
|
72
73
|
opts[:forward_agent] = data[:forward_agent] if data.key?(:forward_agent)
|
73
74
|
opts[:verbose] = data[:verbose].to_sym if data.key?(:verbose)
|
74
75
|
|
75
76
|
opts
|
76
77
|
end
|
78
|
+
|
79
|
+
# net-ssh >=4.2 has renamed paranoid option to verify_host_key
|
80
|
+
def verify_host_key_option
|
81
|
+
current_net_ssh = Net::SSH::Version::CURRENT
|
82
|
+
new_option_version = Net::SSH::Version[4, 2, 0]
|
83
|
+
|
84
|
+
current_net_ssh >= new_option_version ? :verify_host_key : :paranoid
|
85
|
+
end
|
77
86
|
end
|
78
87
|
end
|
79
88
|
end
|
@@ -56,10 +56,9 @@ module Train::Transports
|
|
56
56
|
# @return [Hash] hash of connection options
|
57
57
|
# @api private
|
58
58
|
def connection_options(opts)
|
59
|
-
{
|
59
|
+
opts = {
|
60
60
|
logger: logger,
|
61
61
|
user_known_hosts_file: '/dev/null',
|
62
|
-
paranoid: false,
|
63
62
|
hostname: opts[:host],
|
64
63
|
port: opts[:port],
|
65
64
|
username: opts[:user],
|
@@ -78,7 +77,18 @@ module Train::Transports
|
|
78
77
|
forward_agent: opts[:forward_agent],
|
79
78
|
transport_options: opts,
|
80
79
|
}
|
80
|
+
|
81
|
+
opts[verify_host_key_option] = false
|
82
|
+
|
83
|
+
opts
|
81
84
|
end
|
82
85
|
|
86
|
+
# net-ssh >=4.2 has renamed paranoid option to verify_host_key
|
87
|
+
def verify_host_key_option
|
88
|
+
current_net_ssh = Net::SSH::Version::CURRENT
|
89
|
+
new_option_version = Net::SSH::Version[4, 2, 0]
|
90
|
+
|
91
|
+
current_net_ssh >= new_option_version ? :verify_host_key : :paranoid
|
92
|
+
end
|
83
93
|
end
|
84
94
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-kerberos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Osman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh-krb
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- ".gitignore"
|
77
77
|
- ".ruby-version"
|
78
78
|
- ".travis.yml"
|
79
|
+
- CHANGELOG.md
|
79
80
|
- CODE_OF_CONDUCT.md
|
80
81
|
- Gemfile
|
81
82
|
- LICENSE.txt
|