You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "markhc (via GitHub)" <gi...@apache.org> on 2025/06/02 14:41:50 UTC
[I] Airflow v3 user creation command fails [airflow]
markhc opened a new issue, #51304:
URL: https://github.com/apache/airflow/issues/51304
### Apache Airflow version
3.0.1
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
Unsure if this is my mistake, but the createUserJob fails on Kubernetes using the Helm chart.
Here's the output of the `airflow users` command that displays the same error as the createUserJob.
```
airflow@airflow-api-server-6865b4769f-cvl2c:/opt/airflow$ airflow users
Usage: airflow [-h] GROUP_OR_COMMAND ...
Positional Arguments:
GROUP_OR_COMMAND
Groups
assets Manage assets
backfill Manage backfills
config View configuration
connections Manage connections
dags Manage DAGs
db Database operations
jobs Manage jobs
kubernetes Tools to help run the KubernetesExecutor
pools Manage pools
providers Display providers
tasks Manage tasks
variables Manage variables
Commands:
api-server Start an Airflow API server instance
cheat-sheet Display cheat sheet
dag-processor Start a dag processor instance
info Show information about current Airflow and environment
kerberos Start a kerberos ticket renewer
plugins Dump information about loaded plugins
rotate-fernet-key
Rotate encrypted connection credentials and variables
scheduler Start a scheduler instance
standalone Run an all-in-one copy of Airflow
triggerer Start a triggerer instance
version Show the version
Options:
-h, --help show this help message and exit
airflow command error: argument GROUP_OR_COMMAND: invalid choice: 'users' (choose from api-server, assets, backfill, cheat-sheet, config, connections, dag-processor, dags, db, info, jobs, kerberos, kubernetes, plugins, p
ools, providers, rotate-fernet-key, scheduler, standalone, tasks, triggerer, variables, version), see help above.
```
### What you think should happen instead?
_No response_
### How to reproduce
Run `airflow users -h` on v3.0.1 Airflow Docker image.
### Operating System
Kubernetes
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
Deployment on GKE using ArgoCD.
### Anything else?
_No response_
### Are you willing to submit 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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "markhc (via GitHub)" <gi...@apache.org>.
markhc commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2931163164
This is a standard deploy using the provided helm chart. I have not modified any settings related to providers, so if it doesn't come pre-installed I do not have it.
My point is that, in my opinion, a standard installation should work out of the box.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "Iphykay (via GitHub)" <gi...@apache.org>.
Iphykay commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2978064010
From version>=3.0.0, no subcommand 'users'.
You would have to use airflow standalone, which also gets an error
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #51304: Airflow v3 user creation command fails
URL: https://github.com/apache/airflow/issues/51304
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "Brunda10 (via GitHub)" <gi...@apache.org>.
Brunda10 commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3127194860
Changed default Breeze auth_manager to FabAuthManager (from simple_auth). Tested inside Kubernetes container shell: able to create users and verify FAB auth setup via CLI and UI.
<img width="1864" height="501" alt="Image" src="https://github.com/user-attachments/assets/cf23c319-16d4-4577-bf84-8b12ec2d646b" />
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "Brunda10 (via GitHub)" <gi...@apache.org>.
Brunda10 commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3118638061
This happens because Airflow 3.x uses SimpleAuthManager as the default auth manager, which does not support the airflow users CLI command.
Even if you try to use FabAuthManager, the system may override it back to SimpleAuthManager—especially in dev setups (like Breeze or standalone mode), where the environment is explicitly set or forced during container startup.
To fix this and re-enable the users CLI, you need to explicitly set the following environment variable:
export AIRFLOW__CORE__AUTH_MANAGER=airflow.providers.fab.auth_manager.fab_auth_manager.FabAuthManager
and restarting the breeze environment
<img width="1842" height="567" alt="Image" src="https://github.com/user-attachments/assets/743dd1df-95f8-440c-856c-4ddcf6c746e9" />
<img width="1263" height="579" alt="Image" src="https://github.com/user-attachments/assets/f6db6bd8-7561-4d5e-8047-333e48dee536" />
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "samir-ibbou (via GitHub)" <gi...@apache.org>.
samir-ibbou commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3215293679
Hi,
I have a error message when I log in with FAB auth manager.
I don't know if you can help me.
<img width="745" height="416" alt="Image" src="https://github.com/user-attachments/assets/2bce6708-425f-4d05-9e4c-a721098737fd" />
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "markhc (via GitHub)" <gi...@apache.org>.
markhc commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2931297448
Also, even after installing `apache-airflow-providers-fab` the error persists
```
airflow@airflow-api-server-6865b4769f-cvl2c:/opt/airflow$ pip freeze | grep fab
apache-airflow-providers-fab==2.0.2
```
```
airflow@airflow-api-server-6865b4769f-cvl2c:/opt/airflow$ airflow users create
Usage: airflow [-h] GROUP_OR_COMMAND ...
Positional Arguments:
GROUP_OR_COMMAND
[...] omitted for brevity
Options:
-h, --help show this help message and exit
airflow command error: argument GROUP_OR_COMMAND: invalid choice: 'users' (choose from api-server, assets, backfill, cheat-sheet, config, connections, dag-processor, dags, db, info, jobs, kerberos, kubernetes, plugins, p
ools, providers, rotate-fernet-key, scheduler, standalone, tasks, triggerer, variables, version), see help above.
```
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "prakharcode (via GitHub)" <gi...@apache.org>.
prakharcode commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3325420674
cool, let me know if adding to helm chart makes sense @ashb @potiuk then I can take it.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "prakharcode (via GitHub)" <gi...@apache.org>.
prakharcode commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3328826085
I just had a look again, and within the `webserver` Values in the `defaultUser` value you can put `enabled: false` this solves the issue of having a failed container on a helm release of airflow.
```yaml
webserver:
enabled: false
defaultUser:
enabled: false
```
What bothers me is that these values are used from webserver but not from apiServer or directly giving a `enabled: false` within the `createUser` job Values.
For now I will add an enabled parameter in the values with the chart taking an `and` condition on both job `webserver.defaultUser.enabled` and `createUserJob.enabled`
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2955287141
> It also failed for me when using the helm chart, in fact, it does not show up in airflow subcommands but fab is installed and used for Oauth against Azure. Very weird.
I think it depends on how you are running the `airflow` command and whether the container you are running it in has the FAB provider installed and FAB Auth manager configured. Can you check it ?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3135258393
Think about what the a comment adds to the issue - does the LLM output saying how you fixed it in a PR add anything to the issue?
I'm sorry for marking it as spam , but we get a lot of such LLM generated content, which are always long and it takes a lot of the maintainer time to read, and understand, when a much shorter and more succinct post is better. Essentially by having the full LLM content you are putting the onus on us as already-time-stretched-maintainers to do more work.
So I don't mind LLM per-se, just please be thoughtful of what invisible work you might be putting on maintainers.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3136662268
> So I don't mind LLM per-se, just please be thoughtful of what invisible work you might be putting on maintainers.
I am here very much with @ashb - adding a lot of LLM generated text describing the issue in a chatty way is generally noise. We have to - as maintainers - read that noise in order to decide what to do - and it's not helpful in anything.
So do not treat it personally @Brunda10 -> just be careful what kind of information you post in the issue - and especially be very careful about amount of non-helpful and not-adding value generated "mumbling" the AI agents love to produce.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2931130004
Do you have Airflow fab provider installed?
https://airflow.apache.org/docs/apache-airflow-providers-fab/stable/cli-ref.html
https://github.com/apache/airflow/blob/main/providers/fab/src/airflow/providers/fab/auth_manager/cli_commands/user_command.py
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "GrumpyCat51 (via GitHub)" <gi...@apache.org>.
GrumpyCat51 commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2987734644
@mrbungie may I ask how you added the `AIRFLOW__CORE__AUTH_MANAGER` variable? Did you add it through the `extraEnv:`/`extraEnvFrom`, or through the `config.core:` variable (or any other way)?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3215636089
> I have a error message when I log in with FAB auth manager.
Not really. Maybe someone will be able to help you if you open discsusion and try to explain your configuration logs etc. but helping with a screenshot of "not authorized" is not actionable for help.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2934963740
> > You need to have `FabAuthManager` conifgured. The `users` command is part of the Fab Auth Manaager https://airflow.apache.org/docs/apache-airflow-providers-fab/stable/cli-ref.html.
> > "Standard" installation now uses SimpleAuthManeager https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/auth-manager/simple/index.html
>
> Do you have an example on how to configure it then? Because I have the package installed and I've set `auth_manager = airflow.providers.fab.auth_manager.fab_auth_manager.FabAuthManager` in the `[core]` section of the config file but both `airflow users create` and `flask fab create-user` still fail.
No idea - works for me when I just set it - i guess some settings on your side are not applied in the container:

--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2969723841
OK. So it means that createUserJob template needs to be fixed. I marked it for next chart version and as good first issue. Anyone is invited to fix it.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "mrbungie (via GitHub)" <gi...@apache.org>.
mrbungie commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2954257228
It also failed for me when using the helm chart, in fact, it does not show up in airflow subcommands but fab is installed and used for Oauth against Azure. Very weird.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "Brunda10 (via GitHub)" <gi...@apache.org>.
Brunda10 commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3131747666
---
### 📝 Overview of the Issue
By default, the Breeze environment launches Airflow with `SimpleAuthManager`, which lacks support for role-based access control (RBAC), user management, and the full security UI. This makes it difficult for developers to test features that require a realistic authentication and authorization setup — for example, creating users via UI or CLI, assigning roles, or validating permissions.
```python
airflow@airflow-api-server-6865b4769f-cvl2c:/opt/airflow$ airflow users create
Usage: airflow [-h] GROUP_OR_COMMAND ...
Positional Arguments:
GROUP_OR_COMMAND
[...] omitted for brevity
Options:
-h, --help show this help message and exit
airflow command error: argument GROUP_OR_COMMAND: invalid choice: 'users' (choose from api-server, assets, backfill, cheat-sheet, config, connections, dag-processor, dags, db, info, jobs, kerberos, kubernetes, plugins, p
ools, providers, rotate-fernet-key, scheduler, standalone, tasks, triggerer, variables, version), see help above.
```
---
### 🔧 How the Issue Was Fixed
I updated the Breeze CLI logic and Airflow standalone logic to default to `FabAuthManager` instead of `SimpleAuthManager`.
#### 1. `developer_commands.py`
File:
`dev/breeze/src/airflow_breeze/commands/developer_commands.py`
Change:
```python
# Before:
default=ALLOWED_AUTH_MANAGERS[0], # SIMPLE_AUTH_MANAGER
# After:
default=ALLOWED_AUTH_MANAGERS[1], # FAB_AUTH_MANAGER
```
This ensures that `breeze start-airflow` launches Airflow with FAB Auth by default.
#### 2. `standalone_command.py`
File:
`airflow/cli/commands/standalone_command.py`
I updated the `auth_manager` used in standalone mode to also default to `FabAuthManager`.
---
### 🧪 Testing
I tested this setup in the following environments:
* ✅ **Breeze bash terminal**
* ✅ **Kubernetes bash terminal**
In both cases, I was able to:
* Login through FAB-authenticated UI
* Create users via CLI and UI
* View the Security tab and manage roles/permissions
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "markhc (via GitHub)" <gi...@apache.org>.
markhc commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2934929552
> You need to have `FabAuthManager` conifgured. The `users` command is part of the Fab Auth Manaager https://airflow.apache.org/docs/apache-airflow-providers-fab/stable/cli-ref.html.
>
> "Standard" installation now uses SimpleAuthManeager https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/auth-manager/simple/index.html
Do you have an example on how to configure it then? Because I have the package installed and I've set `auth_manager = airflow.providers.fab.auth_manager.fab_auth_manager.FabAuthManager` in the `[core]` section of the config file but both `airflow users create` and `flask fab create-user` still fail.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2969726987
> If anything I'm saying makes sense, I can make a PR fixing this in some direction you propose.
Makes absolutely sense. Thanks for all those invstigations @mrbungie ! and Fix would be really nice!
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3327708817
We're generally moving away from assigning issues for precisely this issue. It's now unassigned (and will remain so), so feel free to work on a PR @prakharcode
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "Brunda10 (via GitHub)" <gi...@apache.org>.
Brunda10 commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3112211234
I would like to contribute on this issue
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3133971464
@Brunda10 AI generated responses _are not helpful_.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "Brunda10 (via GitHub)" <gi...@apache.org>.
Brunda10 commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3138573600
Got it, thanks for pointing that out . I’ll keep my future comments focused and avoid unnecessary verbosity.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "markhc (via GitHub)" <gi...@apache.org>.
markhc commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2935130435
Somehow reinstalling fixed it. Really not sure what was wrong in my first install. The only thing I changed was setting FAB as the auth manager in the Helm chart from the beginning (my first install was using SimpleAuth at first).
Thanks!
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "Brunda10 (via GitHub)" <gi...@apache.org>.
Brunda10 commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3324761797
Hi @prakharcode , I was previously assigned but I’ve been working on other issues. If you’d like to work on it, please move forward .
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2932474969
You need to have `FabAuthManager` conifgured. The `users` command is part of the Fab Auth Manaager https://airflow.apache.org/docs/apache-airflow-providers-fab/stable/cli-ref.html.
"Standard" installation now uses SimpleAuthManeager https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/auth-manager/simple/index.html
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "akshayvijayjain (via GitHub)" <gi...@apache.org>.
akshayvijayjain commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3134814724
Dear @ashb ,
I see your comment mentioning https://github.com/apache/airflow/pull/53854#issuecomment-3133968783 this issue may fall into won't fix;
So you may un-spam @Brunda10 ; Currently her comment is hidden as she is marked as spam;
She is working on this issue since 5 days full time at ZemosoLabs; reproducing it; tweaking code;
We have 6 more developers working this way to contribute to Apache airflow and hone skill in python and contributing to open source. last year we did this with appsmith project https://github.com/appsmithorg/appsmith/ contributing to backend and frontend
She has certainly made use of AI which is expected as per me, to understand things in more context.
I have heard her explain the approach; i.e. simple auth manager is passed as default argument, so changing it to fab auth manager should fix the issue; if it is deliberate choice to use simple auth manager; it cannot be logically known easily;
**we appreciate, you are careful about spam; If you any suggestion for us, it is most welcome.**
---
She has also noted; that when we have Fab Auth manager selected; we do not see `config`, she will raise this as separate issue and explain in detail.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "mrbungie (via GitHub)" <gi...@apache.org>.
mrbungie commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-2968968409
First of all, and as always thank you so much for Apache Airflow :), I've depended on it for years for many projects.
And yes, as far as I can tell we do have it installed. Some "evidence" that may help, short of showing the running system.
1. I'm using a custom docker image (but based on apache/airflow:3.0.0-python3.12) that includes this in its requirements: **apache-airflow-providers-fab==2.0.1**. This is a gist with its definition and related files: https://gist.github.com/mrbungie/ab8e2a2104e56c7d6dc8872d01d44f9a
2. I'm setting the following relevant values in my helm chart: https://gist.github.com/mrbungie/eaae9aed11d04b04d960376788d3e91e (here im showing it with webserver.defaultUser = false, but when I set it to true, the createUser fails)
3. We implemented a webserver_config.py (shown in [1] gist integrated with EntraID). And it works, so FAB is working.
When I get into most containers, they do have the users subcommand:
<img width="1260" alt="Image" src="https://github.com/user-attachments/assets/ee48e1aa-ec4a-49be-be7c-37fa666eddfa" />
But when checking the create-user container (after setting createUser to true), it fails.
<img width="727" alt="Image" src="https://github.com/user-attachments/assets/5a486456-24c5-4d5e-a2b9-e918ea0416e3" />
<img width="1271" alt="Image" src="https://github.com/user-attachments/assets/79d1a1f3-dd36-44a3-9306-f9dd40cab6ed" />
I'm pretty sure it has to do with the fact that the env vars overriding Auth are not reaching the createUser container.
create-user envvars:
<img width="730" alt="Image" src="https://github.com/user-attachments/assets/abb8def2-b78c-464c-9ecd-f0317f421901" />
Meanwhile other containers (like api-server)
<img width="731" alt="Image" src="https://github.com/user-attachments/assets/ea1437bb-c9c1-470c-9df1-f5f74ba42b6a" />
I guess that means that that setting (i.e. airflow.core.auth_manager / AIRFLOW__CORE__AUTH_MANAGER) **should be set exclusively via airflow.cfg**, but I think docs should be clearer about that.
More info:
Helm chart commit SHA256: https://github.com/apache/airflow/commit/3bd9746d5c30d47fec1e50cc95a3b83add1ee3e8
<img width="1460" alt="Image" src="https://github.com/user-attachments/assets/24d3c3b4-bbbe-4b24-8d50-d2bc194cbaa2" />
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #51304: Airflow v3 user creation command fails
URL: https://github.com/apache/airflow/issues/51304
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow v3 user creation command fails [airflow]
Posted by "prakharcode (via GitHub)" <gi...@apache.org>.
prakharcode commented on issue #51304:
URL: https://github.com/apache/airflow/issues/51304#issuecomment-3323850261
I am also currently facing this bug, while trying to deploy aiflow 3.0.2 and using simple.auth.manager in the CI environment.
While I understand that simple auth is not made to be something to be deployed in production but it is a good (fast) way to go with in CI and alike.
@mrbungie summarized quite well here:
> If that's not the hoped behaviour, I would guess AIRFLOW__CORE__AUTH_MANAGER, if set, should be propagated down into the create-user container (after all, if its going to run create-user in Airflow 3, it should have that set to FAB or it is always going to fail). Maybe the create-user container should check if FAB is on (via env var + airflow.cfg), and if not, it should just continue gracefully and maybe logging that so users are advised to set createUser = false if they are just using Simple Auth.
giving an option in the helm chart to do `enable: false` would be nice, then the onus of disable and enabling the service is on the user.
If this makes sense, I can contribute to include this in the chart.
I see the issue is already assigned to @Brunda10 but if they are not working I can take it up or they can continue with this direction if maintainers agree.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org