redpanda-data / redpanda-data/console

ACL tab not showing principles of type unknow

Open
#1,658 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backend feature frontend
Dominant language
TypeScript
Stars
4.3k
Forks
432
Avg merge
3d 6h
Merged PRs (30d)
40

Description

i'm using redpanda console to view the acls on my kafka cluster.
However, the acltab filters the list of ACLs based on principle type User, but we use ACLs based on SPIFFE, and the principle then starts with SPIFFE and not USER.
Why limit to ACLS of principleType USER, while other principle types also exist on kafka. Remove the filter or let the user be able to filter on principle type, perhaps default User, but the option to select all in the bowser should also be possible

In the ACL view on a topic, there is no filtering on principle type and the ACLs based on SPIFFE are shown.

Line of code that filters for Principle type USER
https://github.com/redpanda-data/console/blob/82547b42df8d5141814e0a0013c3bebcf63eb974/frontend/src/components/pages/acls/Acl.List.tsx#L584
Is it possible to change this behavior of filtering on principleType User?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open frontend/src/components/pages/acls/Acl.List.tsx at line 584 and compare its principle-type handling with the topic ACL view, where SPIFFE-based ACLs are shown. The change is complete when ACLs with non-USER principle types are visible or selectable in the ACL list without hiding existing USER ACLs.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
authorization, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.