4
Add local CA certificates when Docker image runs
Source: supabase/supabase#20607 · opened by @Xoffio
Hi,
While working with Supabase, I ran into something that might happen to some users hosting Supabase locally.
In my setup, I needed to integrate with a local SMTP server that redirects emails to Gmail. To make this work within my internal network, I need to add a CA certificate to the services talking to my SMTP server.
In the case of hosting Supabase locally, I was able to do this by manually editing the Dockerfile of the gotrue image:
and then editing the docker-compose.yml file of supabase:
Problem solution suggestion
I suggest introducing a certs volume in Supabase where users can conveniently place their certificates. This can be accompanied by a script that runs during the Docker image startup, copying the certificates to /usr/local/share/ca-certificates/ and updating the CA certificate seamlessly.
This would simplify the process of incorporating custom certificates into the Supabase Docker image, making it more user-friendly for diverse setups.
While working with Supabase, I ran into something that might happen to some users hosting Supabase locally.
In my setup, I needed to integrate with a local SMTP server that redirects emails to Gmail. To make this work within my internal network, I need to add a CA certificate to the services talking to my SMTP server.
In the case of hosting Supabase locally, I was able to do this by manually editing the Dockerfile of the gotrue image:
and then editing the docker-compose.yml file of supabase:
Problem solution suggestion
I suggest introducing a certs volume in Supabase where users can conveniently place their certificates. This can be accompanied by a script that runs during the Docker image startup, copying the certificates to /usr/local/share/ca-certificates/ and updating the CA certificate seamlessly.
This would simplify the process of incorporating custom certificates into the Supabase Docker image, making it more user-friendly for diverse setups.
No pledges yet. Be the first to back this.
Comments
Similar requests
Decoupled DB and Middleware for Self-Hosted using Docker Compose
1 vote · 0 comments
Decouple supabase CLI from docker
1 vote · 0 comments
use Let's Encrypt to auto-generate TLS certificates
2 votes · 0 comments
Missing features for using management API in CI
1 vote · 0 comments
Add Reverse Proxy Support for Local Supabase Development
1 vote · 0 comments
No comments yet.