redkubes / otomi-core

Application Platform for Kubernetes
https://otomi.io
Apache License 2.0
2.19k stars 165 forks source link

Gitea with SSH #1041

Open j-zimnowoda opened 1 year ago

j-zimnowoda commented 1 year ago

Is your feature request related to a problem? Please describe. As a developer I would like to add my SSH public key to gitea, so I can work with git repo via SSH.

Describe the solution you'd like A clear and concise description of what you want to happen.

Define proxy for nginx-ingress controller https://kubernetes.github.io/ingress-nginx/user-guide/exposing-tcp-udp-services/

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

MichaelTrip commented 1 year ago

+1 for listening to potentional customers ;-)

Ani1357 commented 1 year ago
Ani1357 commented 1 year ago
merll commented 4 months ago

Adding information from duplicate issue #1488:

When following the Otomi labs related to Gitea, it is not obvious how the repositories can be used locally (e.g. git clone). As the authentication is done via OpenID, it is not surprising that the Otomi credentials do not work when accessing the repo URL. However, it is not clear what the alternatives are.

It is possible to use Gitea as a remote using password authentication, by explicitly setting a Gitea password in the user profile. This however has two major drawbacks:

There is one alternative to username/password authentication: Under (user) Settings -> Applications, the user can create an application token. Only access to repo is necessary. Then the user can clone and commit using the HTTP url https://[token]@gitea.mydomain.tld/[org]/[repo].git. This at least resolves issues connected to passwords above. Tokens can be removed if untrusted and regenerated as needed.

The web authentication in Gitea should nevertheless not be promoted for Git operations. SSH is also preferred on other platforms such as GitHub, as the private keys can be handled more securely (ssh-agent with Keychain access, MFA).