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

security: Various minor cleanups #17467

Merged
merged 6 commits into from
Mar 29, 2024
Merged

Conversation

oleiman
Copy link
Member

@oleiman oleiman commented Mar 28, 2024

Some PR comments from #17152, and a small related change to metrics_reporter

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

Release Notes

  • none

@oleiman oleiman requested a review from BenPope March 28, 2024 18:11
@oleiman oleiman self-assigned this Mar 28, 2024
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
And pass around members_store accessor as a noncopyable_function

Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
To return the number of roles in the store.

Also updates metrics_reporter to use this rather than a full on range
query, which would return a materialized container rather than a view.

Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
@@ -58,28 +58,7 @@ struct auth_result {
// If found, the role that was matched to provide authZ decision
std::optional<security::role_name> role;

friend std::ostream& operator<<(std::ostream& os, const auth_result& a) {
Copy link
Member

@BenPope BenPope Mar 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: Now you can move <fmt/core.h> to the .cc, but you'll have to add <iosfwd>

@oleiman
Copy link
Member Author

oleiman commented Mar 29, 2024

/ci-repeat 1

@vbotbuildovich
Copy link
Collaborator

@oleiman oleiman merged commit 7ed6872 into redpanda-data:dev Mar 29, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants