Skip to content
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

Backport of Correct Default for MaximumPageSize into release/1.13.x #20639

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #20453 to be assessed for backporting due to the inclusion of the label backport/1.13.x.

🚨

Warning automatic cherry-pick of commits failed. If the first commit failed,
you will see a blank no-op commit below. If at least one commit succeeded, you
will see the cherry-picked commits up to, not including, the commit where
the merge conflict occurred.

The person who merged in the original PR is:
@ltcarbonell
This person should manually cherry-pick the original PR into a new backport PR,
and close this one when the manual backport PR is merged in.

merge conflict error: POST https://api.github.com/repos/hashicorp/vault/merges: 409 Merge conflict []

The below text is copied from the body of the original PR.


This pull request addresses a problem that was introduced in a previous pull request (#19032). The earlier PR added a new configuration option called max_page_size to the LDAP secret engine. This option allows users to adjust the size of the paged search results. By default, it is set to 2147483647 (math.MaxInt32), but it can also be set to -1 to use non-paged searching.

The issue occurs when upgrading Vault to 1.13.2, 1.12.6, or 1.11.10, that has an existing LDAP Auth configuration. This would result in the max_page_size being set to 0 instead of the intended default of 2147483647.

Resolves #20416


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/ldap-max-page-default/accurately-intense-bullfrog branch from d157eb8 to b3ff0d2 Compare May 17, 2023 20:57
@hashicorp-cla
Copy link

hashicorp-cla commented May 17, 2023

CLA assistant check
All committers have signed the CLA.

* default max page size for config

* Add changelog

* update test int to *int

* add testing defaults

* update default to -1, i.e. dont paginate

* update test

* Add error message for invalid search

* Make 0 the default

* cleanup

* Add to known issues doc

* Update website/content/docs/upgrading/upgrade-to-1.13.x.mdx

* Update website/content/docs/upgrading/upgrade-to-1.11.x.mdx

Co-authored-by: Jason O'Donnell <[email protected]>

* Update website/content/docs/upgrading/upgrade-to-1.13.x.mdx

Co-authored-by: Jason O'Donnell <[email protected]>

* Update website/content/docs/upgrading/upgrade-to-1.12.x.mdx

Co-authored-by: Jason O'Donnell <[email protected]>

* Add workaround to docs

* Update changelog/20453.txt

Co-authored-by: Austin Gebauer <[email protected]>

---------

Co-authored-by: Jason O'Donnell <[email protected]>
Co-authored-by: Austin Gebauer <[email protected]>
@ltcarbonell ltcarbonell force-pushed the backport/ldap-max-page-default/accurately-intense-bullfrog branch from 4a50d6f to 050c81f Compare May 17, 2023 21:18
@ltcarbonell ltcarbonell marked this pull request as ready for review May 17, 2023 21:18
@ltcarbonell ltcarbonell requested a review from yhyakuna as a code owner May 17, 2023 21:18
@ltcarbonell ltcarbonell added this to the 1.13.3 milestone May 17, 2023
@ltcarbonell ltcarbonell merged commit 107bd9e into release/1.13.x May 17, 2023
@ltcarbonell ltcarbonell deleted the backport/ldap-max-page-default/accurately-intense-bullfrog branch May 17, 2023 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants