Closed jaklan closed 1 week ago
Hmm.. this is strange. We are not doing any preprocessing on the requirements.txt
file that modifies its content, and literally just pass it to safe-pip-install
(our version of pip install
). Are you able to produce it using the Docker Compose setup (in the README instructions)?
Ohh.. I see, you are passing in the username and password via environment variables, sorry didn't notice that. Then yeah, I see why that wouldn't work, as we are not passing the environment variables down to the safe-pip-install
call. This should be an easy fix.
In fact, the issue you are seeing started to happen after we merged PR #122, as we removed passing down the environment variables to the pip in that PR, because I mistakenly thought it is not useful and might cause issues. We can just revert that line and we should be good.
@rafidka thanks for quick analysis and answer!
We can just revert that line and we should be good.
That would be really great as that's currently the only option not to store a password directly in requirements.txt
afaik
Hi, already for a year, on various Airflow 2.x versions, we were using the below method to pass the password to the
requirements.txt
file:https://docs.aws.amazon.com/mwaa/latest/userguide/best-practices-dependencies.html#best-practices-dependencies-custom-auth-url
It worked correctly until we upgraded to 2.9 - since then we get the following error:
There were no changes in configuration options, the option name and password value are still the same. When we hardcode the password directly into
requirements.txt
- it works correctly, so the password itself is not a problem. It seems the given config is simply not accessible anymore as envar and the related placeholder is evaluated as empty.