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?
Code of Conduct
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/permissionsendpoint 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.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?
Code of Conduct