]> git.ipfire.org Git - thirdparty/rspamd.git/log
thirdparty/rspamd.git
4 years agocontroller.c: Implement ready/health endpoints 3788/head
Manuel Rüger [Tue, 8 Jun 2021 21:18:21 +0000 (23:18 +0200)] 
controller.c: Implement ready/health endpoints

These endpoints allow an orchestrator like kubernetes to verify the
status of rspamd (https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)

Current implementation is very minimal.

The health endpoint allows to verify rspamd internally. It could check
for internal configuration and ensure that rspamd itself is healthy
and available.
The ready endpoint signals that rspamd is ready to receive and process
traffic and thus ensures that configured external components are available.
The readiness check could for example test if configured redis servers or
at least one rspamd upstreams is available.

4 years agocfg_file.h: Fix typo/formatting
Manuel Rüger [Tue, 8 Jun 2021 21:30:10 +0000 (23:30 +0200)] 
cfg_file.h: Fix typo/formatting

4 years ago[Test] Add some html test functions
Vsevolod Stakhov [Tue, 8 Jun 2021 13:35:39 +0000 (14:35 +0100)] 
[Test] Add some html test functions

4 years ago[Minor] Html: Check for null before traversing
Vsevolod Stakhov [Tue, 8 Jun 2021 11:09:59 +0000 (12:09 +0100)] 
[Minor] Html: Check for null before traversing

4 years ago[Minor] Log pid file on daemonise
Vsevolod Stakhov [Tue, 8 Jun 2021 10:54:17 +0000 (11:54 +0100)] 
[Minor] Log pid file on daemonise

4 years ago[Test] Log stderr in robot
Vsevolod Stakhov [Tue, 8 Jun 2021 10:49:42 +0000 (11:49 +0100)] 
[Test] Log stderr in robot

4 years ago[Minor] Improve error logging
Vsevolod Stakhov [Tue, 8 Jun 2021 10:49:31 +0000 (11:49 +0100)] 
[Minor] Improve error logging

4 years ago[Rework] Html: Make parameters as a vector again
Vsevolod Stakhov [Mon, 7 Jun 2021 20:57:36 +0000 (21:57 +0100)] 
[Rework] Html: Make parameters as a vector again

4 years ago[Minor] Reduce timer calls when doing tokenisation
Vsevolod Stakhov [Mon, 7 Jun 2021 16:30:12 +0000 (17:30 +0100)] 
[Minor] Reduce timer calls when doing tokenisation

4 years ago[Rework] Html: Another steps to get rid of gnode
Vsevolod Stakhov [Mon, 7 Jun 2021 16:00:42 +0000 (17:00 +0100)] 
[Rework] Html: Another steps to get rid of gnode

4 years ago[Rework] Html: Add traverse function
Vsevolod Stakhov [Mon, 7 Jun 2021 14:13:55 +0000 (15:13 +0100)] 
[Rework] Html: Add traverse function

4 years ago[Minor] Add unreachable code macro
Vsevolod Stakhov [Mon, 7 Jun 2021 14:13:43 +0000 (15:13 +0100)] 
[Minor] Add unreachable code macro

4 years ago[Rework] Html: Start removing of GNode stuff
Vsevolod Stakhov [Mon, 7 Jun 2021 13:24:15 +0000 (14:24 +0100)] 
[Rework] Html: Start removing of GNode stuff

4 years agoMerge pull request #3785 from moisseev/webui
Vsevolod Stakhov [Sun, 6 Jun 2021 20:35:47 +0000 (21:35 +0100)] 
Merge pull request #3785 from moisseev/webui

[WebUI] Collapse navbar on small screens

4 years ago[Minor] Fix closing tags 3785/head
moisseev [Sat, 5 Jun 2021 14:24:22 +0000 (17:24 +0300)] 
[Minor] Fix closing tags

4 years ago[WebUI] Collapse navbar on small screens
moisseev [Sat, 5 Jun 2021 14:17:30 +0000 (17:17 +0300)] 
[WebUI] Collapse navbar on small screens

(width less than 1200px)

4 years agoMerge pull request #3784 from HeinleinSupport/multimap_debug_typo
Vsevolod Stakhov [Fri, 4 Jun 2021 16:45:27 +0000 (17:45 +0100)] 
Merge pull request #3784 from HeinleinSupport/multimap_debug_typo

[Minor] multimap - add match debug / fix typo

4 years ago[Minor] multimap - add match debug / fix typo 3784/head
Carsten Rosenberg [Fri, 4 Jun 2021 13:23:06 +0000 (15:23 +0200)] 
[Minor] multimap - add match debug / fix typo

4 years ago[Minor] Make more consistent function names
Vsevolod Stakhov [Thu, 3 Jun 2021 18:41:26 +0000 (19:41 +0100)] 
[Minor] Make more consistent function names

4 years ago[Minor] Fix format string for size_t
Vsevolod Stakhov [Wed, 2 Jun 2021 20:00:07 +0000 (21:00 +0100)] 
[Minor] Fix format string for size_t

4 years ago[Rework] Html: Fix Lua bindings
Vsevolod Stakhov [Wed, 2 Jun 2021 19:54:47 +0000 (20:54 +0100)] 
[Rework] Html: Fix Lua bindings

4 years ago[Rework] Html: Deal with the utf_content part
Vsevolod Stakhov [Wed, 2 Jun 2021 19:50:48 +0000 (20:50 +0100)] 
[Rework] Html: Deal with the utf_content part

4 years ago[Rework] Html: Add images processing logic
Vsevolod Stakhov [Tue, 1 Jun 2021 19:18:47 +0000 (20:18 +0100)] 
[Rework] Html: Add images processing logic

4 years ago[Rework] Html: Forgot to add the internal include
Vsevolod Stakhov [Tue, 1 Jun 2021 19:18:30 +0000 (20:18 +0100)] 
[Rework] Html: Forgot to add the internal include

4 years ago[Rework] Further work to make html content private
Vsevolod Stakhov [Mon, 31 May 2021 19:54:41 +0000 (20:54 +0100)] 
[Rework] Further work to make html content private

4 years ago[Rework] Html: Start rework of the html content structure
Vsevolod Stakhov [Mon, 31 May 2021 18:51:45 +0000 (19:51 +0100)] 
[Rework] Html: Start rework of the html content structure

4 years agoMerge pull request #3780 from a16bitsysop/ragel
Vsevolod Stakhov [Wed, 2 Jun 2021 17:58:21 +0000 (18:58 +0100)] 
Merge pull request #3780 from a16bitsysop/ragel

[Minor] FindRagel.cmake - remove cmake min version

4 years agoMerge pull request #3768 from fatalbanana/test_debug_clean
Vsevolod Stakhov [Tue, 1 Jun 2021 20:19:34 +0000 (21:19 +0100)] 
Merge pull request #3768 from fatalbanana/test_debug_clean

[Test] Fix Lua coverage etc

4 years ago[Test] Unmerge http / tcp tests 3768/head
Andrew Lewis [Mon, 24 May 2021 14:33:20 +0000 (16:33 +0200)] 
[Test] Unmerge http / tcp tests

4 years ago[Test] Fix segmentation fault check
Andrew Lewis [Tue, 1 Jun 2021 09:46:33 +0000 (11:46 +0200)] 
[Test] Fix segmentation fault check

4 years ago[Test] Fix coverage hopefully
Andrew Lewis [Tue, 1 Jun 2021 13:34:01 +0000 (15:34 +0200)] 
[Test] Fix coverage hopefully

4 years ago[Minor] FindRagel.cmake - remove cmake min version 3780/head
Duncan Bellamy [Mon, 31 May 2021 16:30:28 +0000 (17:30 +0100)] 
[Minor] FindRagel.cmake - remove cmake min version
As now causes warning and main CMakeLists.txt min version is greater

4 years agoMerge pull request #3769 from a16bitsysop/zstd-headers
Vsevolod Stakhov [Sun, 30 May 2021 15:15:38 +0000 (16:15 +0100)] 
Merge pull request #3769 from a16bitsysop/zstd-headers

[Minor] change headers for zstd and include path

4 years ago[Minor] change headers for zstd depending on bundled or system used 3769/head
Duncan Bellamy [Mon, 24 May 2021 13:17:34 +0000 (14:17 +0100)] 
[Minor] change headers for zstd depending on bundled or system used
follow on patch from #3764

4 years ago[Minor] Always use c++ linker now
Vsevolod Stakhov [Fri, 28 May 2021 10:52:49 +0000 (11:52 +0100)] 
[Minor] Always use c++ linker now

4 years ago[Minor] Lua_html: Restore compatible behaviour of get_extra method
Vsevolod Stakhov [Fri, 28 May 2021 10:43:31 +0000 (11:43 +0100)] 
[Minor] Lua_html: Restore compatible behaviour of get_extra method

4 years ago[Minor] Try to fix libicu linkage
Vsevolod Stakhov [Fri, 28 May 2021 10:16:03 +0000 (11:16 +0100)] 
[Minor] Try to fix libicu linkage

4 years ago[Minor] Another strlcpy fix
Vsevolod Stakhov [Fri, 28 May 2021 10:04:32 +0000 (11:04 +0100)] 
[Minor] Another strlcpy fix

4 years ago[Minor] Fix styles propagation
Vsevolod Stakhov [Fri, 28 May 2021 09:50:37 +0000 (10:50 +0100)] 
[Minor] Fix styles propagation

4 years ago[Minor] Fix strlcpy usage
Vsevolod Stakhov [Thu, 27 May 2021 16:57:02 +0000 (17:57 +0100)] 
[Minor] Fix strlcpy usage

4 years ago[Minor] Another try to fix clang plugin build
Vsevolod Stakhov [Thu, 27 May 2021 14:14:33 +0000 (15:14 +0100)] 
[Minor] Another try to fix clang plugin build

4 years ago[Minor] Fix clang plugin
Vsevolod Stakhov [Thu, 27 May 2021 14:08:17 +0000 (15:08 +0100)] 
[Minor] Fix clang plugin

4 years ago[Rework] Html: Rework lua bindings
Vsevolod Stakhov [Thu, 27 May 2021 14:05:01 +0000 (15:05 +0100)] 
[Rework] Html: Rework lua bindings

4 years ago[Rework] Html: Convert to variant
Vsevolod Stakhov [Wed, 26 May 2021 20:31:32 +0000 (21:31 +0100)] 
[Rework] Html: Convert to variant

4 years ago[Rework] Html: Final rework part for the html processing code
Vsevolod Stakhov [Wed, 26 May 2021 16:23:17 +0000 (17:23 +0100)] 
[Rework] Html: Final rework part for the html processing code

4 years ago[Rework] Html: Move blocks part
Vsevolod Stakhov [Wed, 26 May 2021 11:11:18 +0000 (12:11 +0100)] 
[Rework] Html: Move blocks part

4 years ago[Rework] Html: Move images processing stuff
Vsevolod Stakhov [Tue, 25 May 2021 14:33:37 +0000 (15:33 +0100)] 
[Rework] Html: Move images processing stuff

4 years ago[Rework] Html: Further html urls rework
Vsevolod Stakhov [Tue, 25 May 2021 11:15:30 +0000 (12:15 +0100)] 
[Rework] Html: Further html urls rework

4 years ago[Rework] Html: Start refactoring of the html tags handling
Vsevolod Stakhov [Tue, 25 May 2021 09:42:57 +0000 (10:42 +0100)] 
[Rework] Html: Start refactoring of the html tags handling

4 years ago[Minor] Add another helper for mempool typed allocations
Vsevolod Stakhov [Tue, 25 May 2021 09:42:21 +0000 (10:42 +0100)] 
[Minor] Add another helper for mempool typed allocations

4 years ago[Rework] Move HTML url functions and rework them
Vsevolod Stakhov [Sat, 22 May 2021 12:24:05 +0000 (13:24 +0100)] 
[Rework] Move HTML url functions and rework them

4 years agoMerge pull request #3764 from a16bitsysop/zstd
Vsevolod Stakhov [Mon, 24 May 2021 10:33:03 +0000 (11:33 +0100)] 
Merge pull request #3764 from a16bitsysop/zstd

[Feature] add SYSTEM_ZSTD cmake option

4 years agoMerge pull request #3767 from moisseev/patch-1
Vsevolod Stakhov [Mon, 24 May 2021 10:32:31 +0000 (11:32 +0100)] 
Merge pull request #3767 from moisseev/patch-1

[Minor] Add "application/rar" MIME type

4 years ago[Minor] Add "application/rar" MIME type 3767/head
Alexander Moisseev [Mon, 24 May 2021 09:24:15 +0000 (12:24 +0300)] 
[Minor] Add "application/rar" MIME type

4 years agoMerge pull request #3763 from citrin/rules
Vsevolod Stakhov [Sun, 23 May 2021 20:49:24 +0000 (21:49 +0100)] 
Merge pull request #3763 from citrin/rules

Minor updates to X-Mailer regexps

4 years ago[Feature] add SYSTEM_ZSTD cmake option 3764/head
Duncan Bellamy [Sun, 23 May 2021 11:57:58 +0000 (12:57 +0100)] 
[Feature] add SYSTEM_ZSTD cmake option
To use the system zstd instead on the bundled version

4 years ago[Rules] Extend OLD_X_MAILER 3763/head
Anton Yuzhaninov [Sat, 22 May 2021 15:36:45 +0000 (16:36 +0100)] 
[Rules] Extend OLD_X_MAILER

Add more old iPhone/iPad Mail versions to the regexp.

4 years ago[Rules] Extend FORGED_X_MAILER
Anton Yuzhaninov [Sat, 22 May 2021 14:13:08 +0000 (15:13 +0100)] 
[Rules] Extend FORGED_X_MAILER

Match in FORGED_X_MAILER fake iPhone Mail header with a random string in
place of iOS build number, e. g. iPhone Mail (WKN0M)

4 years ago[Minor] Const-ify trim function as it does not change anything in fact
Vsevolod Stakhov [Sat, 22 May 2021 12:23:13 +0000 (13:23 +0100)] 
[Minor] Const-ify trim function as it does not change anything in fact

4 years ago[Minor] Remove conditional msg_ macro from util.c
Vsevolod Stakhov [Fri, 21 May 2021 15:32:10 +0000 (16:32 +0100)] 
[Minor] Remove conditional msg_ macro from util.c

4 years ago[Rework] Allow C code to be compiled with C++ compiler
Vsevolod Stakhov [Fri, 21 May 2021 15:28:55 +0000 (16:28 +0100)] 
[Rework] Allow C code to be compiled with C++ compiler

4 years ago[Minor] Css: Allow to convert css color to uint32_t
Vsevolod Stakhov [Fri, 21 May 2021 15:28:26 +0000 (16:28 +0100)] 
[Minor] Css: Allow to convert css color to uint32_t

4 years ago[Minor] Allow typed mempool alloc
Vsevolod Stakhov [Fri, 21 May 2021 15:28:08 +0000 (16:28 +0100)] 
[Minor] Allow typed mempool alloc

4 years ago[Minor] Add -m64 option
Vsevolod Stakhov [Fri, 21 May 2021 13:21:55 +0000 (14:21 +0100)] 
[Minor] Add -m64 option

4 years ago[Rework] Move and adopt entities handling logic
Vsevolod Stakhov [Fri, 21 May 2021 08:44:16 +0000 (09:44 +0100)] 
[Rework] Move and adopt entities handling logic

4 years ago[Rework] Add tags definitions
Vsevolod Stakhov [Fri, 21 May 2021 08:18:47 +0000 (09:18 +0100)] 
[Rework] Add tags definitions

4 years ago[Rework] Move entities/tags handling
Vsevolod Stakhov [Fri, 21 May 2021 08:18:07 +0000 (09:18 +0100)] 
[Rework] Move entities/tags handling

4 years ago[Minor] Move html code to a separate subdir (no functional changes)
Vsevolod Stakhov [Thu, 20 May 2021 09:46:57 +0000 (10:46 +0100)] 
[Minor] Move html code to a separate subdir (no functional changes)

4 years ago[Fix] Fix http maps with no or invalid expires data
Vsevolod Stakhov [Wed, 19 May 2021 17:47:22 +0000 (18:47 +0100)] 
[Fix] Fix http maps with no or invalid expires data

4 years ago[Rules] Fix CTYPE_MIXED_BOGUS for text attachments
Vsevolod Stakhov [Wed, 19 May 2021 14:12:33 +0000 (15:12 +0100)] 
[Rules] Fix CTYPE_MIXED_BOGUS for text attachments

Issue: #3748

4 years ago[Minor] Allow utf8 identifiers in the selectors
Vsevolod Stakhov [Wed, 19 May 2021 14:10:21 +0000 (15:10 +0100)] 
[Minor] Allow utf8 identifiers in the selectors

4 years ago[Fix] Rework metrics handling
Vsevolod Stakhov [Tue, 18 May 2021 15:13:31 +0000 (16:13 +0100)] 
[Fix] Rework metrics handling

Issue: #3754

4 years agoMerge pull request #3754 from mrueg/openmetrics
Vsevolod Stakhov [Tue, 18 May 2021 14:55:28 +0000 (15:55 +0100)] 
Merge pull request #3754 from mrueg/openmetrics

[Feature] Implement an endpoint for OpenMetrics / Prometheus

4 years agoMerge pull request #3747 from fatalbanana/use_settings
Vsevolod Stakhov [Tue, 18 May 2021 12:19:16 +0000 (13:19 +0100)] 
Merge pull request #3747 from fatalbanana/use_settings

even further updates for tests

4 years ago[Minor] Fix buffer overflow due to libicu super safe macros
Vsevolod Stakhov [Tue, 18 May 2021 11:43:22 +0000 (12:43 +0100)] 
[Minor] Fix buffer overflow due to libicu super safe macros

4 years ago[Test] Merge test suites; use settings 3747/head
Andrew Lewis [Tue, 11 May 2021 11:50:29 +0000 (13:50 +0200)] 
[Test] Merge test suites; use settings

4 years ago[Minor] Fix build with older icu
Vsevolod Stakhov [Mon, 17 May 2021 20:42:38 +0000 (21:42 +0100)] 
[Minor] Fix build with older icu

4 years ago[Minor] Another try to fix the logic around 8bit charsets handling
Vsevolod Stakhov [Mon, 17 May 2021 20:20:22 +0000 (21:20 +0100)] 
[Minor] Another try to fix the logic around 8bit charsets handling

4 years ago[Minor] Fix non-utf inputs checking
Vsevolod Stakhov [Mon, 17 May 2021 20:13:53 +0000 (21:13 +0100)] 
[Minor] Fix non-utf inputs checking

4 years agoImplement an endpoint for OpenMetrics 3754/head
Manuel Rüger [Thu, 13 May 2021 23:37:00 +0000 (01:37 +0200)] 
Implement an endpoint for OpenMetrics

Now /metrics provides an endpoint that is openmetrics compatible.

4 years ago[Minor] Add missing include
Vsevolod Stakhov [Mon, 17 May 2021 15:39:23 +0000 (16:39 +0100)] 
[Minor] Add missing include

4 years ago[Rework] Use C++ version for unicode normalisation
Vsevolod Stakhov [Mon, 17 May 2021 15:34:35 +0000 (16:34 +0100)] 
[Rework] Use C++ version for unicode normalisation

4 years ago[Minor] Dmarc: Slightly refactor function
Vsevolod Stakhov [Mon, 17 May 2021 15:34:17 +0000 (16:34 +0100)] 
[Minor] Dmarc: Slightly refactor function

4 years ago[Minor] Always use UTF8 as the system encoding (for libicu)
Vsevolod Stakhov [Mon, 17 May 2021 15:33:51 +0000 (16:33 +0100)] 
[Minor] Always use UTF8 as the system encoding (for libicu)

4 years ago[Fix] Try to fix some broken code in DMARC reporting plugin
Vsevolod Stakhov [Sun, 16 May 2021 20:36:17 +0000 (21:36 +0100)] 
[Fix] Try to fix some broken code in DMARC reporting plugin

Issue: #2499

4 years ago[Minor] Remove legacy iconv stuff
Vsevolod Stakhov [Sat, 15 May 2021 20:22:37 +0000 (21:22 +0100)] 
[Minor] Remove legacy iconv stuff

4 years ago[Rework] Use C++ utf8 library with unit tests to trim whitespaces
Vsevolod Stakhov [Fri, 14 May 2021 19:58:28 +0000 (20:58 +0100)] 
[Rework] Use C++ utf8 library with unit tests to trim whitespaces

4 years ago[Minor] Strip visible parts of urls using utf rules
Vsevolod Stakhov [Fri, 14 May 2021 15:59:30 +0000 (16:59 +0100)] 
[Minor] Strip visible parts of urls using utf rules

4 years ago[Minor] Do not treat unnormalised urls as obscured
Vsevolod Stakhov [Fri, 14 May 2021 10:26:58 +0000 (11:26 +0100)] 
[Minor] Do not treat unnormalised urls as obscured

4 years ago[Minor] Fix bit operations logic
Vsevolod Stakhov [Thu, 13 May 2021 20:36:05 +0000 (21:36 +0100)] 
[Minor] Fix bit operations logic

4 years ago[Minor] One more fix in the ZW spaces urls processing logic
Vsevolod Stakhov [Thu, 13 May 2021 20:23:18 +0000 (21:23 +0100)] 
[Minor] One more fix in the ZW spaces urls processing logic

4 years ago[Minor] Fix userinfo encoding
Vsevolod Stakhov [Thu, 13 May 2021 14:05:21 +0000 (15:05 +0100)] 
[Minor] Fix userinfo encoding

4 years ago[Feature] Allow to log severity level explicitly
Vsevolod Stakhov [Thu, 13 May 2021 13:58:11 +0000 (14:58 +0100)] 
[Feature] Allow to log severity level explicitly

4 years ago[Minor] Add some logging
Vsevolod Stakhov [Thu, 13 May 2021 12:59:09 +0000 (13:59 +0100)] 
[Minor] Add some logging

4 years ago[Minor] Backport some changes from libev
Vsevolod Stakhov [Thu, 13 May 2021 09:55:57 +0000 (10:55 +0100)] 
[Minor] Backport some changes from libev

4 years ago[Fix] Fix fuzzy retransmits
Vsevolod Stakhov [Wed, 12 May 2021 20:42:24 +0000 (21:42 +0100)] 
[Fix] Fix fuzzy retransmits

4 years ago[Feature] Allow to specify different timeouts/retransmits for fuzzy rules
Vsevolod Stakhov [Wed, 12 May 2021 19:15:19 +0000 (20:15 +0100)] 
[Feature] Allow to specify different timeouts/retransmits for fuzzy rules

4 years ago[Feature] Add race condition protection against hs_helper restarts
Vsevolod Stakhov [Wed, 12 May 2021 16:42:55 +0000 (17:42 +0100)] 
[Feature] Add race condition protection against hs_helper restarts

4 years ago[Minor] Fix multiple @ at the beginnig
Vsevolod Stakhov [Wed, 12 May 2021 16:16:36 +0000 (17:16 +0100)] 
[Minor] Fix multiple @ at the beginnig

4 years ago[Minor] Add loop break
Vsevolod Stakhov [Wed, 12 May 2021 13:54:24 +0000 (14:54 +0100)] 
[Minor] Add loop break