You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that AWX is open source software provided for free and that I might not receive a timely response.
I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)
Bug Summary
#10787 adds support for auto loading the system certificate store into the execution environment. But since a few python versions ago, Python no longer respects the system certificate store instead opting to use the certifi package. Unfortunately that means that manual work arounds are needed to load the custom certificates into python.
Currently to load my custom certificates i have added this value to Paths to expose to isolated jobs:
I know that this is a very bad workaround and it also seems like this does not only copy the cacerts.pem file into the container but the entire directory instead.
AWX version
24.6.2.dev0+g94e5795dfc.d20240705
Select the relevant components
UI
UI (tech preview)
API
Docs
Collection
CLI
Other
Installation method
kubernetes
Modifications
yes
Ansible version
No response
Operating system
RHEL9
Web browser
No response
Steps to reproduce
Create an inventory
Create a source for that inventory
The source should use a custom inventory plugin that uses the requests library
Sync the inventory
Expected results
There should be a way to load custom certificates into the python environment.
Actual results
python returns a certificate verify failed error:
[WARNING]: * Failed to parse
/runner/project/inventories/inventory.custom_plugin.yaml with auto plugin:
HTTPSConnectionPool(host='hostname', port=443): Max retries exceeded
with url: /api/v1/hosts (Caused by SSLError(SSLCertVerificationError(1, '[SSL:
CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local
issuer certificate (_ssl.c:1006)')))
Please confirm the following
[email protected]
instead.)Bug Summary
#10787 adds support for auto loading the system certificate store into the execution environment. But since a few python versions ago, Python no longer respects the system certificate store instead opting to use the certifi package. Unfortunately that means that manual work arounds are needed to load the custom certificates into python.
Currently to load my custom certificates i have added this value to
Paths to expose to isolated jobs
:[ "/usr/local/lib/python3.9/site-packages/certifi/cacert.pem:/usr/local/lib/python3.11/site-packages/certifi/:O", ]
I know that this is a very bad workaround and it also seems like this does not only copy the
cacerts.pem
file into the container but the entire directory instead.AWX version
24.6.2.dev0+g94e5795dfc.d20240705
Select the relevant components
Installation method
kubernetes
Modifications
yes
Ansible version
No response
Operating system
RHEL9
Web browser
No response
Steps to reproduce
The source should use a custom inventory plugin that uses the requests library
Expected results
There should be a way to load custom certificates into the python environment.
Actual results
python returns a certificate verify failed error:
Additional information
awx installed through the awx-rpm project https://awx.wiki/
The text was updated successfully, but these errors were encountered: