Airflow Web Password Configuration #54094
Replies: 8 comments 1 reply
-
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
Beta Was this translation helpful? Give feedback.
-
sorry the version of helm chart is 1.19.0-dev |
Beta Was this translation helpful? Give feedback.
-
Maybe you meant the airflow UI username and password being generated every time you spin up helm chart. If you are deploying the helm chart and would like to keep the password constant, you can do the following: One of the option that can be done is to override the values.yaml with custom setting for the following under webserver section:
Then you would deploy helm chart with For a production setup, you can get the value for the secret from some service like AWS Secrets Manager, populate it to the override.yaml part of the deployment. |
Beta Was this translation helpful? Give feedback.
-
Currently, the defaultUser is under webserver. However, I think that it would be better to move this section out from webserver in the values.yaml in general. This way, the deaultUser would then not be required to be tied to webserver component. The impact of this would be to values.schema.json, values.yaml, and create-user-job. @jedcunningham @potiuk what do you think about it? |
Beta Was this translation helpful? Give feedback.
-
your suggestion works well with old charts (airflow version < 3.X.X , but in the latest airflow
the job which creates the default user will not work airflow cli has no more users option
|
Beta Was this translation helpful? Give feedback.
-
I am using helm chart 1.18.0, which has airflow image version 3.0.2, and that works all fine for me. This is the stable released version. |
Beta Was this translation helpful? Give feedback.
-
Because you are using SimpleAuthManager by default. That was a change in Airflow 3 clearly documented in changelog. If you want to use FABAuthManager and "create users" command you need to configure FABAuthManager as auth manager you use.
Correct - that is the change in Airlfow 3 with SimpleAuthManager being default (yet only useful for development and testing). If you wish to use "production" ready Auth Manager - you can switch to FabAuthManager (to preserve Airflow 2 compatibility of users management) and in Airflow 3.1 you will also be able to also use KeyCloakAuthManager which will allow to delegate RBAC control out to KeyCloak where you will be able to map your "enterprise" users to Airflow users and their permissions. Nothing extraordinary here. Everything communicated and described in Airflow 3 Release Notes including links to appropriate documentation. Yes. It's a change vs default Airflow 2 behaviour and you have no other choice but to adapt. |
Beta Was this translation helpful? Give feedback.
-
Converted to discussion if more discussion is needed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Official Helm Chart version
1.18.0 (latest released)
Apache Airflow version
3.0.2
Kubernetes Version
1.31
Helm Chart configuration
No response
Docker Image customizations
No response
What happened
the web server password is getting generated every time i deploy airflow chart. Is there a way i can statically provide the password for web?
The admin password is printed in the log and stored in a text file /opt/airflow/simple_auth_manager_passwords.json.generated , even i tried mounting the file as secret but i'm getting permission denied error
Earlier in version 2.8+, airflow users command was present and job was sufficent to create the user. In 3.0.x i' not sure how this can be managed.
What you think should happen instead
No response
How to reproduce
Just deploy the chart with simple auth enabled.
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions