Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install system CA certificates in base Docker image #557

Merged

Conversation

groldan
Copy link
Member

@groldan groldan commented Oct 22, 2024

  • Install the ca-certificates package to include trusted system CA certificates.
  • Ensures secure SSL/TLS communication with external services over HTTPS.
  • Allows the Dockerized application to verify certificates against a trusted set of certificate authorities.
  • Supports integration with APIs, databases, and other secure services.

This change improves the container's ability to connect to external resources securely, making it compatible with environments that require certificate validation.

- Install the `ca-certificates` package to include trusted system CA certificates.
- Ensures secure SSL/TLS communication with external services over HTTPS.
- Allows the Dockerized application to verify certificates against a trusted set of certificate authorities.
- Supports integration with APIs, databases, and other secure services.

This change improves the container's ability to connect to external resources securely,
making it compatible with environments that require certificate validation.
@groldan groldan added enhancement New feature or request build Issues related to the build and/or CI docker Issues related to docker images or docker composition labels Oct 22, 2024
@groldan groldan requested a review from danduk82 October 22, 2024 16:21
@groldan groldan merged commit 9edb290 into geoserver:main Oct 22, 2024
6 checks passed
@groldan groldan deleted the build/install_system_ca_certificates_for_java branch October 22, 2024 22:30
@@ -4,3 +4,6 @@ LABEL maintainer="GeoServer PSC <[email protected]>"

ENV JAVA_TOOL_OPTIONS=
ENV JAVA_OPTS=

# Install the system CA certificates for the JVM :wqnow that we're root
RUN USE_SYSTEM_CA_CERTS=true /__cacert_entrypoint.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where does this file come from? I can't find it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker run --rm eclipse-temurin:21-jre cat /__cacert_entrypoint.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues related to the build and/or CI docker Issues related to docker images or docker composition enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants