Skip to content

Commit

Permalink
Added and addressed vulnerabilities with snyk
Browse files Browse the repository at this point in the history
  • Loading branch information
axsaucedo committed Dec 7, 2021
1 parent 03ed062 commit f7d38b8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 6 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/security_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
run: |
pip install -e python/.
snyk test --file=python/setup.py
snyk test --file=python/setup.py --fail-on=upgradable --severity-threshold=high
security-operator:

Expand All @@ -32,7 +32,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
run: |
make -C operator/ fmt
snyk test --file=operator/go.mod
snyk test --file=operator/go.mod --fail-on=upgradable --severity-threshold=high
security-executor:

Expand All @@ -46,7 +46,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
run: |
make -C executor/ executor
snyk test --file=executor/go.mod
snyk test --file=executor/go.mod --fail-on=upgradable --severity-threshold=high
security-image-executor:

Expand All @@ -58,6 +58,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/seldon-core-executor:1.12.0-dev
args: --fail-on=upgradable --severity-threshold=high

security-image-operator:

Expand All @@ -69,6 +70,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/seldon-core-operator:1.12.0-dev
args: --fail-on=upgradable --severity-threshold=high

security-image-python-base:

Expand All @@ -80,6 +82,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/seldon-core-s2i-python37-ubi8:1.12.0-dev
args: --fail-on=upgradable --severity-threshold=high

security-image-python-sklearn:

Expand All @@ -91,6 +94,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/sklearnserver:1.12.0-dev
args: --fail-on=upgradable --severity-threshold=high

security-image-python-mlflow:

Expand All @@ -102,6 +106,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/mlflowserver:1.12.0-dev
args: --fail-on=upgradable --severity-threshold=high

security-image-python-xgboost:

Expand All @@ -113,6 +118,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/xgboostserver:1.12.0-dev
args: --fail-on=upgradable --severity-threshold=high

security-image-alibi-explain:

Expand All @@ -124,6 +130,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/alibiexplainer:1.12.0-dev
args: --fail-on=upgradable --severity-threshold=high

security-image-alibi-detect:

Expand All @@ -135,6 +142,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/alibi-detect-server:1.12.0-dev
args: --fail-on=upgradable --severity-threshold=high

security-image-request-logger:

Expand All @@ -146,6 +154,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/seldon-request-logger:1.12.0-dev
args: --fail-on=upgradable --severity-threshold=high

security-image-initializer-rclone:

Expand All @@ -157,4 +166,5 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/rclone-storage-initializer:1.12.0-dev
args: --fail-on=upgradable --severity-threshold=high

6 changes: 6 additions & 0 deletions executor/.snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: v1.14.0
ignore:
'snyk:lic:golang:github.com:hashicorp:golang-lru:MPL-2.0':
- '*':
reason: "Source code of MPL licenses included in images"
expires: 2025-11-07T11:38:28.614Z
6 changes: 6 additions & 0 deletions operator/.snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: v1.14.0
ignore:
'snyk:lic:golang:github.com:hashicorp:golang-lru:MPL-2.0':
- '*':
reason: "Source code of MPL licenses included in images"
expires: 2025-11-07T11:38:28.614Z
6 changes: 6 additions & 0 deletions python/.snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: v1.14.0
ignore:
'snyk:lic:pip:certifi:MPL-2.0':
- '*':
reason: "Source code of MPL licenses included in images"
expires: 2025-11-07T11:38:28.614Z
6 changes: 3 additions & 3 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
"setuptools >= 41.0.0",
"prometheus_client >= 0.7.1, < 0.9.0",
# Addresses CVE-2020-1971
"cryptography==3.4",
"cryptography >= 3.4, < 3.5",
# Addresses CVE SNYK-PYTHON-PYYAML-590151
"PyYAML >= 5.4, < 5.5",
# Addresses CVE PRISMA-2021-0020
"click >= 8.0.0a1, < 8.1",
# Addresses CVE CVE-2019-11236 and CVE-2020-26137
"urllib3 == 1.25.9",
# Addresses CVE CVE-2019-11236 and CVE-2020-26137 and SNYK-PYTHON-URLLIB3-1533435
"urllib3 == 1.26.5",
],
extras_require=extras,
entry_points={
Expand Down

0 comments on commit f7d38b8

Please sign in to comment.