mirror of
https://github.com/sirtoobii/vaultwarden_ldap_sync.git
synced 2026-04-26 20:45:54 +03:00
[GH-ISSUE #18] Permission Denied on vaultwarden_cookies.txt in Non-Root Mode #11
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden_ldap_sync#11
Loading…
Add table
Add a link
Reference in a new issue
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?
Originally created by @ottvladimir on GitHub (Sep 11, 2025).
Original GitHub issue: https://github.com/sirtoobii/vaultwarden_ldap_sync/issues/18
When deploying with securityContext in Kubernetes (e.g., runAsUser: 1001, fsGroup: 1001), the following error occurs due to lack of write permissions on the cookie file path:
PermissionError: [Errno 13] Permission denied: '../vaultwarden_cookies.txt'
This failure happens during cookie saving in the vaultwarden.py backend, as the non-root user (e.g., UID 1001) cannot write to the default relative path ../vaultwarden_cookies.txt, which likely points to a root-owned or restricted directory outside the container's writable area.
@sirtoobii commented on GitHub (Sep 13, 2025):
Hi @ottvladimir Thanks for raising this issue. I've pushed a fix in
fix/cookie_store_locationcan you confirm that this solves it?@ottvladimir commented on GitHub (Sep 19, 2025):
Hi! Yes, this fixed the problem.