diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-12-10 13:45:39 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-12-10 13:45:39 -0800 |
commit | 8d718172dc3c1ce186f6e48efe514d7d566006cb (patch) | |
tree | 9f127e74d55c75d330850b576c587d8715233921 /lib/chef/knife.rb | |
parent | dc98ac77aafe4676a45eb16a991f982d20130ed2 (diff) | |
download | chef-8d718172dc3c1ce186f6e48efe514d7d566006cb.tar.gz |
Use signing protocol 1.1 by defaultjdm/default-auth-1.1
All supported Chef servers support the 1.1 signing protocol.
There is no reason to continue using 1.0, and removing it
as the default allows us to remove a bunch of code that tries
to upgrade 1.0 to 1.1 when the node name is too long.
If the user specifies 1.0 as the auth protocol version from
this point on, they will have to guarantee that the node
name is not too long.
Diffstat (limited to 'lib/chef/knife.rb')
-rw-r--r-- | lib/chef/knife.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb index 6fa29bea16..59e15d492b 100644 --- a/lib/chef/knife.rb +++ b/lib/chef/knife.rb @@ -385,12 +385,6 @@ class Chef Mixlib::Log::Formatter.show_time = false Chef::Log.init(Chef::Config[:log_location]) Chef::Log.level(Chef::Config[:log_level] || :error) - - if Chef::Config[:node_name] && Chef::Config[:node_name].bytesize > 90 - # node names > 90 bytes only work with authentication protocol >= 1.1 - # see discussion in config.rb. - Chef::Config[:authentication_protocol_version] = "1.1" - end end def configure_chef |