sftpgo/common
Nicola Murino daac90c4e1
fix a potential race condition for pre-login and ext auth
hooks

doing something like this:

err = provider.updateUser(u)
...
return provider.userExists(username)

could be racy if another update happen before

provider.userExists(username)

also pass a pointer to updateUser so if the user is modified inside
"validateUser" we can just return the modified user without do a new
query
2021-01-05 09:50:22 +01:00
..
actions.go add Azure Blob support 2020-10-25 08:18:48 +01:00
actions_test.go add Azure Blob support 2020-10-25 08:18:48 +01:00
common.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
common_test.go defender: allow hot-reloading for safe and block lists 2021-01-04 17:52:14 +01:00
connection.go update ftpserverlib to include the latest fixes and features 2020-12-18 08:49:32 +01:00
connection_test.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
defender.go defender: allow hot-reloading for safe and block lists 2021-01-04 17:52:14 +01:00
defender_test.go add REST API for the defender 2021-01-02 19:33:24 +01:00
httpauth.go telemetry server: add optional https and authentication 2020-12-18 16:04:42 +01:00
httpauth_test.go telemetry server: add optional https and authentication 2020-12-18 16:04:42 +01:00
tlsutils.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
tlsutils_test.go mutal TLS: add support for revocation lists 2021-01-03 17:03:04 +01:00
transfer.go ensure 64 bit alignment for 64 bit struct fields access atomically 2020-12-14 14:52:36 +01:00
transfer_test.go add Data At Rest Encryption support 2020-12-05 13:48:13 +01:00