-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Deprecate timeout.tcp_read AD/LDAP realm setting #47305
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
Deprecate timeout.tcp_read AD/LDAP realm setting #47305
Conversation
|
Pinging @elastic/es-security |
jkakavas
left a comment
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.
LGTM
Co-Authored-By: Ioannis Kakavas <[email protected]>
Co-Authored-By: Ioannis Kakavas <[email protected]>
|
@elasticmachine update branch |
|
Note, I plan to follow-up with the deprecation check and the breaking change PRs when this is merged and backported. |
|
|
||
| [float] | ||
| [[ldap-ad-realms-tcp-read-timeout-removed]] | ||
| ==== The `timeout.tcp_read` AD and LDAP realm settings have been removed |
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'm confused by the removed here. This PR doesn't remove them - I think this whole docs piece should be held over to the removal PR.
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.
Agreed. I'll hold this off for the actual removal PR.
| connection. This is equivalent to and is deprecated in favor of | ||
| `timeout.response` and they cannot be used simultaneously. An `s` at the end | ||
| indicates seconds, or `ms` indicates milliseconds. Defaults to the value of | ||
| `timeout.ldap_search`. |
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'd propose that we remove the "Defaults to ..." from here, since it is the deprecated setting, it doesn't really have a default.
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.
Good point! If you one doesn't specify the deprecated settings, it's the new settings that takes a default value, the old one is just deprecated.
|
@tvernum I have acted on your objections, please take another look. |
|
@elasticmachine update branch |
…lastic#51492) Changes the find_file_structure response to include a CSV ingest processor in the ingest pipeline it suggests. Previously the Kibana file upload functionality parsed CSV in the browser, but by parsing CSV in the ingest pipeline it makes the Kibana file upload functionality more easily interchangable with Filebeat such that the configurations it creates can more easily be used to import data with the same structure repeatedly in production.
We no longer issue new sync_ids in 8.0, but we still need to make sure that the replica allocator prefers copies with matching sync_id. This commit adds tests for that. Relates elastic#50776
Previous the formatter was breaking simple if/else statements (i.e. without braces) onto separate lines, which could be fragile because the formatter cannot also introduce braces. Instead, keep such expressions on the same line.
|
Aaaaargh, apologies for the bogus commit message! |
The timeout.tcp_read AD/LDAP realm setting, despite the low-level allusion, controls the time interval the realms wait for a response for a query (search or bind). If the connection to the server is synchronous (un-pooled) the response timeout is analogous to the tcp read timeout. But the tcp read timeout is irrelevant in the common case of a pooled connection (when a Bind DN is specified). The timeout.tcp_read qualifier is hereby deprecated in favor of timeout.response. In addition, the default value for both timeout.tcp_read and timeout.response is that of timeout.ldap_search, instead of the 5s (but the default for timeout.ldap_search is still 5s). The timeout.ldap_search defines the server-controlled timeout of a search request. There is no practical use case to have a smaller tcp_read timeout compared to ldap_search (in this case the request would time-out on the client but continue to be processed on the server). The proposed change aims to simplify configuration so that the more common configuration change, adjusting timeout.ldap_search up, has the expected result (no timeout during searches) without any additional modifications. Closes #46028
The
timeout.tcp_readAD/LDAP realm setting, despite the low-level allusion, controls the time interval the realms wait for a response for a query (search or bind). If the connection to the server is synchronous (un-pooled) the response timeout is analogous to the tcp read timeout. But the tcp read timeout is irrelevant in the common case of a pooled connection (when a Bind DN is specified).The
timeout.tcp_readqualifier is hereby deprecated in favor oftimeout.response.In addition, the default value for both
timeout.tcp_readandtimeout.responseis that oftimeout.ldap_search, instead of the5s(but the default fortimeout.ldap_searchis still5s). Thetimeout.ldap_searchdefines the server-controlled timeout of a search request. There is no practical use case to have a smallertcp_readtimeout compared toldap_search(in this case the request would time-out on the client but continue to be processed on the server). The proposed change aims to simplify configuration so that the more common configuration change, adjustingtimeout.ldap_searchup, has the expected result (no timeout during searches) without any additional modifications.Closes #46028