Skip to content

Commit b0a3652

Browse files
chore(deps): update dependency urllib3 to v2 [security] (#466)
* chore(deps): update dependency urllib3 to v2 [security] * fix: use boto3 rather than aws-cli to retrieve env vars --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Pat Heard <patrick.heard@cds-snc.ca>
1 parent 52028b6 commit b0a3652

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

api/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ ENV PYTHONPATH="/pymodules"
4343

4444
RUN apk upgrade --no-cache \
4545
&& apk add --no-cache \
46-
aws-cli \
4746
binutils \
4847
libstdc++
4948

api/bin/entry.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ if [ ! -f "$ENV_PATH/.env" ]; then
3838
if [ ! -d "$ENV_PATH" ]; then
3939
mkdir "$ENV_PATH"
4040
fi
41-
aws ssm get-parameters \
42-
--region ca-central-1 \
43-
--with-decryption \
44-
--names github-secret-scanning-config \
45-
--query 'Parameters[*].Value' \
46-
--output text > "$TMP_ENV_FILE"
41+
python -c "import boto3; client = boto3.client('ssm'); response = client.get_parameters(Names=['github-secret-scanning-config'], WithDecryption=True); print(response['Parameters'][0]['Value'] if response['Parameters'] else '')" > "$TMP_ENV_FILE"
4742
fi
4843

4944
# Check if environment vars were retrieved

api/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
boto3==1.40.55
12
cryptography==44.0.3
23
fastapi==0.119.1
34
mangum==0.19.0
45
python-dotenv==1.1.1
56
requests==2.32.5
6-
urllib3<2 # Boto currently does not support urllib3 2+
7+
urllib3==2.5.0

0 commit comments

Comments
 (0)