bbovenzi opened a new issue, #47412:
URL: https://github.com/apache/airflow/issues/47412

   ### 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
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to