Commit graph

13 commits

Author SHA1 Message Date
Henrique Dias
8ddd3d1db9
fix(auth): isolate auto-provisioned proxy and hook users to their own home
Proxy- and hook-authenticated users were auto-provisioned by applying the
default scope (".") and passing it straight to MakeUserDir, which normalizes
"." to "/". With CreateUserDir enabled, every provisioned user therefore
received the server root as its scope instead of a per-user home directory,
letting one user read, overwrite and delete another user's files.

The signup handler already cleared the scope before deriving the home
directory. Centralize that logic into Settings.CreateUserHome (clear the
scope when CreateUserDir is on and no explicit scope was supplied, derive the
home dir, then reject a scope already owned by another user) and use it from
signup, proxy and hook auth so the three provisioning paths cannot diverge.

Refs GHSA-j7jh-37pf-mf8h, GHSA-j2fc-28fx-hc8q
2026-07-25 08:16:15 +02:00
Henrique Dias
a1063925e1
fix: restore symlink behavior as opt-in followExternalSymlinks 2026-06-23 13:19:51 +02:00
Henrique Dias
34ae34e764
fix: remove undocumented hook auth with shell replacement 2026-06-03 09:59:36 +02:00
Marcel Szalbach
8598db2acc
fix: added dateFormat to getUserDefaults so this is respected in the … (#5804) 2026-03-06 15:32:04 +01:00
Beckam White
fda8a99292
feat: add "redirect after copy/move" user setting (#5662) 2026-01-10 10:27:54 +01:00
Henrique Dias
f029c3005e
refactor: cleanup package names (#5605) 2025-12-06 10:52:11 +01:00
Henrique Dias
23c4e4565b
chore: remove 'nolint' comments 2025-11-15 09:01:21 +01:00
rocksload
97b8911ba8
refactor: use slices.Contains to simplify code (#5483) 2025-10-17 16:45:47 +02:00
cui
b482a9bf0d
refactor: to use strings.Lines 2025-09-13 07:57:18 +02:00
Henrique Dias
bf37f88c32
fix: passthrough the minimum password length (#5236) 2025-06-29 11:28:32 +02:00
Henrique Dias
464b644adf
fix: add configurable minimum password length (#5225) 2025-06-28 10:07:34 +02:00
Oleg Lobanov
ae0af1f996
chore: fix golangci-lint errors 2024-04-01 18:24:06 +02:00
Ramires Viana
dda9a389f3 feat: hook authentication method 2022-07-20 16:40:49 +02:00