pantelis-karamolegkos opened a new issue, #30461:
URL: https://github.com/apache/airflow/issues/30461

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### What happened
   
   I have a `docker-compose` stack running with `airflow` `2.3.3`
   
   I am setting the following env vars
   
   ```
   [email protected]
   _AIRFLOW_WWW_USER_LASTNAME=Doe
   _AIRFLOW_WWW_USER_PASSWORD=mypassword
   _AIRFLOW_WWW_USER_USERNAME=myadminusername
   _AIRFLOW_WWW_USER_FIRSTNAME=John
   ```
   
   I recreated the `docker-compose` stack and changed just the password to
   
   ```
   _AIRFLOW_WWW_USER_PASSWORD=myNEWpassword
   ```
   
   I `exec` into the web server container and I see that indeed 
`_AIRFLOW_WWW_USER_PASSWORD` is set to `myNEWpassword`.
   
   However I cannot login with this, but rather still with `mypassword`
   
   ### What you think should happen instead
   
   The `admin` user password should change to `myNEWpassword`
   
   ### How to reproduce
   
   Create a `docker-compose` stack and set the following env vars
   
   ```
   [email protected]
   _AIRFLOW_WWW_USER_LASTNAME=Doe
   _AIRFLOW_WWW_USER_PASSWORD=mypassword
   _AIRFLOW_WWW_USER_USERNAME=myadminusername
   _AIRFLOW_WWW_USER_FIRSTNAME=John
   ```
   
   Verify that you can login.
   
   Change the `_AIRFLOW_WWW_USER_PASSWORD` env var from `mypassword` to 
`myNEWpassword`.
   
   Restart the stack by also recreating the containers.
   
   You should still be able to login with `mypassword` instead of 
`myNEWpassword` as expected.
   
   ### Operating System
   
   Ubuntu 20.04.2 LTS
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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