If fernet_key is not specified in airflow.cfg, but passed via the environment variable AIRFLOW__CORE__FERNET_KEY, the warning about unencrypted passwords appears although passwords are encrypted. The reason is that the check uses ConfigParsers has_key(), which does not consider the environment.