Skip to content
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

Support anonymous write access #540

Closed
fredleger opened this issue Feb 11, 2025 · 3 comments
Closed

Support anonymous write access #540

fredleger opened this issue Feb 11, 2025 · 3 comments

Comments

@fredleger
Copy link

fredleger commented Feb 11, 2025

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 dir1and dir2

    auth:
      - '@/dir1:rw,/dir2:rw'

I'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_WRITES or DUFS_DISABLE_AUTH (because it's really what is is IMHO).

PS: thanks for the great tool ;-)

@fredleger
Copy link
Author

fredleger commented Feb 11, 2025

for the record i also tried setting auth: [] in dufs.yaml and 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
Copy link
Owner

sigoden commented Feb 12, 2025

Maybe you missed the options --allow-all or --allow-upload/--allow-delete.

Image

@sigoden sigoden closed this as completed Feb 12, 2025
@fredleger
Copy link
Author

All these settings where set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants