forked from hvac/hvac
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 1f88016 Author: Daniel Kimsey <90741+dekimsey@users.noreply.github.com> Date: Mon Aug 14 15:22:10 2023 -0500 Fix premature read on stream requests in the `sys.take_raft_snapshot` method (hvac#771) * Fix premature read on stream requests When a caller (such as `sys.take_raft_snapshot`) performs a stream request, the act of attempting to parse the response as JSON causes the entire response body to be read and the underlying connection to be closed. This renders the streaming response moot. This change addresses that issue by examining if the caller requested a stream response, and if so returning the response as is. Without the change, it is impossible to read raft snapshots that are larger than memory as the entire response is read into memory to attempt to read as JSON. * add the Adapter.from_adapter class method * add test for adapter class method * Modify raft snapshot to always use RawAdapter Co-authored-by: Daniel Kimsey <dkimsey@trustwave.com> --------- Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com> commit c398774 Author: ceesios <cees@virtu-on.nl> Date: Mon Aug 14 22:17:12 2023 +0200 ldap auth method - add missing `configure` params by vault api names (hvac#975) * add missing params by vault api names * move new parameters to the end * remove duplicate keys * add ldap tests for new params * fix black formatting * fix integrtion test with raw string * remove userfilter from integration test * Revert "remove userfilter from integration test" This reverts commit 296e9f2. * fix userFilter failure on Vault < 1.9 * fix capitalization * fix conditional for other tests * fix typo in user_dn doc * add generate_parameter_deprecation_message utility function * fixup * stop suppressing deprecation errors * add aliased_parameter decorator and tests * fix asterisks in docstring * Revert "fix asterisks in docstring" This reverts commit 1a599ec. * fix docstring asterisks without side effects * add testcases to fill out coverage of alias decorator * fix lint * update LDAP configure to use alias wrapper for replaced parameter names * update test references to use canonical names * add client_tls, connection_timeout, max_page_size, dereference_aliases and order remove_nones * Revert "add client_tls, connection_timeout, max_page_size, dereference_aliases and order remove_nones" This reverts commit 55d28f8. * add client_tls, connection_timeout, max_page_size, dereference_aliases and order remove_nones * add new params to unit tests --------- Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>
- Loading branch information
1 parent
36fbc1c
commit 9bb07a1
Showing
9 changed files
with
796 additions
and
69 deletions.
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
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.