coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
26.27k stars 1.33k forks source link

[Bug]: Overwriting id_rsa without updating id_rsa.pub #2398

Open hareldev opened 3 weeks ago

hareldev commented 3 weeks ago

Description

When using Private repository in remote server, Coolify will replace your remote /root/.ssh/id_rsa file with the one configured in the admin panel. However, it will not update /root/.ssh/id_rsa.pub, which cause any private repo to not load.

Minimal Reproduction (if possible, example repository)

Please make sure you have the correct access rights and the repository exists.



### Exception or Error

_No response_

### Version

v4.0.0-beta.294
brunogrcsada commented 3 weeks ago

In the meantime I would recommend setting up a GitHub app source and re-creating the project resource with the app attached as the source, which holds its own key pair.

I have been encountering a few issues though with deploy keys as well in v4.0.0-beta.297

hareldev commented 2 weeks ago

Thanks for the suggestion! I'm actually working with private GitLab repositories.

A solution that worked for me so far was:

This way, coolify will not overwrite it, keeping the files mismatched.