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

rbac: Add Telemetry and Licence nag #17163

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

BenPope
Copy link
Member

@BenPope BenPope commented Mar 18, 2024

First 2 commits are from #17089

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

@vbotbuildovich
Copy link
Collaborator

vbotbuildovich commented Mar 18, 2024

Copy link
Member

@oleiman oleiman left a comment

Choose a reason for hiding this comment

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

LGTM. One question about ranges relative to another change I have pending.

@@ -252,6 +255,9 @@ metrics_reporter::build_metrics_snapshot() {
snapshot.has_oidc = config::oidc_is_enabled_kafka()
|| config::oidc_is_enabled_http();

snapshot.has_rbac
= !_role_store.local().range([](auto const&) { return true; }).empty();
Copy link
Member

Choose a reason for hiding this comment

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

I have a change on this pr that takes the std::ranges out of the role_store interface.

So in this case we would wind up constructing a container of all role names to satisfy this query. For this usage, should we just add a role_store::empty method instead?

Other alternative is to leave the view in the interface, which might be preferable. That same PR breaks the near tree-wide dependency on role_store.h fwiw.

Copy link
Member Author

@BenPope BenPope Mar 18, 2024

Choose a reason for hiding this comment

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

So in this case we would wind up constructing a container of all role names to satisfy this query. For this usage, should we just add a role_store::empty method instead?

Sufficient.

Copy link
Contributor

@pgellert pgellert left a comment

Choose a reason for hiding this comment

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

lgtm

Signed-off-by: Ben Pope <ben@redpanda.com>
Fixes redpanda-data/core-internal#1137

Signed-off-by: Ben Pope <ben@redpanda.com>
Fixes redpanda-data/core-internal#1136

Signed-off-by: Ben Pope <ben@redpanda.com>
@BenPope
Copy link
Member Author

BenPope commented Mar 18, 2024

Changes in force-push :

  • Clean rebase

Copy link
Member

@oleiman oleiman left a comment

Choose a reason for hiding this comment

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

lgtm

@BenPope BenPope merged commit bcc24d7 into redpanda-data:dev Mar 19, 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

4 participants