[PR #52] [MERGED] feat: path level access control #443

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

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/52
Author: @sigoden
Created: 6/19/2022
Status: Merged
Merged: 6/19/2022
Merged by: @sigoden

Base: mainHead: feat-path-level-ac


📝 Commits (4)

📊 Changes

7 files changed (+288 additions, -94 deletions)

View changed files

📝 README.md (+38 -11)
📝 src/args.rs (+12 -17)
📝 src/auth.rs (+149 -15)
📝 src/main.rs (+1 -0)
📝 src/server.rs (+27 -46)
src/utils.rs (+12 -0)
📝 tests/auth.rs (+49 -5)

📄 Description

Duf supports path level access control through option --auth/-a.

Grammar rule:

<path>@<readwrite>[@<readonly>]
  • <path>: Path to protected
  • <readwrite>: Account with readwrite permission
  • <readonly>: Account with readonly permission

If <readonly> is *, means <path> is public, everyone can acess/download it.

BREAKING CHANGE: --auth is changed, --no-auth-access is removed


🔄 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/52 **Author:** [@sigoden](https://github.com/sigoden) **Created:** 6/19/2022 **Status:** ✅ Merged **Merged:** 6/19/2022 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `feat-path-level-ac` --- ### 📝 Commits (4) - [`ac317b8`](https://github.com/sigoden/dufs/commit/ac317b8287d96aab644e63702f229e99029e4de4) feat: path level access control - [`250db66`](https://github.com/sigoden/dufs/commit/250db661406979c708a7bbd72ad04539b1e0a07f) chore: update readme - [`b67b64e`](https://github.com/sigoden/dufs/commit/b67b64eae652d1b4c2e0da5b409782af485ce138) chore: update readme - [`b5692a3`](https://github.com/sigoden/dufs/commit/b5692a3e055c9f0020aab4e747487a19254fb9a6) chore: update readme ### 📊 Changes **7 files changed** (+288 additions, -94 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+38 -11) 📝 `src/args.rs` (+12 -17) 📝 `src/auth.rs` (+149 -15) 📝 `src/main.rs` (+1 -0) 📝 `src/server.rs` (+27 -46) ➕ `src/utils.rs` (+12 -0) 📝 `tests/auth.rs` (+49 -5) </details> ### 📄 Description Duf supports path level access control through option `--auth`/`-a`. Grammar rule: ``` <path>@<readwrite>[@<readonly>] ``` - `<path>`: Path to protected - `<readwrite>`: Account with readwrite permission - `<readonly>`: Account with readonly permission > If `<readonly>` is `*`, means `<path>` is public, everyone can acess/download it. BREAKING CHANGE: `--auth` is changed, `--no-auth-access` is removed --- <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:52:56 +03:00
zhus closed this issue 2026-04-08 16:52:56 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#443