Commit graph

1361 commits

Author SHA1 Message Date
Nicola Murino
64c28bf6aa
OpenAPI schema: fix some definitions
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2023-01-01 09:57:23 +01:00
Nicola Murino
b9e75ff661
OpenAPI: set charset also for text/plain responses
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-12-19 18:39:05 +01:00
Nicola Murino
362396811e
OpenAPI: added charset=utf-8 to application/json content type
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-12-19 18:36:04 +01:00
Nicola Murino
916e53cf9a
CI: add nosqlite build tag when CGO is disabled
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-12-18 16:12:11 +01:00
Nicola Murino
5f35b8b704
gcsfs: backport from main
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-12-18 10:29:57 +01:00
Nicola Murino
08e29d4ee0
respect token validation mode for CSRF header
Fixes #1104

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-12-16 19:15:26 +01:00
Nicola Murino
ff4c1b239e
AzureBlobs: update SDK to v0.6.1
Remove path escape for blob names, this issue is now fixed within
the SDK

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-12-16 18:57:11 +01:00
Nicola Murino
49c8affcef
S3: improve "directories" detection
Fixes #1097

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-12-13 08:56:06 +01:00
Nicola Murino
14139af165
local fs: fixed paths validation for some Windows specific edge cases
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-12-12 10:42:15 +01:00
Nicola Murino
af4f54bf11
ensure to always validate password strength
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-12-09 19:44:35 +01:00
Nicola Murino
9ba468698b
fix build with some features disabled
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-12-04 09:24:21 +01:00
Nicola Murino
0f74c077ac
ftpd: check the TYPE parameter in a case-insensitive manner
also pin plugin versions in docker image

Fixes #1082

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-12-04 08:32:27 +01:00
Nicola Murino
dd98c06397
allow WebClient login with multi-step auth enabled
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-29 18:47:53 +01:00
Nicola Murino
b989cdabe5
set version to 2.4.2
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-25 15:06:12 +01:00
Nicola Murino
9e7e89d69e
backports from main
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-24 18:36:25 +01:00
Nicola Murino
f64056b820
update nfpm to 2.22.1
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-20 15:40:44 +01:00
Nicola Murino
7e6d944cb5
WebClient: add drag and drop upload UI
thanks to @wooneusean for the help

Fixes #951

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-20 13:49:04 +01:00
Nicola Murino
a66d207291
fix SeaweedFS rename compatibility
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-20 13:07:43 +01:00
Nicola Murino
0a8edcd811
backports from main
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-19 13:07:03 +01:00
Nicola Murino
0fa08ddbaa
set version to 2.4.1
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-12 18:41:49 +01:00
Nicola Murino
3d4c35522a
initprovider: fix loading users with MFA config
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-11 19:48:27 +01:00
Nicola Murino
f400e67daa
fix restore users with MFA config
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-11 18:12:56 +01:00
Nicola Murino
4e10275fd1
clarify that the PROXY protocol is supported for SFTP/FTP
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-07 09:17:12 +01:00
Nicola Murino
7bd71474ef
plugins: fix hash check
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-05 10:23:41 +01:00
Nicola Murino
0ac2120532
WebUI: try harder to prevent browsers from auto-filling in password fields
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-04 19:20:57 +01:00
Nicola Murino
9e5287cfb4
webdav: always open files for reading in lazy mode
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-03 08:53:19 +01:00
Nicola Murino
450ab6b252
shared providers: allow to immediately re-add soft-deleted event rules
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-01 17:40:39 +01:00
Nicola Murino
51d900558a
WebDAV: make test cases more robust
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-01 14:30:00 +01:00
Nicola Murino
a71690ff2a
shared providers: allow to immediately re-add soft-deleted users
there is no need to wait for cache updates

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-01 13:17:49 +01:00
Nicola Murino
f390eab1de
sftpfs: reuse connections
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-01 13:17:26 +01:00
Nicola Murino
571e088fdd
improve some docs
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-01 13:17:19 +01:00
Nicola Murino
6714085d58
eventmanager: add placeholder to get the parent directory
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-01 13:17:11 +01:00
Nicola Murino
0389605d65
eventmanager: allow to access the backup file
so it can be used in email and other actions

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-01 13:17:07 +01:00
Nicola Murino
b8ef94ece7
CI: use 2.4.x branch
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-11-01 11:01:21 +01:00
Nicola Murino
6f422c3d8b
WebClient: make folder deletion recursive
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-27 08:27:44 +02:00
Nicola Murino
222f0c735b
back to development
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-23 09:20:00 +02:00
Nicola Murino
63bf8eb1a1
set version to 2.4.0
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-23 04:47:41 +02:00
Nicola Murino
db0e58ae7e
Add support for graceful shutdown
Fixes #1014

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-22 11:56:41 +02:00
Nicola Murino
87045284cc
make connections lookups constant time
Performance improves if there are many active connections.
For a few connections there is a small (unnoticeable) performance
degradation

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-20 18:17:13 +02:00
Nicola Murino
f3ee20980a
fix build in bundle mode
added bunlde mode build to CI to prevent this from happening again
in the future

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-20 07:58:34 +02:00
Nicola Murino
54f1946aba
OIDC: allow to skip JWT signature validation
It's intended for special cases where providers,such as Azure,
use the "none" algorithm

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-19 18:38:09 +02:00
Nicola Murino
47842ae614
script based hooks: don't propagate global env vars
env vars must be explicitly set

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-19 09:29:40 +02:00
Nicola Murino
7e0b62b703
update swagger-ui, codemirror, video-js
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-16 18:29:42 +02:00
Nicola Murino
15b4194e8f
event rules: allow to set min/max file size using "human" notation
10MB or 1GB instead of the size in bytes

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-16 15:28:47 +02:00
Nicola Murino
5a199acbb2
howto: add event manager
add groups section in the getting started guide.
Suggest to prefer configuration with env vars instead of modifying
the default configuration file

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-16 08:26:03 +02:00
Nicola Murino
07b3f2f4d6
config: fix for slices with default values
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-14 16:45:20 +02:00
Nicola Murino
13ee236884
Allow to read env vars from files inside the "env.d" directory
This makes it easier to set environment variables on some operating systems.
Setting configuration options from environment variables is recommended if
you want to avoid the time-consuming task of merging your changes with the
default configuration file after upgrading SFTPGo

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-13 18:43:58 +02:00
Nicola Murino
3822b7d3f7
workflows: replace deprecated set-output command
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-13 13:11:22 +02:00
Nicola Murino
2b2b69fb23
back to development
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-12 22:03:47 +02:00
Nicola Murino
4b4edef0ad
disable self connections by default
now that the event manager can create files, self connections may create
even more issues than before

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-10-12 18:12:12 +02:00