diff options
author | Marc A. Paradise <marc.paradise@gmail.com> | 2019-04-16 13:49:07 -0400 |
---|---|---|
committer | Marc A. Paradise <marc.paradise@gmail.com> | 2019-04-24 13:27:57 -0400 |
commit | 210d729737814a0763fc089dd9815bf34b1be576 (patch) | |
tree | 8b6252d8989869dd76b2c226c0ddc6e56d81fac9 /RELEASE_NOTES.md | |
parent | c8495a64c41c92ea9bc7304b8d74e5e293b28d6d (diff) | |
download | chef-210d729737814a0763fc089dd9815bf34b1be576.tar.gz |
Add release notes for bootstrap
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
Diffstat (limited to 'RELEASE_NOTES.md')
-rw-r--r-- | RELEASE_NOTES.md | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 58018ee63f..f03da56563 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -44,6 +44,77 @@ The LC_ALL property in the locale resource has been deprecated as the usage of t ## Breaking Changes +### Knife Bootstrap + +Knife bootstrap has been updated, and Windows bootstrap has been merged in Knife core bootstrap. This marks the deprecation of knife-windows plugin's `bootstrap` behavior. +This addresses [CVE-2015-8559](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8559): The knife bootstrap command in chef leaks the validator.pem private RSA key to /var/log/messages. + +In order to accomodate a combined bootstrap that supports both SSH and WinRM, +CLI flags have been added/removed/changed. Using the changed options will +result in deprecation warnings, but will accept those options unless otherwise noted. +Using removed options will cause the command to fail. + +#### New Flags + +| Flag | Description | +|-----:|:-=----------| +| --max-wait SECONDS | Maximum time to wait for initial connection to be established. | +| --winrm-basic-auth-only | Perform only Basic Authentication to the target WinRM node. | +| --connection-protocol PROTOCOL|Connection protocol to use. Valid values are 'winrm' and 'ssh'. Default is 'ssh'. | +| --connection-user | user to authenticate as, regardless of protocol | +| --connection-password| Password to authenticate as, regardless of protocol | +| --connection-port | port to connect to, regardless of protocol | + +#### Changed Flags + +| Flag | New Option | Notes | +|-----:|:-----------|:------| +| --[no-]host-key-verify |--[no-]ssh-verify-host-key| | +| --forward-agent | --ssh-forward-agent| | +| --session-timeout MINUTES | --session-timeout SECONDS| the unit has changed from MINUTES to SECONDS for consistency with other timeouts.| +| --ssh-password | --connection-password | | +| --ssh-port | --connection-port | `knife[:ssh_port]` config setting remains available. +| --ssh-user | --connection-user | `knife[:ssh_user]` config setting remains available. +| --ssl-peer-fingerprint | --winrm-ssl-peer-fingerprint | | +| --winrm-authentication-protocol=PROTO | --winrm-auth-method=AUTH-METHOD | Valid values: plaintext, kerberos, ssl, _negotiate_| +| --winrm-password| --connection-password | | +| --winrm-port| --connection-port | `knife[:winrm_port]` config setting remains available.| +| --winrm-ssl-verify-mode MODE | --winrm-no-verify-cert | [1] Mode is not accepted. When flag is present, SSL cert will not be verified. Same as original mode of 'verify_none'. | +| --winrm-transport TRANSPORT | --winrm-ssl | [1] Use this flag if the target host is accepts WinRM connections over SSL. +| --winrm-user | --connection-user | `knife[:winrm_user]` config setting remains available.| + +1. These flags do not have an automatic mapping of old flag -> new flag. The + new flag must be used. + +#### Removed Flags + +| Flag | Notes | +|-----:|:------| +|--kerberos-keytab-file| This option existed but was not implemented.| +|--winrm-codepage| This was used under knife-windows because bootstrapping + was performed over a `cmd` shell. It is now invoked + from `powershell`, so this option is no longer required.| +|--winrm-shell| n/a | This option was ignored for bootstrap. | + +#### Usage Changes + +Instead of specifying protocol with `-o`, it's also possible to prefix +the target hostname with the protocol in URL format. For example: + +``` + knife bootstrap example.com -o ssh + knife bootstrap ssh://example.com + knife bootstrap example.com -o winrm + knife bootstrap winrm://example.com +``` + + +#### Win2008 + +The new bootstrap on Windows uses Powershell, and is compatible only in +versions of Powershell included in Win2008R2 and later. To bootstrap older/unpatched +Win2k8 nodes, please continue to use the `knife-bootstrap` plugin. + ### Audit Mode Chef's Audit mode was introduced in 2015 as a beta that needed to be enabled via client.rb. Its functionality has been superceded by InSpec and has been removed. |