Repository navigation
DockerOperator SSL Verification #54290
Replies: 4 comments 1 reply
|
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
|
I converted it into a discussion. It looks like you have an issue with self-signed certificates for your infrastructure. That's what usually "failed to verify certificate: x509: certificate signed by unknown authority" unless you have some misconfiguration of your infrastructure and for example remove all "built-in" certificates that are coming either from system of yours or Python. It's not really an "airflow" issue - it's more how you are configure SSL certificates used by Python packages to connect to the servers - you seem to have self-signed certificate or certificate signed by authority that is not in the "regular" certificates that Python uses. There are quite a few issues here and you can google it as well on how to make sure that Python certificates contain your self-signed certificates (look for self-signed here in the issues - you will likely find a few things you can try in your deployment - also if you ask for configuring self-signed certificates to be used by Python in Google. Depending on Python version and operting system - there might be different solutions and different ways as far as I know. Generally also better solution is to pay for a good certificate that is widely recognized by defaullt certification checks built-in. Paying for certificates or even using let's encrypt quickly rotating certificates on your server is a good approach. Especially if you consider thaat you are now trying to offload that to volunteers working in their free time mostly - developing software that you can use for free. It would seem resonable that your company can at least have some good certificates, or maybe instead find a way how to make their infrastructure works with such self-signed certificates for Python and all other tools. |
|
Yes indeed it looks ceritificate issue. @krutoileshii did you read through the documentation? This clearly gives option to provide your certificates. |
|
yes I've read through those, but don't have access to certs at the moment. hence was looking for a way to bypass. should still be possible since one might be using someone else's registry that has a self signed cert. |
Uh oh!
There was an error while loading. Please reload this page.
Apache Airflow Provider(s)
docker
Versions of Apache Airflow Providers
Trying to authenticate with the DockerOpeartor using airflow connection to an internal registry and getting the TLS certificate verification failure. I am able to login just fine into the registry from command line with no issues.
Insecure registry is set up as well already. Not sure how to bypass this. I do not have access to the certificate for the server. Any help would be appreciated.
Apache Airflow version
3.0.3
Operating System
Ubuntu WSL2
Deployment
Virtualenv installation
Deployment details
podman version 4.3.1
What happened
I would expect airflow to honor the insecure registries.
What you think should happen instead
Need an ability to bypass this verification.
How to reproduce
Have private registry with insecure certs
Add docker_connection
Add proper insecure registry configs
Have a dag that pulls from that registry.
Receive error
Anything else
No response
Are you willing to submit PR?
Code of Conduct
All reactions