]> source.dussan.org Git - rspamd.git/log
rspamd.git
2 years agoFix silly mistake
Jason Stephenson [Fri, 22 Jul 2022 13:35:24 +0000 (14:35 +0100)]
Fix silly mistake

2 years agoluacheck fixes
Jason Stephenson [Fri, 22 Jul 2022 13:29:08 +0000 (14:29 +0100)]
luacheck fixes

2 years agoAdd support for --split
Jason Stephenson [Fri, 22 Jul 2022 10:08:30 +0000 (11:08 +0100)]
Add support for --split

2 years agoRefactor before adding support to extract option
Jason Stephenson [Thu, 21 Jul 2022 11:20:42 +0000 (12:20 +0100)]
Refactor before adding support to extract option

2 years agoImplement writing to directory
Jason Stephenson [Thu, 21 Jul 2022 10:57:57 +0000 (11:57 +0100)]
Implement writing to directory

2 years ago[Minor] Return 401 error code on `Unauthorized` error
Vsevolod Stakhov [Wed, 20 Jul 2022 20:46:51 +0000 (21:46 +0100)]
[Minor] Return 401 error code on `Unauthorized` error

Issue: #4218

2 years ago[Minor] Address svector destructor issue
Vsevolod Stakhov [Tue, 19 Jul 2022 19:18:40 +0000 (20:18 +0100)]
[Minor] Address svector destructor issue

2 years ago[Minor] Check version header that is absent sometimes
Vsevolod Stakhov [Mon, 18 Jul 2022 16:43:31 +0000 (17:43 +0100)]
[Minor] Check version header that is absent sometimes

2 years ago[Minor] Add is_avalanching type hint
Vsevolod Stakhov [Mon, 18 Jul 2022 16:38:52 +0000 (17:38 +0100)]
[Minor] Add is_avalanching type hint

2 years ago[Minor] Add a workaround for old clang
Vsevolod Stakhov [Mon, 18 Jul 2022 16:32:16 +0000 (17:32 +0100)]
[Minor] Add a workaround for old clang

2 years ago[Minor] Remove noexcept qualifier as it interferes with ankerl::unordered_dense
Vsevolod Stakhov [Mon, 18 Jul 2022 08:28:47 +0000 (09:28 +0100)]
[Minor] Remove noexcept qualifier as it interferes with ankerl::unordered_dense

2 years ago[Minor] Fix hash usage after rework to address pointer stability issue
Vsevolod Stakhov [Mon, 18 Jul 2022 08:19:26 +0000 (09:19 +0100)]
[Minor] Fix hash usage after rework to address pointer stability issue

2 years ago[Rework] Use hash map for id->symbol mappings
Vsevolod Stakhov [Sun, 17 Jul 2022 19:13:59 +0000 (20:13 +0100)]
[Rework] Use hash map for id->symbol mappings

2 years ago[Minor] Simplify id_list by using of the small vector
Vsevolod Stakhov [Sun, 17 Jul 2022 17:16:05 +0000 (18:16 +0100)]
[Minor] Simplify id_list by using of the small vector

2 years ago[Minor] Follow-up for static disabling of the symbols
Vsevolod Stakhov [Sun, 17 Jul 2022 16:57:55 +0000 (17:57 +0100)]
[Minor] Follow-up for static disabling of the symbols

2 years ago[Feature] Add ability to statically maintain disabled/enabled patterns
Vsevolod Stakhov [Sun, 17 Jul 2022 15:58:03 +0000 (16:58 +0100)]
[Feature] Add ability to statically maintain disabled/enabled patterns

2 years ago[Rework] Use another version of hash table from the same author
Vsevolod Stakhov [Sun, 17 Jul 2022 15:43:47 +0000 (16:43 +0100)]
[Rework] Use another version of hash table from the same author

2 years ago[Test] Check the decoded length when doing base32 fuzz test
Vsevolod Stakhov [Sat, 16 Jul 2022 22:50:13 +0000 (23:50 +0100)]
[Test] Check the decoded length when doing base32 fuzz test

2 years agoMerge pull request #4216 from JasonStephenson/fix_empty_objects_are_arrays
Vsevolod Stakhov [Fri, 15 Jul 2022 21:28:20 +0000 (22:28 +0100)]
Merge pull request #4216 from JasonStephenson/fix_empty_objects_are_arrays

[Fix] Empty envelopes should not be emitted as arrays, drop from schema instead

2 years ago[Minor] Try to fix unpadded base32 decoding
Vsevolod Stakhov [Fri, 15 Jul 2022 21:26:54 +0000 (22:26 +0100)]
[Minor] Try to fix unpadded base32 decoding

2 years agoFix missing require statement for ucl.null 4216/head
Jason Stephenson [Fri, 15 Jul 2022 20:58:23 +0000 (21:58 +0100)]
Fix missing require statement for ucl.null

2 years agoExplicitly emit null instead of dropping from output
Jason Stephenson [Fri, 15 Jul 2022 20:49:46 +0000 (21:49 +0100)]
Explicitly emit null instead of dropping from output

2 years ago[Fix] Empty envelopes should not be emitted as arrays (json+messagepack) when populat...
Jason Stephenson [Fri, 15 Jul 2022 15:10:45 +0000 (16:10 +0100)]
[Fix] Empty envelopes should not be emitted as arrays (json+messagepack) when populated envelopes are objects. This greatly complicates decoding in strictly typed languages.

2 years agoMerge pull request #4214 from fatalbanana/rspamc_messages
Vsevolod Stakhov [Fri, 15 Jul 2022 11:47:31 +0000 (12:47 +0100)]
Merge pull request #4214 from fatalbanana/rspamc_messages

[Minor] rspamc: fix crash on non-string element in `messages`

2 years ago[Minor] rspamc: fix crash on non-string element in `messages` 4214/head
Andrew Lewis [Fri, 15 Jul 2022 11:26:10 +0000 (13:26 +0200)]
[Minor] rspamc: fix crash on non-string element in `messages`

2 years ago[Fix] Fix reading of the cached maps
Vsevolod Stakhov [Sun, 10 Jul 2022 09:42:55 +0000 (10:42 +0100)]
[Fix] Fix reading of the cached maps

Issue: #4213

2 years ago[Minor] Fix format string
Vsevolod Stakhov [Sat, 9 Jul 2022 19:54:35 +0000 (20:54 +0100)]
[Minor] Fix format string

2 years ago[Test] Add unit test for keepalive timeout parsing
Vsevolod Stakhov [Sat, 9 Jul 2022 19:45:19 +0000 (20:45 +0100)]
[Test] Add unit test for keepalive timeout parsing

2 years ago[Fix] Fix several issues with the HTTP keepalive parsing
Vsevolod Stakhov [Sat, 9 Jul 2022 19:44:57 +0000 (20:44 +0100)]
[Fix] Fix several issues with the HTTP keepalive parsing

2 years ago[Minor] Fix several issues in the parsing of the timeout in Keep-Alive header
Vsevolod Stakhov [Sat, 9 Jul 2022 19:39:33 +0000 (20:39 +0100)]
[Minor] Fix several issues in the parsing of the timeout in Keep-Alive header

2 years ago[Minor] Eh, one more fix for the format string
Vsevolod Stakhov [Sat, 9 Jul 2022 19:24:14 +0000 (20:24 +0100)]
[Minor] Eh, one more fix for the format string

Noticed by: @citrin

2 years ago[Fix] Remove check for a score with no symbol being registered
Vsevolod Stakhov [Fri, 8 Jul 2022 21:08:32 +0000 (22:08 +0100)]
[Fix] Remove check for a score with no symbol being registered

This check is redundant and has proven to confuse users who want to disable some rules.
Indeed, if we are looking for a way to hint a user that the registered symbol `example`
does not match with the scored symbol `exmaple` (e.g. incorrect spelling), then this
error will be detected when we match symcache entries and the scores. The opposite check
is useless to prevent such an error. And since it is much harder to define a dangling score
with no real symbol, we can just ignore this possibility in general, since the FP for this check,
specifically when some rule got intentionally disabled but a score is not removed just annoys
users for no good reason.

2 years ago[Minor] Some more fixes towards hyperscan obsoletion reasoning
Vsevolod Stakhov [Fri, 8 Jul 2022 20:55:04 +0000 (21:55 +0100)]
[Minor] Some more fixes towards hyperscan obsoletion reasoning

2 years ago[Minor] Reduce log level
Vsevolod Stakhov [Thu, 7 Jul 2022 22:30:26 +0000 (23:30 +0100)]
[Minor] Reduce log level

2 years ago[Minor] Add some extra error reporting to hyperscan cache checks
Vsevolod Stakhov [Tue, 5 Jul 2022 19:30:24 +0000 (20:30 +0100)]
[Minor] Add some extra error reporting to hyperscan cache checks

2 years ago[Minor] Save list of children for normal symbols with dependent virtual symbols
Vsevolod Stakhov [Tue, 5 Jul 2022 19:08:22 +0000 (20:08 +0100)]
[Minor] Save list of children for normal symbols with dependent virtual symbols

2 years ago[Minor] Use upstream in the dkim signing tools
Vsevolod Stakhov [Tue, 5 Jul 2022 18:41:10 +0000 (19:41 +0100)]
[Minor] Use upstream in the dkim signing tools

2 years agoMerge pull request #4211 from ghtm2/master
Vsevolod Stakhov [Mon, 4 Jul 2022 20:54:39 +0000 (21:54 +0100)]
Merge pull request #4211 from ghtm2/master

[Minor] Update rspamd.spec to fix Fedora 36 build

2 years agoUse ld.bfd on Fedora 36 4211/head
ghtm2 [Sun, 3 Jul 2022 13:21:17 +0000 (15:21 +0200)]
Use ld.bfd on Fedora 36

Link to upstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=2043178

2 years ago[Minor] Use upstreams in aws_s3 plugin
Vsevolod Stakhov [Sun, 3 Jul 2022 12:04:56 +0000 (13:04 +0100)]
[Minor] Use upstreams in aws_s3 plugin

2 years ago[Feature] Add function to store upstreams for HTTP urls
Vsevolod Stakhov [Sun, 3 Jul 2022 11:58:45 +0000 (12:58 +0100)]
[Feature] Add function to store upstreams for HTTP urls

2 years ago[Rework] Pass upstream when sending TCP requests
Vsevolod Stakhov [Sat, 2 Jul 2022 13:53:24 +0000 (14:53 +0100)]
[Rework] Pass upstream when sending TCP requests

2 years ago[Minor] Initialise variable
Vsevolod Stakhov [Sat, 2 Jul 2022 13:35:53 +0000 (14:35 +0100)]
[Minor] Initialise variable

2 years ago[Feature] Accept upstream in lua_tcp
Vsevolod Stakhov [Sat, 2 Jul 2022 12:43:57 +0000 (13:43 +0100)]
[Feature] Accept upstream in lua_tcp

2 years ago[Minor] Set ok flag on success
Vsevolod Stakhov [Sat, 2 Jul 2022 12:40:31 +0000 (13:40 +0100)]
[Minor] Set ok flag on success

2 years ago[Minor] Check for NULL first for sanity
Vsevolod Stakhov [Sat, 2 Jul 2022 12:37:29 +0000 (13:37 +0100)]
[Minor] Check for NULL first for sanity

2 years ago[Minor] Use upstreams refcounts
Vsevolod Stakhov [Sat, 2 Jul 2022 12:35:22 +0000 (13:35 +0100)]
[Minor] Use upstreams refcounts

2 years ago[Feature] Allow lua_http module to accept upstreams
Vsevolod Stakhov [Sat, 2 Jul 2022 12:32:56 +0000 (13:32 +0100)]
[Feature] Allow lua_http module to accept upstreams

2 years ago[Feature] Check content for binary stuff before dumping it to Lua
Vsevolod Stakhov [Fri, 1 Jul 2022 20:31:15 +0000 (21:31 +0100)]
[Feature] Check content for binary stuff before dumping it to Lua

Issue: #4204

2 years ago[Minor] Inverse logic
Vsevolod Stakhov [Fri, 1 Jul 2022 20:31:01 +0000 (21:31 +0100)]
[Minor] Inverse logic

2 years ago[Minor] Implement binary string checks
Vsevolod Stakhov [Fri, 1 Jul 2022 20:14:52 +0000 (21:14 +0100)]
[Minor] Implement binary string checks

Issue: #4204

2 years ago[Minor] Set binary flag on binary texts
Vsevolod Stakhov [Fri, 1 Jul 2022 20:14:21 +0000 (21:14 +0100)]
[Minor] Set binary flag on binary texts

2 years ago[Test] Use fake record for testing
Vsevolod Stakhov [Fri, 1 Jul 2022 16:44:55 +0000 (17:44 +0100)]
[Test] Use fake record for testing

2 years ago[Test] Add a test to ensure that DKIM verifier ignores unknown tags
Vsevolod Stakhov [Fri, 1 Jul 2022 09:27:45 +0000 (10:27 +0100)]
[Test] Add a test to ensure that DKIM verifier ignores unknown tags

Obtained from: John Levine

2 years agoMerge pull request #4206 from ghtm2/master
Vsevolod Stakhov [Thu, 30 Jun 2022 19:58:32 +0000 (20:58 +0100)]
Merge pull request #4206 from ghtm2/master

Update rspamd.spec, delete old el6 files

2 years ago[Minor] Oops, my clang plugin tells me something that I have ignored
Vsevolod Stakhov [Wed, 29 Jun 2022 20:06:08 +0000 (21:06 +0100)]
[Minor] Oops, my clang plugin tells me something that I have ignored

2 years ago[Minor] Fix confusing with variable type and re-use
Vsevolod Stakhov [Wed, 29 Jun 2022 20:00:14 +0000 (21:00 +0100)]
[Minor] Fix confusing with variable type and re-use

2 years ago[Fix] Mempool: Fix alloc_array function to actually multiply nmembers by size
Vsevolod Stakhov [Wed, 29 Jun 2022 19:52:55 +0000 (20:52 +0100)]
[Fix] Mempool: Fix alloc_array function to actually multiply nmembers by size

Found by: @citrin

2 years agoMerge pull request #4209 from moisseev/webui
Vsevolod Stakhov [Wed, 29 Jun 2022 19:51:59 +0000 (20:51 +0100)]
Merge pull request #4209 from moisseev/webui

[WebUI] Tweak history table layout

2 years ago[Fix] Ignore all (I hope) unknown DKIM signature KV pairs
Vsevolod Stakhov [Wed, 29 Jun 2022 19:51:13 +0000 (20:51 +0100)]
[Fix] Ignore all (I hope) unknown DKIM signature KV pairs

2 years agoMerge pull request #4208 from citrin/upstream_revive_time
Vsevolod Stakhov [Wed, 29 Jun 2022 19:50:28 +0000 (20:50 +0100)]
Merge pull request #4208 from citrin/upstream_revive_time

[Fix] Upstreams: Don't ignore revive_time config option

2 years ago[WebUI] Tweak history table layout 4209/head
moisseev [Wed, 29 Jun 2022 14:52:57 +0000 (17:52 +0300)]
[WebUI] Tweak history table layout

2 years ago[Fix] Upstreams: Don't ignore revive_time config option 4208/head
Anton Yuzhaninov [Wed, 29 Jun 2022 14:10:33 +0000 (15:10 +0100)]
[Fix] Upstreams: Don't ignore revive_time config option

2 years agoRevert "[Minor] C++20 is here"
Vsevolod Stakhov [Tue, 28 Jun 2022 20:14:17 +0000 (21:14 +0100)]
Revert "[Minor] C++20 is here"

This change is not so useful to break compatibility with Clang 7. Maybe later...

This reverts commit 48ce799a7a5cf1bde8440e3e75a677ee3e467c9d.

2 years ago[Fix] Dkim: Ignore unknown DKIM kv pairs as stated in RFC
Vsevolod Stakhov [Tue, 28 Jun 2022 19:20:21 +0000 (20:20 +0100)]
[Fix] Dkim: Ignore unknown DKIM kv pairs as stated in RFC

2 years ago[Fix] Symcache: Do not use C style comparators in C++ sorts
Vsevolod Stakhov [Tue, 28 Jun 2022 18:57:46 +0000 (19:57 +0100)]
[Fix] Symcache: Do not use C style comparators in C++ sorts

2 years agoUpdate rspamd.spec 4206/head
ghtm2 [Tue, 28 Jun 2022 12:19:36 +0000 (14:19 +0200)]
Update rspamd.spec

2 years agoRename rspamd.logrotate.systemd to rspamd.logrotate
ghtm2 [Tue, 28 Jun 2022 12:18:50 +0000 (14:18 +0200)]
Rename rspamd.logrotate.systemd to rspamd.logrotate

2 years agoDelete rspamd.logrotate
ghtm2 [Tue, 28 Jun 2022 12:18:31 +0000 (14:18 +0200)]
Delete rspamd.logrotate

2 years agoDelete rspamd.init
ghtm2 [Tue, 28 Jun 2022 12:18:24 +0000 (14:18 +0200)]
Delete rspamd.init

2 years ago[Minor] Fix Redis prefixes
Vsevolod Stakhov [Mon, 27 Jun 2022 19:57:47 +0000 (20:57 +0100)]
[Minor] Fix Redis prefixes

2 years ago[CritFix] Neural: Fix keys regression after #3968
Vsevolod Stakhov [Mon, 27 Jun 2022 19:45:39 +0000 (20:45 +0100)]
[CritFix] Neural: Fix keys regression after #3968

2 years ago[Minor] Add a helper to serialize stats tokens to a messagepack request
Vsevolod Stakhov [Sun, 26 Jun 2022 13:18:03 +0000 (14:18 +0100)]
[Minor] Add a helper to serialize stats tokens to a messagepack request

2 years ago[Minor] Arc: Simplify code
Vsevolod Stakhov [Sat, 25 Jun 2022 13:31:19 +0000 (14:31 +0100)]
[Minor] Arc: Simplify code

2 years ago[Minor] Add some sanity stuff for signing to skip signing for passthrough results
Vsevolod Stakhov [Sat, 25 Jun 2022 11:45:28 +0000 (12:45 +0100)]
[Minor] Add some sanity stuff for signing to skip signing for passthrough results

2 years ago[Minor] Add `ignore_passthrough` flag to signing symbols
Vsevolod Stakhov [Fri, 24 Jun 2022 22:38:48 +0000 (23:38 +0100)]
[Minor] Add `ignore_passthrough` flag to signing symbols

Issue: #4202

2 years agoRevert "[Minor] Simplify code"
Vsevolod Stakhov [Fri, 24 Jun 2022 21:06:44 +0000 (22:06 +0100)]
Revert "[Minor] Simplify code"

It seems that safety guarantees as defined by standard apply merely to the values but not to the keys.
So revert to a more ugly approach unless there is a better way to do `try_emplace` with move only key.

This reverts commit 8bb63981133b479dcaf24b9d34d43993c1b732c8.

2 years ago[Minor] Simplify code
Vsevolod Stakhov [Fri, 24 Jun 2022 20:52:17 +0000 (21:52 +0100)]
[Minor] Simplify code

2 years ago[Minor] Grow small strings more quickly
Vsevolod Stakhov [Thu, 23 Jun 2022 20:57:19 +0000 (21:57 +0100)]
[Minor] Grow small strings more quickly

2 years ago[Minor] Move stuff
Vsevolod Stakhov [Tue, 21 Jun 2022 18:13:35 +0000 (19:13 +0100)]
[Minor] Move stuff

2 years ago[Minor] Add some sanity checks to the redis scripts
Vsevolod Stakhov [Mon, 20 Jun 2022 19:46:27 +0000 (20:46 +0100)]
[Minor] Add some sanity checks to the redis scripts

2 years ago[Minor] Give up about passing constexpr literal
Vsevolod Stakhov [Sun, 19 Jun 2022 17:28:19 +0000 (18:28 +0100)]
[Minor] Give up about passing constexpr literal

2 years ago[Minor] Another try to fix emphasis function
Vsevolod Stakhov [Sun, 19 Jun 2022 12:11:00 +0000 (13:11 +0100)]
[Minor] Another try to fix emphasis function

2 years ago[Fix] Use proper format string, sigh...
Vsevolod Stakhov [Sun, 19 Jun 2022 12:02:15 +0000 (13:02 +0100)]
[Fix] Use proper format string, sigh...

2 years ago[Minor] C++20 is here
Vsevolod Stakhov [Sun, 19 Jun 2022 12:01:10 +0000 (13:01 +0100)]
[Minor] C++20 is here

2 years ago[Minor] Add consteval for fmt wrapper
Vsevolod Stakhov [Sun, 19 Jun 2022 11:57:48 +0000 (12:57 +0100)]
[Minor] Add consteval for fmt wrapper

2 years ago[Minor] Refrain from using runtime format strings
Vsevolod Stakhov [Sun, 19 Jun 2022 11:48:45 +0000 (12:48 +0100)]
[Minor] Refrain from using runtime format strings

2 years ago[Minor] Remove deprecated stuff
Vsevolod Stakhov [Sun, 19 Jun 2022 11:48:31 +0000 (12:48 +0100)]
[Minor] Remove deprecated stuff

2 years ago[Rework] Switch minimum C++ standard version to C++20
Vsevolod Stakhov [Sun, 19 Jun 2022 11:24:09 +0000 (12:24 +0100)]
[Rework] Switch minimum C++ standard version to C++20

2 years ago[Project] Http_stat: Notice statfiles when creating runtime
Vsevolod Stakhov [Sat, 18 Jun 2022 13:50:43 +0000 (14:50 +0100)]
[Project] Http_stat: Notice statfiles when creating runtime

2 years ago[Minor] Pass statfile id when requesting for the backend runtime
Vsevolod Stakhov [Sat, 18 Jun 2022 13:35:55 +0000 (14:35 +0100)]
[Minor] Pass statfile id when requesting for the backend runtime

2 years ago[Minor] Remove unused function
Vsevolod Stakhov [Thu, 16 Jun 2022 12:40:47 +0000 (13:40 +0100)]
[Minor] Remove unused function

2 years ago[Minor] Fix table output
Vsevolod Stakhov [Wed, 15 Jun 2022 13:44:47 +0000 (14:44 +0100)]
[Minor] Fix table output

2 years ago[Minor] Add log tag to proxy scripts
Vsevolod Stakhov [Wed, 15 Jun 2022 13:14:22 +0000 (14:14 +0100)]
[Minor] Add log tag to proxy scripts

Issue: #4126

2 years ago[Minor] Use fixed floating point format
Vsevolod Stakhov [Tue, 14 Jun 2022 20:08:14 +0000 (21:08 +0100)]
[Minor] Use fixed floating point format

2 years ago[Minor] Try to add workaround for replxx usage with no history
Vsevolod Stakhov [Mon, 13 Jun 2022 22:41:22 +0000 (23:41 +0100)]
[Minor] Try to add workaround for replxx usage with no history

Issue: #4133

2 years ago[Project] Add experimental HTTP statistics backend
Vsevolod Stakhov [Sat, 11 Jun 2022 12:24:50 +0000 (13:24 +0100)]
[Project] Add experimental HTTP statistics backend

2 years ago[Minor] Simplify array_of using types deduction
Vsevolod Stakhov [Sat, 11 Jun 2022 11:24:23 +0000 (12:24 +0100)]
[Minor] Simplify array_of using types deduction

2 years ago[Minor] Use header only mode for fmt
Vsevolod Stakhov [Fri, 10 Jun 2022 20:45:04 +0000 (21:45 +0100)]
[Minor] Use header only mode for fmt

2 years ago[Minor] Some minor improvements
Vsevolod Stakhov [Fri, 10 Jun 2022 20:33:39 +0000 (21:33 +0100)]
[Minor] Some minor improvements