Skip to content

Commit

Permalink
backend: add MANAGE_RBAC to redpanda capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
weeco committed Feb 5, 2025
1 parent d9fbd46 commit 59466e7
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 54 deletions.
1 change: 1 addition & 0 deletions backend/pkg/api/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ func (a AuthenticationDefaultHandler) GetIdentity(context.Context, *connect.Requ
v1alpha1.RedpandaCapability_REDPANDA_CAPABILITY_MANAGE_DEBUG_BUNDLE,
v1alpha1.RedpandaCapability_REDPANDA_CAPABILITY_MANAGE_REDPANDA_USERS,
v1alpha1.RedpandaCapability_REDPANDA_CAPABILITY_MANAGE_RBAC,
v1alpha1.RedpandaCapability_REDPANDA_CAPABILITY_MANAGE_LICENSE,
},
},
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ export enum RedpandaCapability {
* @generated from enum value: REDPANDA_CAPABILITY_MANAGE_RBAC = 4;
*/
MANAGE_RBAC = 4,

/**
* @generated from enum value: REDPANDA_CAPABILITY_MANAGE_LICENSE = 5;
*/
MANAGE_LICENSE = 5,
}
// Retrieve enum metadata with: proto3.getEnumType(RedpandaCapability)
proto3.util.setEnumType(RedpandaCapability, "redpanda.api.console.v1alpha1.RedpandaCapability", [
Expand All @@ -247,6 +252,7 @@ proto3.util.setEnumType(RedpandaCapability, "redpanda.api.console.v1alpha1.Redpa
{ no: 2, name: "REDPANDA_CAPABILITY_MANAGE_DEBUG_BUNDLE" },
{ no: 3, name: "REDPANDA_CAPABILITY_MANAGE_REDPANDA_USERS" },
{ no: 4, name: "REDPANDA_CAPABILITY_MANAGE_RBAC" },
{ no: 5, name: "REDPANDA_CAPABILITY_MANAGE_LICENSE" },
]);

/**
Expand Down
1 change: 1 addition & 0 deletions proto/redpanda/api/console/v1alpha1/authentication.proto
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ enum RedpandaCapability {
REDPANDA_CAPABILITY_MANAGE_DEBUG_BUNDLE = 2;
REDPANDA_CAPABILITY_MANAGE_REDPANDA_USERS = 3;
REDPANDA_CAPABILITY_MANAGE_RBAC = 4;
REDPANDA_CAPABILITY_MANAGE_LICENSE = 5;
}

message GetIdentityRequest {}
Expand Down

0 comments on commit 59466e7

Please sign in to comment.