Skip to content

Polaris CLI: add options for entities relation overview #989

@MonkeyCanCode

Description

@MonkeyCanCode

Is your feature request related to a problem? Please describe.

Currently an user can use polaris cli to list entities (e.g. list principal, principal role, catalog, catalog role, privileges, etc.). This is great but seems to be really tedious for some common administration tasks such as

  1. what access does user X has and show the linked entities in an easy to read representation (e.g. https://polaris.apache.org/img/quickstart/privilege-illustration-2.png but on terminal)
  2. which entities are orphans
  3. what is the difference between two principals or catalog roles

Describe the solution you'd like

If there is no plan to add those as new API endpoints, we can always create wrapper function in existed CLI to invoke diff API endpoints and come up with the result for the above questions.

One concern I have with this approach is currently we have two "admin tools":

  1. java version for backend management (bootstrap and purge only)
  2. python version for polaris entities management (needed bootstrapped backend and doesn't support functionalities in java version)

Do we still want to proceed with above separation or move those into one instead?

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions