-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
bugSomething is broken.Something is broken.
Description
Describe the issue
When using Weblate's GUI to manage repositories, it creates SSH keys with incorrect permissions (0660) in the /app/data/ssh/ directory.
This causes SSH operations to fail with the following error:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0660 for '/app/data/ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/app/data/ssh/id_rsa": bad permissions
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0660 for '/app/data/ssh/id_ed25519' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/app/data/ssh/id_ed25519": bad permissions
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
(128) I already tried
- I've read and searched the documentation.
- I've searched for similar filed issues in this repository.
Steps to reproduce the behavior
Steps to Reproduce
- Deploy Weblate 5.9 official Docker image in a Kubernetes cluster
- Use Weblate GUI to manage repository settings
- Attempt to perform Git operations using SSH
- Observe the permission denied errors in logs
Note: Limited reproduction steps available as the exact trigger is not fully identified.
Expected behavior
Weblate should set the correct permissions (0600) when generating or managing SSH keys to ensure they work properly with Git operations.
Screenshots
No response
Exception traceback
How do you run Weblate?
Docker container
Weblate versions
5.9
Weblate deploy checks
Additional context
Current Workaround
To fix this issue, users need to manually access the container shell via kubectl and run:
chmod 600 /app/data/ssh/id_rsa
chmod 600 /app/data/ssh/id_ed25519schwabix, jidckii and K3ndu
Metadata
Metadata
Assignees
Labels
bugSomething is broken.Something is broken.