-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL Alchemy Conn Secret Fails to parse #11149
Comments
CC: @kaxil |
Thanks @davido912 , can you confirm please what database you are using / passing in |
@kaxil using an AWS RDS instance (Postgres). This instance works perfectly fine with the hardcoded string in the config, but when trying to use the _secret parameter in the config or as an env variable, it fails to detect it and fails the above mentioned error. |
@davideanastasia Which Secrets backend are you using AWS Systems Manager or AWS Secrets Manager? Also, are you using backport-packages ? |
@kaxil when ingesting the parameter with _secret in config, it doesn't seem to pick up that it is a secret |
I will double check and fix it for Airflow 1.10.13 -- that will be released in couple of weeks |
I was not able to reproduce this. I added the following key in Hashicorp Vault:
and set the following environment Variables:
Only if I try to use
which is a correct error since I am trying to use |
@kaxil not sure if this has been solved but looks like we still encounter this error working with mysql database as local executor. airflow.exceptions.AirflowConfigException: error: cannot use sqlite with the LocalExecutor [secrets] [core] |
This issuee has been solved for Airlfow 1.10 2 years ago. @loyarahulDE . It is solved. It is pointless to make a comment in issue that has been closed for (hopefully) different version of Airlfow without providinf details of your issue. Please if you want help with your problem, open a discussion in Github discussions or slack with all details and logs you can find about your issue. But make sure to provide all the details that might help others to help you, |
Please watch this talk of mine from the summit to understand why this is unempathetic behaviour and try to adapt https://www.youtube.com/watch?v=G6VjYvKr2wQ&list=PLGudixcDaxY2LxjeHpZRtzq7miykjjFOn&index=54 |
Using the 1.10.12: Python 3.6 image and inserting
sql_alchemy_conn_secret = sql_alchemy_conn
with the relevant AWS Secret ID, fails to parse and returns exceptionairflow.exceptions.AirflowConfigException: error: cannot use sqlite with the LocalExecutor
.Anyone else encountering this?
The text was updated successfully, but these errors were encountered: