Skip to content

Commit cfcb123

Browse files
authored
Merge pull request #1840 from NASA-AMMOS/fix/security-updates-7-26
WIP - Dependency updates to fix vulnerabilities from security scans
2 parents c55d70f + 5c4c1f5 commit cfcb123

9 files changed

Lines changed: 121 additions & 67 deletions

File tree

action-server/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
FROM node:22.13.1-bookworm-slim
22

33
# Install jemalloc
4+
# Update gnutls to pick up debian security fixes flagged by trivy (may not be needed after base image update)
45
RUN apt-get update \
5-
&& apt-get install --no-install-recommends -y libjemalloc-dev
6+
&& apt-get install --no-install-recommends -y libjemalloc-dev \
7+
&& apt-get install --no-install-recommends -y --only-upgrade libgnutls30 \
8+
&& rm -rf /var/lib/apt/lists/*
69

710
# Set the path for jemalloc
811
RUN echo "/usr/lib/$(uname -m)-linux-gnu/libjemalloc.so" >> /etc/ld.so.preload

deployment/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ services:
220220
HASURA_GRAPHQL_LOG_LEVEL: warn
221221
HASURA_GRAPHQL_METADATA_DATABASE_URL: "postgres://${AERIE_USERNAME}:${AERIE_PASSWORD}@postgres:5432/aerie_hasura"
222222
HASURA_GRAPHQL_METADATA_DIR: /hasura-metadata
223-
image: "hasura/graphql-engine:v2.12.1.cli-migrations-v3"
223+
image: "${REPOSITORY_DOCKER_URL}/aerie-hasura:${DOCKER_TAG}"
224224
ports: ["8080:8080"]
225225
restart: always
226226
volumes:
@@ -243,7 +243,7 @@ services:
243243
SCHEDULER_DB_PASSWORD: "${SCHEDULER_PASSWORD}"
244244
SEQUENCING_DB_USER: "${SEQUENCING_USERNAME}"
245245
SEQUENCING_DB_PASSWORD: "${SEQUENCING_PASSWORD}"
246-
image: postgres:16.12-bookworm
246+
image: "${REPOSITORY_DOCKER_URL}/aerie-postgres:${DOCKER_TAG}"
247247
ports: ["5432:5432"]
248248
restart: always
249249
volumes:

docker-compose.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ services:
277277
volumes:
278278
- aerie_file_store:/usr/src/app/merlin_file_store:ro
279279
hasura:
280+
build:
281+
context: .
282+
dockerfile: docker/Dockerfile.hasura
280283
container_name: aerie_hasura
281284
depends_on: ["postgres"]
282285
environment:
@@ -293,12 +296,15 @@ services:
293296
HASURA_GRAPHQL_LOG_LEVEL: info
294297
HASURA_GRAPHQL_METADATA_DATABASE_URL: "postgres://${AERIE_USERNAME}:${AERIE_PASSWORD}@postgres:5432/aerie_hasura"
295298
HASURA_GRAPHQL_METADATA_DIR: /hasura-metadata
296-
image: "hasura/graphql-engine:v2.12.1.cli-migrations-v3"
299+
image: aerie_hasura
297300
ports: ["8080:8080"]
298301
restart: always
299302
volumes:
300303
- ./deployment/hasura/metadata:/hasura-metadata
301304
postgres:
305+
build:
306+
context: .
307+
dockerfile: docker/Dockerfile.postgres
302308
container_name: aerie_postgres
303309
environment:
304310
POSTGRES_DB: postgres
@@ -314,7 +320,7 @@ services:
314320
SCHEDULER_DB_PASSWORD: "${SCHEDULER_PASSWORD}"
315321
SEQUENCING_DB_USER: "${SEQUENCING_USERNAME}"
316322
SEQUENCING_DB_PASSWORD: "${SEQUENCING_PASSWORD}"
317-
image: postgres:16.12-bookworm
323+
image: aerie_postgres
318324
ports: ["5432:5432"]
319325
restart: always
320326
volumes:

docker/Dockerfile.postgres

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
FROM postgres:16.12-bookworm
1+
FROM postgres:16.14-bookworm
2+
3+
# Update gnutls to pick up debian security fixes flagged by trivy (may not be needed after base image update)
4+
RUN apt-get update \
5+
&& apt-get install --no-install-recommends -y --only-upgrade libgnutls30 \
6+
&& rm -rf /var/lib/apt/lists/*
7+
28
COPY deployment/postgres-init-db /docker-entrypoint-initdb.d

e2e-tests/docker-compose-many-workers.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ services:
219219
volumes:
220220
- aerie_file_store:/usr/src/app/merlin_file_store:ro
221221
hasura:
222+
build:
223+
context: ..
224+
dockerfile: docker/Dockerfile.hasura
222225
container_name: aerie_hasura
223226
depends_on: ["postgres"]
224227
environment:
@@ -235,12 +238,15 @@ services:
235238
HASURA_GRAPHQL_LOG_LEVEL: info
236239
HASURA_GRAPHQL_METADATA_DATABASE_URL: "postgres://${AERIE_USERNAME}:${AERIE_PASSWORD}@postgres:5432/aerie_hasura"
237240
HASURA_GRAPHQL_METADATA_DIR: /hasura-metadata
238-
image: "hasura/graphql-engine:v2.12.1.cli-migrations-v3"
241+
image: aerie_hasura
239242
ports: ["8080:8080"]
240243
restart: always
241244
volumes:
242245
- ./deployment/hasura/metadata:/hasura-metadata
243246
postgres:
247+
build:
248+
context: ..
249+
dockerfile: docker/Dockerfile.postgres
244250
container_name: aerie_postgres
245251
environment:
246252
POSTGRES_DB: postgres
@@ -256,7 +262,7 @@ services:
256262
SCHEDULER_DB_PASSWORD: "${SCHEDULER_PASSWORD}"
257263
SEQUENCING_DB_USER: "${SEQUENCING_USERNAME}"
258264
SEQUENCING_DB_PASSWORD: "${SEQUENCING_PASSWORD}"
259-
image: postgres:16.12-bookworm
265+
image: aerie_postgres
260266
ports: ["5432:5432"]
261267
restart: always
262268
volumes:

e2e-tests/docker-compose-test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ services:
264264
volumes:
265265
- aerie_file_store:/usr/src/app/merlin_file_store:ro
266266
hasura:
267+
build:
268+
context: ..
269+
dockerfile: docker/Dockerfile.hasura
267270
container_name: hasura
268271
depends_on: ['postgres']
269272
environment:
@@ -279,12 +282,15 @@ services:
279282
HASURA_GRAPHQL_LOG_LEVEL: info
280283
HASURA_GRAPHQL_METADATA_DATABASE_URL: 'postgres://${AERIE_USERNAME}:${AERIE_PASSWORD}@postgres:5432/aerie_hasura'
281284
HASURA_GRAPHQL_METADATA_DIR: /hasura-metadata
282-
image: 'hasura/graphql-engine:v2.12.1.cli-migrations-v3'
285+
image: aerie_hasura
283286
ports: ['8080:8080']
284287
restart: always
285288
volumes:
286289
- ./../deployment/hasura/metadata:/hasura-metadata
287290
postgres:
291+
build:
292+
context: ..
293+
dockerfile: docker/Dockerfile.postgres
288294
container_name: postgres
289295
environment:
290296
POSTGRES_DB: postgres
@@ -300,7 +306,7 @@ services:
300306
SCHEDULER_DB_PASSWORD: "${SCHEDULER_PASSWORD}"
301307
SEQUENCING_DB_USER: "${SEQUENCING_USERNAME}"
302308
SEQUENCING_DB_PASSWORD: "${SEQUENCING_PASSWORD}"
303-
image: postgres:16.12-bookworm
309+
image: aerie_postgres
304310
ports: ['5432:5432']
305311
restart: always
306312
volumes:

sequencing-server/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
FROM node:18.20-bookworm-slim
22

33
# Install jemalloc
4+
# Update gnutls to pick up debian security fixes flagged by trivy (may not be needed after base image update)
45
RUN apt-get update \
5-
&& apt-get install --no-install-recommends -y libjemalloc-dev
6+
&& apt-get install --no-install-recommends -y libjemalloc-dev \
7+
&& apt-get install --no-install-recommends -y --only-upgrade libgnutls30 \
8+
&& rm -rf /var/lib/apt/lists/*
69

710
# Set the path for jemalloc
811
RUN echo "/usr/lib/$(uname -m)-linux-gnu/libjemalloc.so" >> /etc/ld.so.preload

0 commit comments

Comments
 (0)