1
0
mirror of https://github.com/hacdias/webdav.git synced 2025-04-18 15:44:00 +03:00

157 Commits

Author SHA1 Message Date
Henrique Dias
f0b5a39d80 ci: go 1.24 v5.7.4 2025-03-18 07:53:28 +01:00
Henrique Dias
dbd708a76e chore: update dependencies 2025-03-18 07:53:28 +01:00
Henrique Dias
f61b7cab3b
docs: cleanup comments v5.7.3 2025-02-12 07:42:15 +01:00
Henrique Dias
3cfaa0da3e
fix: return correct amount of written bytes 2025-02-12 07:41:21 +01:00
networkException
f7b78cd834
fix: support HEAD method on collections 2025-02-12 07:41:09 +01:00
Henrique Dias
4b4e555ed5
fix: bring back the prefix test 2025-01-16 07:10:07 +01:00
Henrique Dias
6aeb3f8a30
fix: refactoring previous fix in attempt to address ongoing issues
See #211 and #215
v5.7.2
2025-01-15 19:35:03 +01:00
Henrique Dias
59c5f1343f
Revert "fix: rename/copy when using prefix"
This reverts commit 617496c01979bf85d13d16ab623f57be46f8e4f3.
2025-01-15 19:18:40 +01:00
Henrique Dias
617496c019 fix: rename/copy when using prefix v5.7.1 2025-01-04 18:45:20 +01:00
Andrey Denisov
3790d7de08 docs(readme): improve fail2ban description 2024-12-30 20:10:07 +01:00
Henrique Dias
eaf42b03e9
feat: add bcrypt command v5.7.0 2024-12-22 10:28:49 +01:00
Henrique Dias
dce6010b61
chore: update dependencies v5.6.2 2024-12-21 08:04:50 +01:00
Henrique Dias
88863d7242
ci: update golangci-lint v5.6.1 2024-12-15 18:30:50 +01:00
Henrique Dias
2c96db92aa
chore: update dependencies 2024-12-15 18:30:28 +01:00
networkException
79bc17afab feat: add support for systemd listener activation sockets
To support starting a network service on demand and to
support a "least privilege-approach" with regards to the
permission a network service process needs to have, systemd
supports opening a network socket on behalf of the service
and passing it as an open file descriptor.

The service gets notified about open file descriptors for
this purpose as well as metadata such as named listeners
via environment variables.

This patch adds support for prefixing the listen address
passed with --address with "sd-listen-fd:" to access these
file descriptors, taking either a listener name passed using
the `LISTEN_FDNAMES` environment variable or `LISTEN_FD_$n`
for unnamed file descriptiors where `n` is the id of the
descriptor starting at 3 (LISTEN_FD_3).

See sd_listen_fds(3)
v5.6.0
2024-12-11 17:29:03 +01:00
Henrique Dias
51b101d3d8 feat: rules behavior v5.5.0 2024-12-07 12:07:12 +01:00
Henrique Dias
ca7f3374d5 chore: update dependencies v5.4.4 2024-11-28 16:59:04 +01:00
Henrique Dias
64bbdc7b15 fix: error if rule has no regex or path 2024-11-28 16:57:10 +01:00
Steven Vandevelde
d418bd2661 fix: Pass ExposedHeaders to cors.New v5.4.3 2024-11-19 17:52:14 +01:00
Henrique Dias
d500716f29 fix: spoofing of X-Forwarded-For v5.4.2 2024-10-21 08:15:19 +02:00
Henrique Dias
8c49af0b68 fix: environment parsing for username v5.4.1 2024-10-20 09:09:05 +02:00
Henrique Dias
a5777e18ee
chore: update dependencies v5.4.0 2024-10-12 14:41:05 +02:00
Henrique Dias
49a6e935c3
docs(readme): make fail2ban config part of the examples 2024-10-12 14:40:29 +02:00
炯轩
a698e31cb4 chore: removed the the login attempt log commented line to makes the code cleaner and more focused 2024-10-12 14:38:42 +02:00
Jiongxuan Zhang
74b514c877 feat(authentication): enhance login failure logging and reduce log volume
- Added logging for invalid username attempts to provide more detailed failure reasons.
- Removed "login attempt" log entries to reduce log volume and focus on final verification results.
- Retained logging for invalid password and successful user authorization for clarity.
2024-10-12 14:38:42 +02:00
Jiongxuan Zhang
ca0bdb1cfa docs: add Fail2Ban configuration guide to README
- Added a section in README.md explaining how to configure Fail2Ban for WebDAV security.
- Included examples for filter and jail configuration.
- Provided instructions on setting up and testing Fail2Ban to block IPs after failed login attempts.
2024-10-12 14:38:42 +02:00
Jiongxuan Zhang
a056e1ba18 feat(authentication): improve IP logging by extracting real client IP from X-Forwarded-For header
- Added getRealRemoteIP function to retrieve the real client IP address when behind a reverse proxy.
- Updated authentication logging to use the extracted IP instead of r.RemoteAddr.
- Ensured compatibility for both proxy and non-proxy setups, falling back to r.RemoteAddr when X-Forwarded-For is not present.
2024-10-12 14:38:42 +02:00
Keith Gaughan
189af88bc8
chore: omit debug information release builds (#185) 2024-09-08 21:34:26 +02:00
Henrique Dias
4e87e6a613
chore: disable CGO (#184) v5.3.0 2024-08-25 15:06:46 +02:00
Henrique Dias
63449f1636
fix: check permissions at copy/move source and destination (#181) v5.2.0 2024-08-21 18:15:32 +02:00
Henrique Dias
4ad26dad35 ci: use go 1.23 2024-08-19 19:32:46 +02:00
Henrique Dias
623bbc9a70 chore: update dependencies 2024-08-19 19:32:46 +02:00
Henrique Dias
feeb33d249 docs: add note about noSniff v5.1.0 2024-08-01 21:53:58 +02:00
Henrique Dias
d3bee98000 feat: allow disabling password check for delegated authentication 2024-08-01 21:53:58 +02:00
Henrique Dias
373b2ec931
docs: fix nginx configuration
Closes #132
2024-08-01 10:39:21 +02:00
Henrique Dias
000f404f7a
docs: remove dev version note v5.0.0 2024-07-31 10:07:23 +01:00
Henrique Dias
e4a8622c1e
docs: remove outdated SECURITY.md 2024-07-31 10:07:01 +01:00
Henrique Dias
b5a3d07f5c feat!: fine-grained permissions 2024-07-31 11:06:34 +02:00
Henrique Dias
f4de82cfd1 feat: add test for server listing characters 2024-07-30 15:01:17 +02:00
Henrique Dias
ebcf500d5e
docs: cleanup readme 2024-07-29 09:13:46 +01:00
Henrique Dias
d7faa1f887 feat!: further log customizations 2024-07-29 10:11:02 +02:00
Henrique Dias
d5e5052f63 feat!: rename 'scope' to 'directory'
Directory makes it more clear of what it is. In addition, this will make it easier when
allowing for multiple directories in the future, since we can just name it 'directories', which is more clear than 'scopes'.
2024-07-29 10:11:02 +02:00
Henrique Dias
a255fb51e2 feat!: remove Auth option 2024-07-29 10:11:02 +02:00
Henrique Dias
ed23ca1820 feat!: change default port and scope
BREAKING CHANGE: the default port is no longer random, but 6065. The default scope is now the current directory instead of the root directory.
2024-07-29 10:11:02 +02:00
Henrique Dias
e7e9c3176d feat!: simplified rule with regex instead of boolean
BREAKING CHANGE: the "regex" field in the rule is now a regular expression instead of a boolean.
2024-07-29 10:11:02 +02:00
Henrique Dias
d3732322bc chore: bump version to v5 2024-07-29 10:10:19 +02:00
Henrique Dias
f708664906
feat: permissions, auth, rules basic tests 2024-07-26 17:18:46 +02:00
Henrique Dias
814462bed1
fix: environment variable parsing
This is more of a workaround than the correct solution. It only fixes top-level ENV variables parsing.
v4.3.3
2024-07-25 22:46:34 +02:00
Henrique Dias
f6a0707fe6 refactor: shorten response writer code v4.3.2 2024-07-22 22:28:56 +02:00
Henrique Dias
947b163ea7
fix: rules parsing 2024-07-22 22:25:50 +02:00