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

[Feature]: TLS connections between contenerized services #155

Open
elf-pavlik opened this issue Aug 7, 2024 · 0 comments
Open

[Feature]: TLS connections between contenerized services #155

elf-pavlik opened this issue Aug 7, 2024 · 0 comments
Assignees
Labels
good first issue Good for newcomers type: enhancement For features and enhancements (feat)

Comments

@elf-pavlik
Copy link

elf-pavlik commented Aug 7, 2024

Is your feature request related to a problem? Please describe.

I started using your excellent setup with some web apps and nodejs services. At some point, one service needs to make an HTTPS request to another service. It was failing since both DNS and root CA cert were not available for that service.

Describe the solution you'd like

I used a combination of https://www.codingexplorations.com/blog/enhancing-docker-networking-with-dnsmasq-a-comprehensive-guide for the DNS. I needed to set static IP for both Traefic and dnsmasq, as well as update the .env to use Traefic static IP instead of localhost.

For root CA cert it was pretty easy for node https://github.com/FiloSottile/mkcert?tab=readme-ov-file#using-the-root-with-nodejs
Other types of services may have different requirements.

Describe alternatives you've considered

This was the first solution I came up with. It works. There may be better ones, but I'm not so deep into DevOps.

Additional context

I'm not sure what exactly would need to be changed here. Mostly raising it if someone else has a similar requirement. Possibly:

  1. Traefic and dnsmasq could have static IPs by default and .env would use the Traefic IP
  2. docs could include information on how to enable connected projects to use provided DNS, as well as how to add root CA cert. Either on the OS level or node js (or another runtime) level.
@elf-pavlik elf-pavlik added the type: enhancement For features and enhancements (feat) label Aug 7, 2024
@lotyp lotyp added the good first issue Good for newcomers label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers type: enhancement For features and enhancements (feat)
Projects
Status: No status
Development

No branches or pull requests

2 participants