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

rpk: fix mixed use of backcompat flags with -X #16278

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

r-vasquez
Copy link
Contributor

We were giving priority to old back compatibility
flags (like --user, --password) over the new
configuration (-X) flags. So if a user used both,
the old ones got priority.

This introduced a bug in rpk acl user create
where we have a flag that collides with an old
flag name: --password.

Fixes #16251

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x
  • v23.1.x

Release Notes

Bug Fixes

  • rpk: fixed a bug where the --password flag could not be used along with the new configuration flag -X pass in clusters where basic authentication was enabled.

@r-vasquez
Copy link
Contributor Author

/dt

@vbotbuildovich
Copy link
Collaborator

vbotbuildovich commented Jan 25, 2024

new failures in https://buildkite.com/redpanda/redpanda/builds/44247#018d3db6-daf7-47b7-a362-1edf1f25f0e9:

"rptest.tests.rpk_acl_test.RpkACLTest.test_back_compat_flags"
"rptest.tests.leadership_transfer_test.AutomaticLeadershipBalancingTest.test_automatic_rebalance"

new failures in https://buildkite.com/redpanda/redpanda/builds/44247#018d3dc6-b87e-478d-9299-106f8bf35882:

"rptest.tests.rpk_acl_test.RpkACLTest.test_back_compat_flags"

We were giving priority to old back compatibility
flags (like --user, --password) over the new
configuration (-X) flags. So if a user used both,
the old ones got priority.

This introduced a bug in rpk acl user create
where we have a flag that collides with an old
flag name: --password.
@r-vasquez
Copy link
Contributor Author

/dt

@vbotbuildovich
Copy link
Collaborator

vbotbuildovich commented Jan 25, 2024

@r-vasquez r-vasquez marked this pull request as ready for review January 25, 2024 13:47
@r-vasquez
Copy link
Contributor Author

Unrelated error: https://buildkite.com/redpanda/redpanda/builds/44291#018d40e1-4549-41ce-b2d4-d91f0caed26a/6570-6895

Redpanda build timed out during RP unit test execution

@twmb twmb merged commit 66df6e2 into redpanda-data:dev Jan 29, 2024
22 of 24 checks passed
@twmb twmb deleted the prepend-flag-overrides branch January 29, 2024 16:16
@vbotbuildovich
Copy link
Collaborator

/backport v23.3.x

@vbotbuildovich
Copy link
Collaborator

/backport v23.2.x

@r-vasquez
Copy link
Contributor Author

Note: backport to v23.1.x is not needed since the issue doesn't exist in that version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rpk acl user create: ---password collides with -X pass
4 participants