Vsevolod Stakhov
fa45782ada
[Minor] Fix invocation
pirms 2 mēnešiem
Vsevolod Stakhov
9b78be4f03
[Feature] Support reply in message pack format
Rspamd currently sends reply in JSON format. However, message pack seems to
be a better choice for a compatible client. It is faster and does not need
escaping or even UTF8 validation. This is a surface for further updates.
pirms 2 mēnešiem
Vsevolod Stakhov
75327b3889
[Project] Convert the remaining
pirms 2 mēnešiem
Vsevolod Stakhov
8238dc0a23
[Project] Start optimization of userdata hashing
pirms 2 mēnešiem
Vsevolod Stakhov
0277935f57
[Minor] Remove stupid threshold for saving symbol value
pirms 5 mēnešiem
Vsevolod Stakhov
b6eeff716b
[Minor] Fix format string
pirms 6 mēnešiem
Vsevolod Stakhov
1e02b32deb
[Rework] Use a more sane data structure and refactor
pirms 6 mēnešiem
Vsevolod Stakhov
bb516b454f
[Rework] More abstractions to hide C++ internals
pirms 9 mēnešiem
Vsevolod Stakhov
81d9b6e8f4
[Rework] Finish utils rework
pirms 9 mēnešiem
Vsevolod Stakhov
537a7180a0
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
pirms 10 mēnešiem
Vsevolod Stakhov
a18c2f7c4b
[Minor] Plug memory leak for sigaltstack
pirms 1 gada
Vsevolod Stakhov
96b94707c1
[Rework] Make http normalize path function a generic function
pirms 1 gada
Vsevolod Stakhov
d75ed3ac14
[Fix] Another fix for the enable password
pirms 1 gada
Vsevolod Stakhov
40cc8b670f
[Fix] Try to fix the case where password == enable_password
Issue: #4306
pirms 1 gada
Vsevolod Stakhov
e540a3db85
[Minor] Declare variable where it is used
pirms 1 gada
Vsevolod Stakhov
bfd6f0dba6
[Minor] Add utility function for task timeouts
pirms 1 gada
Vsevolod Stakhov
ca21e823e5
[Fix] Try to fix the mess with read only flag
Issue: #4219
pirms 1 gada
Vsevolod Stakhov
5e4de6c3fe
[Minor] Return 401 error code on `Unauthorized` error
Issue: #4218
pirms 1 gada
Vsevolod Stakhov
57c1030d1f
[Minor] Try to fix passwords case in the controller
Issue: #4186
pirms 2 gadiem
Vsevolod Stakhov
c020213cb5
[Minor] Replace some of macro uses
pirms 2 gadiem
Vsevolod Stakhov
29c1bc04e6
[Minor] Do not add stats for invalid requests
pirms 2 gadiem
Vsevolod Stakhov
8bd5500b3f
[Minor] Add average scan time metric
Issue: #4096
pirms 2 gadiem
Vsevolod Stakhov
34d47efef8
[Minor] Fix printing
pirms 2 gadiem
Vsevolod Stakhov
fc9cac29db
[Minor] Move common stuff to a function
pirms 2 gadiem
Vsevolod Stakhov
aabe0bf565
[Feature] Output average scan time in /stat endpoint
pirms 2 gadiem
Vsevolod Stakhov
9c5ecc6e60
[Minor] Always report actions count
pirms 2 gadiem
Vsevolod Stakhov
e932a896eb
[Minor] Align rspamd_stat structure
pirms 2 gadiem
Josh Soref
2b8e6958f4
Spelling (#4086)
[Rework] Massive spelling fix from @jsoref
pirms 2 gadiem
Vsevolod Stakhov
cf071c74aa
[Minor] Fix some more issues
Found by: coverity scan
pirms 2 gadiem
Vsevolod Stakhov
cd50e7bd57
[Minor] Fix some more issues
Found by: coverity scan
pirms 2 gadiem
Vsevolod Stakhov
4041c2d640
[Minor] Plug some leaks on error paths
Found by: coverity scan
pirms 2 gadiem
Vsevolod Stakhov
aa88f56c34
[Minor] Cleanup metrics output
pirms 2 gadiem
Peter Fern
b6f2a0a6ac
[Fix] Namespace and add metadata for OpenMetrics, fix interleaving
pirms 2 gadiem
Vsevolod Stakhov
447b26b375
[Minor] Slightly improve health checks
pirms 2 gadiem
Manuel Rüger
fa066d9d03
src/controller.c: Replace formatter
Otherwise the endpoint will output:
pools_freed 53d
instead of
pools_freed 53
pirms 2 gadiem
Manuel Rüger
32a6adb5bf
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.
pirms 3 gadiem
Vsevolod Stakhov
1cf0d5687b
[Fix] Rework metrics handling
Issue: #3754
pirms 3 gadiem
Manuel Rüger
5a355fb7f5
Implement an endpoint for OpenMetrics
Now /metrics provides an endpoint that is openmetrics compatible.
pirms 3 gadiem
Vsevolod Stakhov
10bb08dd2d
[Minor] Various fixes for display link detection
pirms 3 gadiem
Vsevolod Stakhov
f84b86d901
[Rework] Track maps origins
pirms 3 gadiem
moisseev
cff0a94678
[Minor] Extend /stat response
pirms 3 gadiem
Vsevolod Stakhov
797d8332a7
[Minor] Check message field before dereferencing
pirms 3 gadiem
Vsevolod Stakhov
1acd5507db
[Minor] Allow empty body in the controller
pirms 3 gadiem
Vsevolod Stakhov
d6fc2656e2
[Minor] Log source IP
pirms 4 gadiem
Vsevolod Stakhov
74e8f0076b
[Minor] Workaround for \0 character (poor API choice)
pirms 4 gadiem
Vsevolod Stakhov
40e941010d
[Feature] Controller: Allow to pass query arguments to the lua webui plugins
pirms 4 gadiem
Vsevolod Stakhov
6b471b2c54
[Minor] Prevent controller results from being cached
Issue: #3330
pirms 4 gadiem
Christian Göttsche
d6da3282ea
[Minor] Enable missing_noreturn compiler warning
pirms 4 gadiem
Vsevolod Stakhov
b8a099632f
[Feature] Add multiple base32 alphabets for decoding
pirms 4 gadiem
Vsevolod Stakhov
41e28d1148
[Rework] Further project structure reorganisation
pirms 4 gadiem