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

Inject custom certificates into images #370

Open
MoritzWeber0 opened this issue Jan 24, 2025 · 0 comments
Open

Inject custom certificates into images #370

MoritzWeber0 opened this issue Jan 24, 2025 · 0 comments

Comments

@MoritzWeber0
Copy link
Member

MoritzWeber0 commented Jan 24, 2025

Some corporates use their own CAs to access other services in the company. Accessing other services is esp. essential for the Jupyter image, where it's common to send requests to other internal services.

But it's also interesting for the Capella image, where the Git server may require a custom certificate.

We should support the injection of custom certificates during build- or runtime.

During build time, it can be copied via a COPY instruction in the base image (has to be adjusted in the CI templates as well).
During runtime, the certificates could be mounted to a directory.

To make Python understand the certificates, add the following line to the Dockerfile:

RUN pip install certifi && cat /etc/ssl/certs/*.pem > "$(python -m certifi)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant