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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46d7b5e77112c6a28aa1b106204a372ec6e1278f
4
- data.tar.gz: 071bf8bde44d418f3c09b43104d69b7d49edd18d
3
+ metadata.gz: 5ef67620ce8e450337ac11558d2f072fc476c9aa
4
+ data.tar.gz: af2090103350a2afef11cda4bb0b52d9bf773a65
5
5
  SHA512:
6
- metadata.gz: 6b006dc6a0f793f1f66dfce6ce99f56d712d3fff0e3b86c4a8722a61e2a1deb2cdc19609ce84f88ef9aabd7b3615d900a0fbec34f2b2849a6ac64f05bc356fa8
7
- data.tar.gz: a40f669447d8334255e0c05a4b863e30582aa16abc554eb20eece878bae6d277be52ab0c205d853a52624eaf7b393e24af167c083191075ef1b36ab899ce3e8f
6
+ metadata.gz: 950692a16ecd6fc95de48ad105b3798e0a9fd9754462f661e7e24b69ad9f93f0c462aaa28edaebf69ea00022bfbc7ef6c2ff204e003779de332d6df2962ba360
7
+ data.tar.gz: 07cfd42f7c630f6a888d4a4cc39ec186376e5284096bb901606b1b8c53af43f8fb1cfabe6db37a9018ad7c5e94c75693062877e2e0abe6196d5c9acf458ca6d0
@@ -0,0 +1,14 @@
1
+ # Kitchen Kerberos Changelog
2
+
3
+ ## 0.4
4
+ * Support new net-ssh verify_host_key option [@gordonbondon]
5
+
6
+ ## 0.3
7
+ * adds kitchen-inspec-kerberos verifier
8
+
9
+ ## 0.2
10
+ * Adds train transport
11
+ * refactor
12
+
13
+ ## 0.1
14
+ * initial MVP version
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Kerberos
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
@@ -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.3.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: 2017-06-14 00:00:00.000000000 Z
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