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/role: Minor cleanups #17447

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

oleiman
Copy link
Member

@oleiman oleiman commented Mar 27, 2024

  • role_member::name should return a const& for flexibility
    • still satisfies concept RoleMember b/c/ const sstring& is convertible to std::string_view
  • role::members&& should return a value type to express sensible move semantics
  • role_store::put can take the members range as const&, rather than &&
    • since we're taking members from the range and copying them into internal containers anyway

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

- role_member::name should return a const& for flexibility
  - still satisfies concept RoleMember b/c/ const sstring& is
    convertible to std::string_view
- role::members&& should return a value type to express sensible
  move semantics
- role_store::put can take the members range as const&, rather than &&
  - since we're taking members from the range and copying them into
    internal containers anyway
@oleiman
Copy link
Member Author

oleiman commented Mar 28, 2024

/dt

@dotnwat dotnwat merged commit 3ffb28e into redpanda-data:dev Mar 28, 2024
18 checks passed
@oleiman oleiman deleted the rbac/role-store-improvements branch March 28, 2024 04:57
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

2 participants