-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark previously deprecated SSL settings as obsolete #1197
Merged
donoghuc
merged 8 commits into
logstash-plugins:main
from
donoghuc:GH-1190-mark-ssl-opts-obsolete
Dec 24, 2024
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5bd9049
Mark previously deprecated SSL settings as obsolete
donoghuc 531ed9b
Restore deleted footer
donoghuc 2e7a066
Remove reference to deprecated options
donoghuc edf3ec3
Remove characters copied from a diff view
donoghuc 10d03c3
Fix reference to old removed ssl setting
donoghuc 10ffe54
Remove whitespace
donoghuc 98bd942
Restore deleted pipe character
donoghuc 41058cb
Add a note detailing removal
donoghuc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -325,8 +325,10 @@ When a string value on an event contains one or more byte sequences that are not | |
[id="plugins-{type}s-{plugin}-options"] | ||
==== Elasticsearch Output Configuration Options | ||
|
||
This plugin supports the following configuration options plus the | ||
<<plugins-{type}s-{plugin}-common-options>> and the <<plugins-{type}s-{plugin}-deprecated-options>> described later. | ||
This plugin supports these configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later. | ||
donoghuc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
NOTE: As of version 12.0.0 of this plugin, a number of previously deprecated SSL settings have been removed. | ||
Please check out <<plugins-{type}s-{plugin}-obsolete-options>> for details. | ||
|
||
[cols="<,<,<",options="header",] | ||
|======================================================================= | ||
|
@@ -441,7 +443,7 @@ For more details on actions, check out the {ref}/docs-bulk.html[Elasticsearch bu | |
* There is no default value for this setting. | ||
|
||
Authenticate using Elasticsearch API key. | ||
Note that this option also requires SSL/TLS, which can be enabled by supplying a <<plugins-{type}s-{plugin}-cloud_id>>, a list of HTTPS <<plugins-{type}s-{plugin}-hosts>>, or by setting <<plugins-{type}s-{plugin}-ssl,`ssl_enabled => true`>>. | ||
Note that this option also requires SSL/TLS, which can be enabled by supplying a <<plugins-{type}s-{plugin}-cloud_id>>, a list of HTTPS <<plugins-{type}s-{plugin}-hosts>>, or by setting <<plugins-{type}s-{plugin}-ssl_enabled,`ssl_enabled => true`>>. | ||
|
||
Format is `id:api_key` where `id` and `api_key` are as returned by the | ||
Elasticsearch {ref}/security-api-create-api-key.html[Create API key API]. | ||
|
@@ -1324,98 +1326,24 @@ https://www.elastic.co/blog/elasticsearch-versioning-support[versioning support | |
blog] and {ref}/docs-index_.html#_version_types[Version types] in the | ||
Elasticsearch documentation. | ||
|
||
[id="plugins-{type}s-{plugin}-deprecated-options"] | ||
==== Elasticsearch Output Deprecated Configuration Options | ||
|
||
This plugin supports the following deprecated configurations. | ||
[id="plugins-{type}s-{plugin}-obsolete-options"] | ||
==== Elasticsearch Output Obsolete Configuration Options | ||
|
||
WARNING: Deprecated options are subject to removal in future releases. | ||
WARNING: As of version `12.0.0` of this plugin, some configuration options have been replaced. | ||
The plugin will fail to start if it contains any of these obsolete options. | ||
|
||
[cols="<,<,<",options="header",] | ||
[cols="<,<",options="header",] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Delete extra space before delimiters in table (lines 1333 and 1342) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated in 8282103 |
||
|======================================================================= | ||
|Setting|Input type|Replaced by | ||
| <<plugins-{type}s-{plugin}-cacert>> |a valid filesystem path|<<plugins-{type}s-{plugin}-ssl_certificate_authorities>> | ||
| <<plugins-{type}s-{plugin}-keystore>> |a valid filesystem path|<<plugins-{type}s-{plugin}-ssl_keystore_path>> | ||
| <<plugins-{type}s-{plugin}-keystore_password>> |<<password,password>>|<<plugins-{type}s-{plugin}-ssl_keystore_password>> | ||
| <<plugins-{type}s-{plugin}-ssl>> |<<boolean,boolean>>|<<plugins-{type}s-{plugin}-ssl_enabled>> | ||
| <<plugins-{type}s-{plugin}-ssl_certificate_verification>> |<<boolean,boolean>>|<<plugins-{type}s-{plugin}-ssl_verification_mode>> | ||
| <<plugins-{type}s-{plugin}-truststore>> |a valid filesystem path|<<plugins-{type}s-{plugin}-ssl_truststore_path>> | ||
| <<plugins-{type}s-{plugin}-truststore_password>> |<<password,password>>|<<plugins-{type}s-{plugin}-ssl_truststore_password>> | ||
|Setting|Replaced by | ||
| cacert | <<plugins-{type}s-{plugin}-ssl_certificate_authorities>> | ||
| keystore | <<plugins-{type}s-{plugin}-ssl_keystore_path>> | ||
| keystore_password | <<plugins-{type}s-{plugin}-ssl_keystore_password>> | ||
| ssl | <<plugins-{type}s-{plugin}-ssl_enabled>> | ||
| ssl_certificate_verification | <<plugins-{type}s-{plugin}-ssl_verification_mode>> | ||
| truststore | <<plugins-{type}s-{plugin}-ssl_truststore_path>> | ||
| truststore_password | <<plugins-{type}s-{plugin}-ssl_truststore_password>> | ||
|======================================================================= | ||
|
||
|
||
[id="plugins-{type}s-{plugin}-cacert"] | ||
===== `cacert` | ||
deprecated[11.14.0, Replaced by <<plugins-{type}s-{plugin}-ssl_certificate_authorities>>] | ||
|
||
* Value type is a list of <<path,path>> | ||
* There is no default value for this setting. | ||
|
||
The .cer or .pem file to validate the server's certificate. | ||
|
||
[id="plugins-{type}s-{plugin}-keystore"] | ||
===== `keystore` | ||
deprecated[11.14.0, Replaced by <<plugins-{type}s-{plugin}-ssl_keystore_path>>] | ||
|
||
* Value type is <<path,path>> | ||
* There is no default value for this setting. | ||
|
||
The keystore used to present a certificate to the server. | ||
It can be either .jks or .p12 | ||
|
||
NOTE: You cannot use this setting and <<plugins-{type}s-{plugin}-ssl_certificate>> at the same time. | ||
|
||
[id="plugins-{type}s-{plugin}-keystore_password"] | ||
===== `keystore_password` | ||
deprecated[11.14.0, Replaced by <<plugins-{type}s-{plugin}-ssl_keystore_password>>] | ||
|
||
* Value type is <<password,password>> | ||
* There is no default value for this setting. | ||
|
||
Set the keystore password | ||
|
||
[id="plugins-{type}s-{plugin}-ssl"] | ||
===== `ssl` | ||
deprecated[11.14.0, Replaced by <<plugins-{type}s-{plugin}-ssl_enabled>>] | ||
|
||
* Value type is <<boolean,boolean>> | ||
* There is no default value for this setting. | ||
|
||
Enable SSL/TLS secured communication to Elasticsearch cluster. | ||
Leaving this unspecified will use whatever scheme is specified in the URLs listed in <<plugins-{type}s-{plugin}-hosts>> or extracted from the <<plugins-{type}s-{plugin}-cloud_id>>. | ||
If no explicit protocol is specified plain HTTP will be used. | ||
|
||
[id="plugins-{type}s-{plugin}-ssl_certificate_verification"] | ||
===== `ssl_certificate_verification` | ||
deprecated[11.14.0, Replaced by <<plugins-{type}s-{plugin}-ssl_verification_mode>>] | ||
|
||
* Value type is <<boolean,boolean>> | ||
* Default value is `true` | ||
|
||
Option to validate the server's certificate. Disabling this severely compromises security. | ||
For more information on disabling certificate verification please read | ||
https://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf | ||
|
||
[id="plugins-{type}s-{plugin}-truststore"] | ||
===== `truststore` | ||
deprecated[11.14.0, Replaced by <<plugins-{type}s-{plugin}-ssl_truststore_path>>] | ||
|
||
* Value type is <<path,path>> | ||
* There is no default value for this setting. | ||
|
||
The truststore to validate the server's certificate. | ||
It can be either `.jks` or `.p12`. | ||
Use either `:truststore` or `:cacert`. | ||
|
||
[id="plugins-{type}s-{plugin}-truststore_password"] | ||
===== `truststore_password` | ||
deprecated[11.14.0, Replaced by <<plugins-{type}s-{plugin}-ssl_truststore_password>>] | ||
|
||
* Value type is <<password,password>> | ||
* There is no default value for this setting. | ||
|
||
Set the truststore password | ||
|
||
[id="plugins-{type}s-{plugin}-common-options"] | ||
include::{include_path}/{type}.asciidoc[] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NO CHANGE NEEDED HERE.
ON MERGE, we might have a conflict to resolve. Please be sure to keep what's currently in source.
The correct PR number is #1195.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can explicitly rebase against main and push that to this branch. Locally that looks right, i'll push so there is no confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed the rebase, it looks correct in the expanded diff now :)