Skip to content

AIP-84 Add GET User Permissions endpoint #47412

@bbovenzi

Description

@bbovenzi

Description

We are adding Auth and Permissions to the API. It would be great for the UI to be aware of permissions to proactively disable actions or views without the user seeing errors everywhere.

Ideally, this could be a ui/permissions endpoint that lists each entity and what CRUD actions the user can perform. If the action is missing, the UI will assume the user can't perform it.

[
  asset: ['GET', 'POST', 'PATCH', 'DELETE'],
  backfill: ...,
  connection: ...,
  dag_run: ...,
  dag: ...,
  task_instance: ...,
]

I don't know if the entities match 1-to-1 the API docs at http://localhost:29091/docs#/ but that would be the easiest I think.

Use case/motivation

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Labels

area:APIAirflow's REST/HTTP APIarea:authkind:featureFeature Requestspriority:highHigh priority bug that should be patched quickly but does not require immediate new release

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions