Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Next Next commit
miniconda-cryptography-update_for_security_patch_GHSA-6vqw-3v5j-54x4
  • Loading branch information
gauravsaini04 committed Feb 27, 2024
commit 30e0844c9c4db0e83d360ac4d40b0ef2e794819a
8 changes: 2 additions & 6 deletions src/miniconda/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ FROM continuumio/miniconda3 as upstream
# https://github.com/advisories/<CVE_ID>
# <package_name> = <version>

RUN conda install \
# https://github.com/advisories/GHSA-3ww4-gg4f-jr7f
cryptography==42.0.2

RUN python3 -m pip install --upgrade \
# installed for compatibility with cryptography v42.0.2
pyopenssl==24.0.0
# https://github.com/advisories/GHSA-6vqw-3v5j-54x4
cryptography==42.0.4

# Reset and copy updated files with updated privs to keep image size down
FROM mcr.microsoft.com/devcontainers/base:1-bullseye
Expand Down
6 changes: 3 additions & 3 deletions src/miniconda/test-project/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ check "gitconfig-contains-name" sh -c "cat /etc/gitconfig | grep 'name = devcont

check "usr-local-etc-config-does-not-exist" test ! -f "/usr/local/etc/gitconfig"

checkPythonPackageVersion "cryptography" "42.0.2"
checkPythonPackageVersion "cryptography" "42.0.4"
checkPythonPackageVersion "setuptools" "65.5.1"
checkPythonPackageVersion "wheel" "0.38.1"

checkCondaPackageVersion "cryptography" "42.0.2"
checkCondaPackageVersion "pyopenssl" "24.0.0"
checkCondaPackageVersion "cryptography" "42.0.4"
checkCondaPackageVersion "pyopenssl" "23.2.0"
checkCondaPackageVersion "setuptools" "65.5.1"
checkCondaPackageVersion "wheel" "0.38.1"
checkCondaPackageVersion "requests" "2.31.0"
Expand Down