[PR #329] [MERGED] feat: auth supports forbidden permissions #569

Closed
opened 2026-04-08 16:53:28 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/329
Author: @sigoden
Created: 12/23/2023
Status: Merged
Merged: 12/23/2023
Merged by: @sigoden

Base: mainHead: feat-auth-forbidden


📝 Commits (3)

📊 Changes

4 files changed (+87 additions, -62 deletions)

View changed files

📝 README.md (+6 -5)
📝 src/auth.rs (+62 -55)
📝 src/server.rs (+2 -2)
📝 tests/auth.rs (+17 -0)

📄 Description

Use :- to indicate that the path is forbidden.

dufs -a user:pass@/:rw,/dir1,/dir2:-

user has read-write permissions for /*, has read-only permissions for /dir1/*, but is fordden for /dir2/*.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sigoden/dufs/pull/329 **Author:** [@sigoden](https://github.com/sigoden) **Created:** 12/23/2023 **Status:** ✅ Merged **Merged:** 12/23/2023 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `feat-auth-forbidden` --- ### 📝 Commits (3) - [`c6f5ac3`](https://github.com/sigoden/dufs/commit/c6f5ac39ec585df573109feb8032705452b722c7) feat: auth support forbidden perm - [`1eff7c7`](https://github.com/sigoden/dufs/commit/1eff7c7094183829caebaab08facfbaaa7c03d86) update readme - [`9fdcf36`](https://github.com/sigoden/dufs/commit/9fdcf36f8daacab8ab31bbc76c107c8d5c608319) update readme ### 📊 Changes **4 files changed** (+87 additions, -62 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+6 -5) 📝 `src/auth.rs` (+62 -55) 📝 `src/server.rs` (+2 -2) 📝 `tests/auth.rs` (+17 -0) </details> ### 📄 Description Use `:-` to indicate that the path is forbidden. ``` dufs -a user:pass@/:rw,/dir1,/dir2:- ``` `user` has read-write permissions for `/*`, has read-only permissions for `/dir1/*`, but is fordden for `/dir2/*`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-04-08 16:53:28 +03:00
zhus closed this issue 2026-04-08 16:53:28 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#569