sebres
a57643404c
mytime.seconds2str: small amend with speed-up, code simplification and few tests
3 years ago
sebres
80805cabfc
Merge branch '0.11'
3 years ago
sebres
4fe4ac8dde
amend to merge: replace timedelta string representation with new function seconds2str
3 years ago
sebres
0b3ad780fe
Merge branch '0.10' into 0.11
3 years ago
sebres
ebf5784b8c
Merge branch 'fix-gh-2882' into 0.10
...
closes gh-2882
3 years ago
sebres
3b02098817
several backends optimizations (in file and journal filters):
...
- don't need to wait if we still had log-entries from last iteration (which got interrupted for servicing)
- rewritten update log/journal position, it is more stable and faster now (fewer DB access and surely up-to-date at end)
3 years ago
sebres
96661f25ab
filtersystemd.py: fixes wrong time point of "in operation" mode
...
todo: need more tests to cover any step of switch to inOperationMode (all branches)
3 years ago
sebres
7678f59827
better format of time delta (using seconds2str); increase stability for systemd test-cases
3 years ago
sebres
4b54a07d71
Revert "`action.d/firewallcmd-*.conf` (multiport only): fixed port range selector, replacing `:` with `-`;"
...
This reverts the incompatibility #3047 introduced by commit a038fd5dfe
(#2821 ).
3 years ago
Sergey G. Brester
e74baae666
Merge pull request #3135 from sylvestre/patch-2
...
Add the Debian path to roundcube error logs
3 years ago
Sergey G. Brester
cb042dda7d
Merge pull request #3133 from sylvestre/master
...
Fix typo found by lintian (Debian static analyzer)
3 years ago
Sylvestre Ledru
3245b8018b
Add the Debian path to roundcube error logs
3 years ago
Sylvestre Ledru
1cd3118da3
Fix typo found by lintian (Debian static analyzer)
3 years ago
Sergey G. Brester
98c7dd04a4
Merge pull request #3037 from floppym/bug794931
...
tests: improve detection of readable systemd journal
3 years ago
Mike Gilbert
d91d949e95
tests: improve detection of readable systemd journal
...
Look for system.journal in journal sub-directory.
Add -readable to the find command.
Bug: https://bugs.gentoo.org/794931
3 years ago
Viktor Szépe
1e8ce20b32
Display ChangeLog as a Markdown document
3 years ago
Sergey G. Brester
8e3a26bdeb
Merge pull request #3117 from fail2ban/gh-3116
...
filter.d/lighttpd-auth.conf: adjust to the current source code, avoid catch-all's, etc
3 years ago
Sergey G. Brester
ba839af8ad
filter.d/lighttpd-auth.conf: adjusted to the current source code + avoiding catch-all's, etc (gh-3116)
3 years ago
Sergey G. Brester
f8f59dd31a
added test cases covering different messages adjusted to new log-format (gh-3116)
3 years ago
Sergey G. Brester
5ee482bc9a
Merge pull request #3053 from db48x/fix-grammar-of-timestamp-warnings
...
Improve grammar and readability of timestamp warnings
3 years ago
Sergey G. Brester
d086317cc8
Update filter.py
3 years ago
Sergey G. Brester
17eed32e03
Update filtertestcase.py
3 years ago
sebres
621d8cae17
restore backwards compatibility for date None
3 years ago
sebres
ec043cd202
simplifying logic and shortening messages (delta in minutes; removed clock synchronization, because it is rarely an issue on fail2ban side, e. g. for remote logs only, etc)
3 years ago
Daniel Brooks
d7afcde2e1
add a warning message for dates in the future
...
and a test that checks which message was output for which time deltas.
3 years ago
Daniel Brooks
1929e7a76b
include more specific information in the warning
3 years ago
Daniel Brooks
320a3dcdd5
remove old warnings from filtertestcase.py
...
assertLogged only checks that at least one listed message is found, so
it isn’t necessary to repeat them in the test.
3 years ago
Daniel Brooks
a98cc08b31
Updated the warning messages created when fail2ban sees unexpected timestamps
...
to improve their grammar and to remove jargon.
Partially fixes #2822
3 years ago
sebres
5093ff8956
Merge branch '0.11' into master
3 years ago
sebres
d6b884f3b7
amend to fix gh-3098: no option `--disable-2to3` anymore
3 years ago
sebres
5ac303df8a
fix gh-3098: build fails with error in fail2ban setup command: use_2to3 is invalid (setuptools 58+)
3 years ago
sebres
8d45deca86
Merge branch '0.10' into 0.11
3 years ago
sebres
974ba688d4
Merge branch 'patch-3098' into 0.10
3 years ago
Sergey G. Brester
7f22c4873a
remove 2to3 in setup (should be called outside before setup)
3 years ago
Sergey G. Brester
1414a44b8e
Update main.yml
...
CI: try to install dependencies via apt, add build test
3 years ago
sebres
ad1f9dc4d0
Merge branch '0.11'
3 years ago
sebres
64217fe018
Merge branch '0.10' into 0.11
3 years ago
sebres
c0f9348db5
Merge branch 'sebres/gh-3097--fix-unh-except' into 0.10;
...
closes #3097
3 years ago
sebres
d709ec8179
GH actions: use newest python version for 3.10 (3.10.0-rc.2)
3 years ago
sebres
ba282b794c
pyinotify: amend to 1e4a14fb25d88e32f3ca9c06fb1d6b8d3b4813ab: one fix more for sporadic runtime error "dictionary changed size during iteration" (watched files)
3 years ago
sebres
e323c148e1
backend systemd: fixes error "local variable 'line' referenced before assignment", introduced in 55d7d9e214f72bbe4f39a2d17aa004d80bfc7299;
...
don't update database too often (every 10 ticks or ~ 10 seconds in production);
closes gh-3097
3 years ago
sebres
1e4a14fb25
pyinotify: fixes sporadic runtime error "dictionary changed size during iteration" (if something outside changes the pending dict during _checkPending evaluation) - simply deserialize to a list for iteration, without any lock, because unneeded here due to small and mostly empty dictionary (logrotate, etc), not to mention that pending check is normally called once per minute;
...
don't call process file inside of server thread calling of addLogPath (always retard it as pending event);
ensure to wake-up as soon as possible to process pending events (e. g. if file gets added).
3 years ago
sebres
2f99d5accb
test coverage for unhandled exception in run of several filter (gh-3097)
3 years ago
Sergey G. Brester
cb667edf17
Merge pull request #3087 from alexporto2200/patch-3
...
README: added dependencies to setuptools or distutils (if installing from source)
3 years ago
Sergey G. Brester
ade79635b2
distutils/setuptools only required if installing from source
3 years ago
Alex Porto dos Santos
39fe0bdce6
Update Readme
...
Add python3-setuptools or python-setuptools for dependencies. On some distributions this doesn't come by default, it would be nice to let users know about this in the documentation.
3 years ago
sebres
10cd815525
merge 0.11 to 1.0 (GHSA-m985-3f3v-cwmm)
3 years ago
sebres
c03fe6682c
merge 0.10 to 0.11 (GHSA-m985-3f3v-cwmm)
3 years ago
sebres
e3f2fcfab4
merge point (GHSA-m985-3f3v-cwmm 0.9/0.10)
3 years ago
sebres
2ed414ed09
fixed possible RCE vulnerability, unset escape variable (default tilde) stops consider "~" char after new-line as composing escape sequence
...
closes GHSA-m985-3f3v-cwmm for 0.9
3 years ago