-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Closed
Labels
area:APIAirflow's REST/HTTP APIAirflow's REST/HTTP APIarea:authkind:featureFeature RequestsFeature Requestspriority:highHigh priority bug that should be patched quickly but does not require immediate new releaseHigh priority bug that should be patched quickly but does not require immediate new release
Milestone
Description
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
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
area:APIAirflow's REST/HTTP APIAirflow's REST/HTTP APIarea:authkind:featureFeature RequestsFeature Requestspriority:highHigh priority bug that should be patched quickly but does not require immediate new releaseHigh priority bug that should be patched quickly but does not require immediate new release