Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
0e5f0b2
[alibi-detect-server] Fixing SNYK-PYTHON-URLLIB3-14192442 CVE
tyndria Dec 10, 2025
7fcf2e1
Skip few job in CI to save resources
tyndria Dec 10, 2025
395d2fa
Update poetry.lock for alibi-detect-server to upgrade urllib3
tyndria Dec 10, 2025
3691d97
Upgrade urrlib3 in alibi-explain-server component
tyndria Dec 11, 2025
08c46bf
Try to pin setuptools for alibi-explain-server
tyndria Dec 11, 2025
da4fae9
Revert "Try to pin setuptools for alibi-explain-server"
tyndria Dec 11, 2025
03f0a64
Remove spacy tests to eliminate the CVE-2024-6345 vulnerability in se…
tyndria Dec 11, 2025
7e013b1
Pin urllib3 in mlflowserver to get rid of CVE-2025-66471
tyndria Dec 11, 2025
1ea44b9
pin urllib3 for `tfserving_proxy`
tyndria Dec 11, 2025
c3c13b4
pin setuptools >= 70.0.0 for tfserving_proxy
tyndria Dec 11, 2025
3481829
Revert "pin setuptools >= 70.0.0 for tfserving_proxy"
tyndria Dec 11, 2025
bc1a6bd
Fixing setuptools CVE: deleting bundles setuptools in s2i python and …
tyndria Dec 11, 2025
bf52248
Revert "Fixing setuptools CVE: deleting bundles setuptools in s2i pyt…
tyndria Dec 11, 2025
bef9db5
Try both fixes (pin in tfserving_proxy requirements and remove old ve…
tyndria Dec 11, 2025
d39645a
Revert "Try both fixes (pin in tfserving_proxy requirements and remov…
tyndria Dec 11, 2025
81fdbbf
add debug arg for snyk action in `build-servers` job
tyndria Dec 11, 2025
e91b09b
Revert "add debug arg for snyk action in `build-servers` job"
tyndria Dec 11, 2025
145a6a9
Print deps tree to debug
tyndria Dec 11, 2025
e4bd404
Fix broken workflow after adding another `if`
tyndria Dec 11, 2025
5fca882
Pin setuptools again to check deps tree
tyndria Dec 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/security_tests_python_v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches:
- master
- release-1.19.0-prep
- refactor-ci-snyk-scanning-oom
workflow_dispatch:
jobs:
build-upload-scan-base-images:
Expand Down Expand Up @@ -111,9 +112,9 @@ jobs:
matrix:
server:
- tfserving_proxy
- sklearnserver
- mlflowserver
- xgboostserver
#- sklearnserver
#- mlflowserver
#- xgboostserver
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -155,7 +156,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: ${{ env.SERVER_IMAGE_TAG}}:test
args: --fail-on=upgradable --app-vulns --severity-threshold=high
args: --fail-on=upgradable --app-vulns --severity-threshold=high --print-deps

- name: Save scan output to file
run: echo "${{ matrix.server }}_RESULT=${{ steps.scan.outcome }}" > "report-${{ matrix.server }}.txt"
Expand All @@ -167,6 +168,7 @@ jobs:
path: report-${{ matrix.server }}.txt

build-alibi-explain:
if: false # Temporarily disabled to save CI resources
needs: build-upload-scan-base-images
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -224,6 +226,7 @@ jobs:
path: report-alibi-explain.txt

build-alibi-detect:
if: false # Temporarily disabled to save CI resources
needs: build-upload-scan-base-images
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -281,9 +284,10 @@ jobs:
path: report-alibi-detect.txt

verify-scans:
if: false # Temporarily disabled to save CI resources
needs: [ build-upload-scan-base-images, build-servers, build-alibi-explain, build-alibi-detect]
runs-on: ubuntu-latest
if: always()
#if: always()

steps:
- name: Download Snyk results for servers
Expand Down
12 changes: 6 additions & 6 deletions components/alibi-detect-server/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions components/alibi-explain-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ RUN cp ./licenses/* /licenses
# Install python spacy model to avoid issues in airgapped envs
RUN python -m spacy download en_core_web_md

# Remove spacy tests to eliminate the CVE-2024-6345 vulnerability in setuptools dependency
RUN rm -rf /opt/conda/lib/python3.12/site-packages/spacy/tests/

# Copy rest of the package
COPY alibiexplainer alibiexplainer
Expand Down
14 changes: 7 additions & 7 deletions components/alibi-explain-server/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/alibi-explain-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tornado = "6.5.2"
protobuf = "5.29.5"
joblib = "1.2.0"
requests = "^2.32.5"
urllib3 = "^2.5.0"
urllib3 = "^2.6.0"
jinja2 = "^3.1.6"
werkzeug = "^3.1.3"
pillow = "^10.4.0"
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"cryptography>=46.0.3",
"pyyaml>=6.0.3",
"click>=8.3.0",
"urllib3>=2.5.0",
"urllib3>=2.6.0",
],
extras_require=extras,
entry_points={
Expand Down
1 change: 1 addition & 0 deletions servers/mlflowserver/mlflowserver/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PyYAML >= 6.0.3, < 7.0.0 # Python 3.12 compatiblity + CVE
requests >= 2.32.5
urllib3 >= 2.6.0
pandas >= 2.3.3

# CVE-2023-47248, CVE-2023-6753, CVE-2023-6709
Expand Down
2 changes: 2 additions & 0 deletions servers/tfserving_proxy/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ tensorflow-serving-api>=1.10.1
grpcio>=1.32.0 # Required for https://github.com/SeldonIO/seldon-core/issues/2787
grpcio-reflection>=1.32.0 # Required for https://github.com/SeldonIO/seldon-core/issues/2787
requests
urllib3 >= 2.6.0
setuptools >= 70.0.0
Loading