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

release-19.2: pgwire/hba: fix a bug in the parsing logic #43714

Merged
merged 2 commits into from
Jan 3, 2020

Conversation

knz
Copy link
Contributor

@knz knz commented Jan 3, 2020

Backport 2/2 commits from #43713.

/cc @cockroachdb/release


@knz knz requested a review from maddyblue January 3, 2020 14:28
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz knz force-pushed the backport19.2-43713 branch from 481fd76 to 837c02e Compare January 3, 2020 15:40
knz added 2 commits January 3, 2020 16:46
There is a bug in the code, however the HBA parsing test was unable to
see it. This patch changes the test to outline the bug ahead of fixing
it.

Release note: None
Release note (bug fix): There was a bug in the parsing logic for
server.host_based_authentication.configuration, where both
single-character strings, and quoted strings containing spaces and
separated by commas were not properly parsed. This would cause
e.g. rules for usernames consisting of a single characters, or
usernames containing spaces, to apply improperly.
@knz knz force-pushed the backport19.2-43713 branch from 837c02e to e943575 Compare January 3, 2020 15:47
@knz knz merged commit 6cc3423 into cockroachdb:release-19.2 Jan 3, 2020
@knz knz deleted the backport19.2-43713 branch January 3, 2020 23:30
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