mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #540] Support anonymous write access #313
Reference in New Issue
Block a user
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 @fredleger on GitHub (Feb 11, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/540
Specific Demand
Unless i made a mistake currently anonymous writes is not supported. Something like the following config will give you only read access to
dir1anddir2I'm facing a case where i put SSO before dufs (through k8s ingress and AWS ALB) and thus i don't need any kind of authentication.
I guess the same logic is applied for uploads, deltion etc...
Implement Suggestion
Allow end-user to setup RW access for anonymous error and enforce the default to avoid unwanted full open directory
It can also be done through an env variable like
DUFS_ALLOW_ANONYMOUS_WRITESorDUFS_DISABLE_AUTH(because it's really what is is IMHO).PS: thanks for the great tool ;-)
@fredleger commented on GitHub (Feb 11, 2025):
for the record i also tried setting
auth: []indufs.yamland it's "worked". I have access in RW mode to all folder. So that can be a solution. But it allow full RW (not just the wanted dirs). In more complex scenario that can be a problem.@sigoden commented on GitHub (Feb 12, 2025):
Maybe you missed the options
--allow-allor--allow-upload/--allow-delete.@fredleger commented on GitHub (Feb 12, 2025):
All these settings where set.