mirror of
https://codeberg.org/forgejo-aneksajo/forgejo-aneksajo.git
synced 2025-10-04 11:00:05 +02:00
fix: require read permissions for git-annex via ssh
The change in 5816106de5
made a bug
visible with which it was possible to read annexed content from a
private repository without having read access to it.
Prior to that commit this bug could only be triggered by having a git
version <2.29. I'd expect everyone to use a newer version than that for
a while now.
The fix is to require read permissions at a minimum for git-annex-shell
operations.
This commit is contained in:
parent
e42914e8e8
commit
b65ceb31a3
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ var (
|
|||
"git-upload-archive": perm.AccessModeRead,
|
||||
"git-receive-pack": perm.AccessModeWrite,
|
||||
lfsAuthenticateVerb: perm.AccessModeNone,
|
||||
gitAnnexShellVerb: perm.AccessModeNone, // annex permissions are enforced by GIT_ANNEX_SHELL_READONLY, rather than the Gitea API
|
||||
gitAnnexShellVerb: perm.AccessModeRead, // annex permissions are enforced by GIT_ANNEX_SHELL_READONLY, rather than the Gitea API, but read permissions are required at a minimum
|
||||
}
|
||||
alphaDashDotPattern = regexp.MustCompile(`[^\w-\.]`)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue