Skip to content

Kafka ACL table should print the mapped values instead of directly printing the enums from the backend #1247

@craicoverflow

Description

@craicoverflow

For the ACL CRUD commands we have mapped all enums from permission, operation, resource type to lower case forms. There are a couple of reasons making the user enter uppercase values is not preferred and we should try to avoid this:

  • It is more difficult to type, as the user must turn on CAPS LOCK.
  • It is more difficult to read, as uppercase letters are more uniform and harder to tell apart.

Current output:

  PRINCIPAL (6)    PERMISSION   OPERATION          DESCRIPTION                 
 ---------------- ------------ ------------------ ---------------------------- 
  All accounts     ALLOW        DESCRIBE_CONFIGS   TOPIC is "*"                
  All accounts     ALLOW        DESCRIBE           TOPIC is "*"               

Preferred output:

  PRINCIPAL (6)    PERMISSION   OPERATION          DESCRIPTION                 
 ---------------- ------------ ------------------ ---------------------------- 
  All accounts     allow        describe-configs   topic is "*"                
  All accounts     allow        describe           topic is "*"               

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions