enable ecdsa and /or ed25519 for buildin ssh server (rootless instances) #11

Open
opened 2025-12-08 12:51:27 +00:00 by Ghostinvisible-forgejo-org · 1 comment

Currently rootless instances only have rsa enabled, we should generate ecdsa and /or ed25519 keys.

Steps:

  • generate keys on k8s host
    ssh-keygen -t ed25519 -f /precious/k8s/<pvc>/ssh/ed25519
    ssh-keygen -t ecdsa -f /precious/k8s/<pvc>/ssh/ecdsa
    
  • update values config
    gitea:
      config:
        server:
          SSH_SERVER_HOST_KEYS: ssh/gitea.rsa,ssh/ecdsa,ssh/ed25519
    
Currently rootless instances only have rsa enabled, we should generate `ecdsa` and /or `ed25519` keys. ## Steps: - generate keys on k8s host ```sh ssh-keygen -t ed25519 -f /precious/k8s/<pvc>/ssh/ed25519 ssh-keygen -t ecdsa -f /precious/k8s/<pvc>/ssh/ecdsa ``` - update `values` config ```yaml gitea: config: server: SSH_SERVER_HOST_KEYS: ssh/gitea.rsa,ssh/ecdsa,ssh/ed25519 ```

Sounds like a good idea.

Sounds like a good idea.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infrastructure/k8s-cluster#11
No description provided.