Apache Airflow version
3.1.4
If "Other Airflow 2/3 version" selected, which one?
No response
What happened?
In Airflow 3.1.4, the ApprovalOperator’s assigned_users argument appears to depend on the configured auth manager.
When I use SimpleAuthManager and set simple_auth_manager_all_admins=True, assigned_users becomes effectively unusable: no one can approve or reject in the UI.
I suspect this is because when simple_auth_manager_all_admins=True, SimpleAuthManager does not create/populate the ab_user table, so assigned_users has no user table to resolve against.
What you think should happen instead?
When simple_auth_manager_all_admins=True, ApprovalOperator should ignore assigned_users (or treat it as “everyone”) and allow all logged-in users to approve/reject, since “all admins” mode implies there is no real user directory backing assigned_users.
(Alternatively, Airflow could validate this configuration and raise a clear error explaining that assigned_users requires a real user store, but the current behavior is a silent “nobody can approve.”)
How to reproduce
- Configure the auth manager to SimpleAuthManager
- Set
simple_auth_manager_all_admins to True
- Create a DAG that uses
ApprovalOperator with assigned_users set to one or more usernames or simple None
- Trigger the DAG and open the approval UI
Operating System
LM 21.3 with docker python:3.12-slim-bookworm
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
Apache Airflow version
3.1.4
If "Other Airflow 2/3 version" selected, which one?
No response
What happened?
In Airflow 3.1.4, the
ApprovalOperator’sassigned_usersargument appears to depend on the configured auth manager.When I use
SimpleAuthManagerand setsimple_auth_manager_all_admins=True,assigned_usersbecomes effectively unusable: no one can approve or reject in the UI.I suspect this is because when
simple_auth_manager_all_admins=True,SimpleAuthManagerdoes not create/populate theab_usertable, soassigned_usershas no user table to resolve against.What you think should happen instead?
When
simple_auth_manager_all_admins=True,ApprovalOperatorshould ignoreassigned_users(or treat it as “everyone”) and allow all logged-in users to approve/reject, since “all admins” mode implies there is no real user directory backingassigned_users.(Alternatively, Airflow could validate this configuration and raise a clear error explaining that assigned_users requires a real user store, but the current behavior is a silent “nobody can approve.”)
How to reproduce
simple_auth_manager_all_adminstoTrueApprovalOperatorwithassigned_usersset to one or more usernames or simpleNoneOperating System
LM 21.3 with docker python:3.12-slim-bookworm
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct