Nicola Murino
|
de089e51fd
|
Web: allow to require password change and two-factor for admins
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-21 20:45:10 +01:00 |
|
Nicola Murino
|
51ae2d7301
|
add copy permission
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-20 18:19:09 +01:00 |
|
Nicola Murino
|
b4afdac8a0
|
fix test cases on Windows (again)
in Go 1.22 Readdir now works on Windows in the same way as on other
platforms
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-18 12:17:51 +01:00 |
|
Nicola Murino
|
d92f85d1dd
|
WebClient: improve error message when trying to move non-empty folder
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-18 11:22:41 +01:00 |
|
Nicola Murino
|
162376fd74
|
add a nil check for attributes
just defensive code
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-18 10:14:05 +01:00 |
|
Nicola Murino
|
d413775060
|
vfs: log progress after each page iteration
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-18 10:13:51 +01:00 |
|
Nicola Murino
|
db0a467d33
|
refactor metadata support
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-18 10:13:46 +01:00 |
|
Nicola Murino
|
e2ff12c589
|
fix test cases on Windows
on Windows f.Readdir returns no error if f is closed
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-17 13:41:40 +01:00 |
|
Nicola Murino
|
e61fb42cbc
|
remove metadata plugin
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-17 12:30:47 +01:00 |
|
Nicola Murino
|
410b7cd512
|
fix remaining lint warnings
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-16 18:55:58 +01:00 |
|
Nicola Murino
|
ad75543172
|
fix some new lint warnings
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-15 21:13:45 +01:00 |
|
Nicola Murino
|
1ff55bbfa7
|
add DirLister interface
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-15 20:53:56 +01:00 |
|
Nicola Murino
|
c49553abd0
|
keyboard interactive: ask only the passcode if it is the second step
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-05 19:02:01 +01:00 |
|
Nicola Murino
|
ae309d64c4
|
WebClient: disable indicator if we redirect from the login page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-04 21:13:04 +01:00 |
|
Nicola Murino
|
8385acd0e3
|
Redirect to two-factor auth page after creating the first admin
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-04 20:58:29 +01:00 |
|
Nicola Murino
|
e5836c8118
|
WebUI: add a JSON helper function
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-04 18:16:10 +01:00 |
|
Nicola Murino
|
c23d779280
|
WebClient: load shares using an async request
instead of rendering them directly within the template
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-04 14:33:51 +01:00 |
|
Nicola Murino
|
3158190945
|
WebClient: respect second factor requirements enforced at group level
Fixes #1506
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-04 12:09:47 +01:00 |
|
Nicola Murino
|
6074ed21f7
|
dataproviders: return an uniform error for foreign key violations
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-03 14:24:50 +01:00 |
|
Nicola Murino
|
dcecb79f63
|
fix expected strings in some test cases
plain strings were converted to translation codes
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-03 12:51:12 +01:00 |
|
Nicola Murino
|
71e01ab26d
|
new WebAdmin: add test cases
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-03 12:42:05 +01:00 |
|
Nicola Murino
|
ad80d4e475
|
WIP new WebAdmin: event rules
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-02-01 20:32:43 +01:00 |
|
Nicola Murino
|
c85601146d
|
WIP new WebAdmin: event actions
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-31 20:49:25 +01:00 |
|
Nicola Murino
|
143d4611ba
|
WIP new WebAdmin: events page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-28 19:38:01 +01:00 |
|
Nicola Murino
|
caa1d70aab
|
WebUI: add a base template for info messages
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-28 10:22:16 +01:00 |
|
Nicola Murino
|
a275ef17a8
|
relax Unix domain socket permissions so that they are group writable
Fixes #1507
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-28 09:34:07 +01:00 |
|
Nicola Murino
|
69da5c10c6
|
WIP new WebAdmin: configs page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-27 12:48:15 +01:00 |
|
Nicola Murino
|
d01fccf28c
|
WIP new WebAdmin: maintenance page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-26 21:03:41 +01:00 |
|
Nicola Murino
|
9fcff83f8f
|
WIP new WebAdmin: status page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-25 19:26:51 +01:00 |
|
Nicola Murino
|
eec9c449d4
|
vfs: make PipeReader an interface
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-24 19:59:50 +01:00 |
|
Nicola Murino
|
8180b75ef1
|
WIP new WebAdmin: IP lists pages
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-24 19:23:15 +01:00 |
|
Nicola Murino
|
d381304136
|
WIP new WebAdmin: admin/admins pages
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-22 20:22:41 +01:00 |
|
Nicola Murino
|
e38350e8b3
|
WIP new WebAdmin: role page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-21 17:19:25 +01:00 |
|
Nicola Murino
|
3f479c5537
|
WIP new WebAdmin: roles page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-21 16:49:04 +01:00 |
|
Nicola Murino
|
0d387d9799
|
prefer errors.As to errors.Is
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-21 15:46:38 +01:00 |
|
Nicola Murino
|
8648351fc7
|
WIP new WebAdmin: connections page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-20 15:35:05 +01:00 |
|
Nicola Murino
|
73b2573b14
|
WIP new WebAdmin: two factor auth page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-18 20:25:07 +01:00 |
|
Nicola Murino
|
91802fad3e
|
WIP new WebAdmin: profile, change password, message pages
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-18 19:18:57 +01:00 |
|
Nicola Murino
|
87451560e3
|
normalize common database errors
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-17 17:36:35 +01:00 |
|
Nicola Murino
|
5ac99ee556
|
WIP new WebAdmin: folder page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-16 19:51:37 +01:00 |
|
Nicola Murino
|
d939a82225
|
user: add TLS certificates
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-14 21:36:23 +01:00 |
|
Nicola Murino
|
0722c4369b
|
WIP new WebAdmin: folders page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-14 16:59:27 +01:00 |
|
Nicola Murino
|
1a0f734a9c
|
WIP new WebAdmin: remove some hard coded strings
so they can be localized
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-14 09:41:39 +01:00 |
|
Nicola Murino
|
bf94f8b87c
|
WIP new WebAdmin: group page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-14 09:09:42 +01:00 |
|
Nicola Murino
|
5c8214e121
|
WIP new WebAdmin: groups page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-11 19:26:13 +01:00 |
|
Nicola Murino
|
e6c8b0c86b
|
Merge branch 'main' of github.com:drakkan/sftpgo
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-10 20:16:28 +01:00 |
|
Nicola Murino
|
03ebd5b841
|
fix a lint warning from the previous PR
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-10 20:15:51 +01:00 |
|
Anthrazz
|
c21b434c4e
|
defender: implement logging of events and bans (#1495)
defender: implement logging of events and bans
Signed-off-by: Anthrazz <25553648+Anthrazz@users.noreply.github.com>
|
2024-01-10 20:12:57 +01:00 |
|
Nicola Murino
|
113724f340
|
Merge branch 'main' of github.com:drakkan/sftpgo
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-10 20:01:54 +01:00 |
|
Nicola Murino
|
9cde0909b0
|
test cases: replace expired TLS certificates
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
|
2024-01-10 19:53:48 +01:00 |
|