update certificates docs , service file and fix several issues#270
update certificates docs , service file and fix several issues#270RedTanny wants to merge 9 commits into
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
/test vulnerability-analysis-on-pr |
1 similar comment
|
/test vulnerability-analysis-on-pr |
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
|
@zvigrinberg @RedTanny please don't merge. We discuss it privately. |
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
|
@RedTanny @vbelouso Found another deployment error that better get fixed also here, the : Configure a Custom Git Server CA SectionShould be relocated before we're deploying to cluster, because the base deployment got the auto generated configmap - name: git-ca-bundle
files:
- ca-certs/ca-bundle.crt
options:
disableNameSuffixHash: trueWe need to do it anyway because without that the deployment is failing because cannot find the configmap. |
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
|
/test vulnerability-analysis-on-pr |
PR Description: Fix SSL Certificate Configuration for Cluster Deployment
Problem
The
exploit-iqpod was entering a CrashLoopBackOff state with a misleading Pydantic validation error claiming it couldn't find function types likecve_agentandcve_clone_and_deps.Root Cause
The actual issue was an SSL certificate verification failure during Python module import. When the NAT framework starts, it loads the
vuln_analysisplugin via entry points. During this import,token_utils.pycallstiktoken.get_encoding("cl100k_base")at module load time, which attempts to download BPE encoding data from a public endpoint (openaipublic.blob.core.windows.net).The existing
git-ca-bundleConfigMap only contained Red Hat internal CA certificates, which are needed for services like OSIDB and internal Git repositories, but did not include the public CA certificates required for external HTTPS connections. This caused the tiktoken download to fail with an SSL verification error, which prevented thevuln_analysismodule from importing, which in turn meant the custom function types were never registered with the NAT framework.Solution
Updated the CA bundle configuration to include both system CA certificates (for public endpoints) and Red Hat internal CA certificates (for internal services). Added explicit
REQUESTS_CA_BUNDLEandSSL_CERT_FILEenvironment variables to the exploit-iq deployment pointing to the merged CA bundle.Changes
REQUESTS_CA_BUNDLEandSSL_CERT_FILEenvironment variables pointing to/app/git-ca-bundle/ca-bundle.crt