Skip to content

Commit

Permalink
ensure ca-certificates.crt is read only (#326) (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
theganyo authored Sep 13, 2021
1 parent a9bbd5c commit 1e7bb20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ RUN CGO_ENABLED=$CGO_ENABLED go build -a \
RUN groupadd -g 999 apigee && \
useradd -r -u 999 -g apigee apigee

# remove all write privileges from ca-certificates.crt
RUN chmod 4444 /etc/ssl/certs/ca-certificates.crt

#--- Build runtime container ---#
FROM ${RUN_CONTAINER}

Expand Down

0 comments on commit 1e7bb20

Please sign in to comment.