GitHub user prakass1 added a comment to the discussion: Airflow Web Password 
Configuration

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: 
override.yaml
```
webserver:
  # Create initial user.
  defaultUser:
    enabled: true
    role: Admin
    username: admin
    email: [email protected]
    firstName: admin
    lastName: user
    password: test123! # You can provide this to be coming externally part of 
your pipeline from some secrets
```

Then you would deploy helm chart with `helm install airflow 
apache-airflow/airflow -f override.yaml --namespace <your_ns>` This then will 
take the password you specify. Note that, if you are using postgres container 
part of the helm chart then remove the persistence volume and claim and retry.

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.

GitHub link: 
https://github.com/apache/airflow/discussions/54094#discussioncomment-13989560

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to