Fully disable of SSH setup if SSH is not enabled #321
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While installing Gitea, the ssh is been disabled.
The requirement is to remove the ssh-svc as well when ssh is disabled in Gitea.
Below are the comment as received in Gitea.
The SSH Service is disabled , but the SVC shows the port 22. The port 22 is been scanned by the scanner and report the issue.
It's not related to Gitea itself, but docker-compose/helmchart or other methods you used to deploy Gitea.
For helmchart, see: https://gitea.com/gitea/helm-chart/src/branch/master/templates/gitea/ssh-svc.yaml
You could propose PRs on the helmchar repository.
Hi
Please suggest If the ssh-svc can be removed while installing Gitea.
Of course, if ssh has been disabled, there would be no need for the service. Feel free to provide a PR for this Issue.
Hi @AnkitShankdhar. If I understand you correctly, you are talking about a way to completely disable any SSH related feature within the Helm Chart. Is this correct?
In that case there would be a few things to do:
.Values.service.ssh
app.ini
composingIMO the enable/disable logic of
.Values.service.ssh
would be the feature toggle for the SSH capability. Without a Kubernetes service as centralized endpoint for incoming SSH traffic, no SSH logic inside Gitea allows for accessing it via SSH, AFAIK.