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

fix(caddy): TLS certificates trust on all platforms #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lucasmirloup
Copy link
Member

@lucasmirloup lucasmirloup commented Sep 16, 2024

@lucasmirloup lucasmirloup self-assigned this Sep 16, 2024
Copy link
Contributor

@aegypius aegypius left a comment

Choose a reason for hiding this comment

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

praise:@lucasmirloup This is a great simplification. I think, I might have gone another way with the certificate storage (keep a volume, instead of writing a file to the system) but maybe this can be improved later by using a symlink to the volume instead of a copy

This approach will help caddy to renew its certificate without human intervention in the future.

Comment on lines +19 to +20
# Copy the certificate to a stable location (to simplify mounting on all Docker platforms)
sudo docker compose cp proxy:/data/caddy/pki/authorities/local/root.crt /etc/ssl/certs/Caddy.crt 2>/dev/null
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick (non-blocking): ‏You should not write in a system directory without checking there is not already a file called Caddy.crt. You might rename this file with something more obvious like lephare-local.crt.


rm /tmp/caddy
/tmp/caddy trust
Copy link
Contributor

Choose a reason for hiding this comment

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

question: ‏Why removing the untrust before trusting a new one. It's was here to cleanup intermediary certificates ?

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

Successfully merging this pull request may close these issues.

2 participants