Skip to content

Commit c930735

Browse files
authored
pip-audit: address GHSA-79v4-65xg-pq4g (#1530)
The current `cryptography` wheel packages have a secruity vulnerability that was address by `cryptography==44.0.1`. `jwcrypto==1.5.6` prevents us from pulling `cryptography=44.0.1` because of the way the requirements are defined: `cryptography<44,>=41.0.5'`. So we build it from source for now.
1 parent dbe41cc commit c930735

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/pip_audit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,6 @@ jobs:
5656
GHSA-32p4-gm2c-wmch
5757
GHSA-jpxc-vmjf-9fcj
5858
GHSA-99w6-3xph-cx78
59+
# To remove once we can install cryptography 44.0.1
60+
# See: https://github.com/ansible/ansible-ai-connect-service/pull/1530
61+
GHSA-79v4-65xg-pq4g

wisdom-service.Containerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ COPY ansible_ai_connect /var/www/ansible-ai-connect-service/ansible_ai_connect
4242
RUN /usr/bin/python3.11 -m pip --no-cache-dir install supervisor
4343
RUN /usr/bin/python3.11 -m venv /var/www/venv
4444
ENV PATH="/var/www/venv/bin:${PATH}"
45+
46+
# Address GHSA-79v4-65xg-pq4g and the fact jwcrypto prevent us from pulling cryptography 44.0.1
47+
# Please remove once jwcrypto and cryptography can be both upgraded
48+
RUN dnf install -y openssl-devel
49+
RUN /var/www/venv/bin/python3.11 -m pip --no-cache-dir install --no-binary=all cryptography==43.0.1
50+
4551
RUN /var/www/venv/bin/python3.11 -m pip --no-cache-dir install -r/var/www/ansible-ai-connect-service/requirements.txt
4652
RUN /var/www/venv/bin/python3.11 -m pip --no-cache-dir install -e/var/www/ansible-ai-connect-service/
4753
RUN mkdir /var/run/uwsgi

0 commit comments

Comments
 (0)