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

[v22.3.x] pandaproxy: Support SCRAM-SHA-512 for basic_auth #11430

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #11425

User credentials provided by basic auth cannot provide a sasl_mechanism.

During request authorization, both mechanisms are tried, but the
mechanism that succeeds was not propagated in the request_auth_result.

This commit propagates the successful mechanism and uses that during
the creation of the client when http basic auth is used for requests
to Pandaproxy, instead of hardcoding it to SCRAM-SHA-256.

Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit 9fc1bcb)
@vbotbuildovich vbotbuildovich added this to the v22.3.x-next milestone Jun 14, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jun 14, 2023
@BenPope BenPope self-assigned this Jun 14, 2023
@BenPope BenPope marked this pull request as ready for review June 14, 2023 16:07
@BenPope BenPope added area/pandaproxy REST interface for Kafka API area/security labels Jun 14, 2023
@BenPope BenPope merged commit 3989171 into redpanda-data:v22.3.x Jun 14, 2023
@BenPope BenPope modified the milestones: v22.3.x-next, v22.3.22 Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/pandaproxy REST interface for Kafka API area/redpanda area/security kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants