SSH tunneling
Hi all, I'm deploying a django project with ssh tunneling to connect to a remote database. For this I am using ssh authentication via private/public keys. How can I safely store the private ssh key in the repository to connect to the remote database?
Thanks in advance 😉
7 Replies
Project ID:
97b19625-14e4-46b6-8fdc-357b0774d177
97b19625-14e4-46b6-8fdc-357b0774d177
my advice would be to store them in a storage bucket like cloudflare r2 and download the key files from the bucket during build
what about security? After all, the keys will be visible in the repository, and packages can probably be intercepted?
you might've misunderstood me, my recommendation was to not store the keys in the repository, but to store them in a private s3 based bucket storage, like cloudflare r2.
you do not want to be storing your keys in your repository itself, private or otherwise
I hear you. Thank you for your reply😀
no problem!