Skip to content

Commit

Permalink
Merge pull request #175 from permitio/omer/per-10691-fix-pdp-vulnerab…
Browse files Browse the repository at this point in the history
…ilities-scanned-by-jfrog-xray

Fix pip and setuptools CVEs
  • Loading branch information
omer9564 authored Sep 16, 2024
2 parents 181d519 + d367e80 commit 2735296
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ COPY kong_routes.json /config/kong_routes.json
COPY ./scripts/gunicorn_conf.py ./gunicorn_conf.py
# copy app code
COPY . ./

RUN pip uninstall -y pip setuptools

# Make sure scripts in .local are usable:
ENV PATH="/:/app/bin:/home/permit/.local/bin:$PATH"
# uvicorn config ------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ build-arm64: prepare
@docker buildx build --platform linux/arm64 -t permitio/pdp-v2:$(VERSION) . --load

run: run-prepare
@docker run -it -p 7766:7000 --env PDP_API_KEY=$(API_KEY) --env PDP_DEBUG=true permitio/pdp-v2:$(VERSION)
@docker run -it --rm -p 7766:7000 --env PDP_API_KEY=$(API_KEY) --env PDP_DEBUG=true permitio/pdp-v2:$(VERSION)

run-on-background: run-prepare
@docker run -it -d -p 7766:7000 --env PDP_API_KEY=$(API_KEY) --env PDP_DEBUG=true permitio/pdp-v2:$(VERSION)
@docker run -it --rm -d -p 7766:7000 --env PDP_API_KEY=$(API_KEY) --env PDP_DEBUG=true permitio/pdp-v2:$(VERSION)
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ httpx>=0.27.0,<1
protobuf>=3.20.2 # not directly required, pinned by Snyk to avoid a vulnerability
opal-common==0.7.6
opal-client==0.7.6
setuptools>=70.0.0 # not directly required, pinned by Snyk to avoid a vulnerability

0 comments on commit 2735296

Please sign in to comment.