-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect SSH key permissions (0660) set by Weblate GUI causing Git operations to fail #13897
Comments
Something must have changed the permissions. Weblate creates the files correctly.
|
Check I'm not sure how you deployed weblate, but the weblate helm chart sets Change
|
That's a solution that i never saw coming to be honest ! Thank you very much :) |
Hi guys, From my perspective, I don’t believe the issue is related to fsGroupChangePolicy. The default value is Always, meaning that every time a volume is mounted, Kubernetes recursively changes ownership and permissions of all files to match fsGroup (1000/weblate). But it has limitations and rules for this one. If
If
TL;DR
My question to @Autherain: Of course, feel free to correct me if I’m wrong! |
Hi, fsGroup does change file permission if necessary. There may be more to it to trigger the issue actually, but This way you can reproduce the behavior of fsGroup with your Weblate deployment: Prerequisites: CSI driver has the capability of fsGroup (e.g. a hostpath PV has not). I have a PVC with accessMode ReadWriteOnce btw.
group has no access at all
You may need to adjust the PVC name, so the Pod mounts it.
group is read and write now which ssh rejects
|
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:
I already tried
Steps to reproduce the behavior
Steps to Reproduce
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:
The text was updated successfully, but these errors were encountered: