15342 Commits

Author SHA1 Message Date
Darren J Moffat
844d1795a2 TLS CRL Support Issue 5081 2023-07-06 10:36:39 +02:00
Rainer Gerhards
43f9ffe386
maintain ChangeLog 2023-07-04 12:15:45 +02:00
Rainer Gerhards
07f1eae40d
Merge pull request #5171 from Cropi/action.resumeintervalmax
action.resumeintervalmax: the parameter was not respected
2023-07-04 12:09:50 +02:00
Rainer Gerhards
c6c26cd3a4
maintain ChangeLog 2023-06-29 13:24:39 +02:00
Rainer Gerhards
5f8d4d62ad
Merge pull request #5166 from Cropi/zero-capabilities
Do not try to drop capabilities when we don't have any
2023-06-29 13:21:15 +02:00
Rainer Gerhards
678cfb5d59
maintain ChangeLog 2023-06-29 13:13:47 +02:00
Rainer Gerhards
2955f85395
Merge pull request #5169 from VultureProject/imhiredis-pre1-compat
IMHIREDIS::FIXED:: Restore compatiblity with hiredis < v1.0.0
2023-06-29 13:02:36 +02:00
alakatos
80e8a391bb action.resumeintervalmax: the parameter was not respected
Unfortunately, defining action.resumeintervalmax in the configration
did not have any effect at all. Instead, the default value was used,
which is 1800. This was caused by not having all the letters in
lower-case. Fixes #5132
2023-06-29 12:06:33 +02:00
frikilax
b194bf35cc IMHIREDIS::FIXED:: Restore compatiblity with hiredis < v1.0.0
RESP3 protocol wasn't implemented yet, some types weren't available (REDIS_REPLY_DOUBLE)
2023-06-28 14:28:32 +02:00
alakatos
030e047fd0 Do not try to drop capabilities when we don't have any
In case the process does not have any capabilities, e.g.
running as regular user then we do not have to force
capability dropping. The capng_have_capabilities() returns
none if that's the case. Fixes #5091
2023-06-23 16:08:39 +02:00
Rainer Gerhards
fa9ac842f7
maintain ChangeLog 2023-06-23 12:32:58 +02:00
Rainer Gerhards
14785ca5d5
Merge pull request #5164 from rgerhards/configure-libcapng
build system: more precise error message on too-old lib
2023-06-23 12:30:38 +02:00
Rainer Gerhards
2be6ad9ba2
Merge pull request #5165 from rgerhards/zookeeper-update
testbench: use newer zookeeper version in tests
2023-06-23 12:30:19 +02:00
Rainer Gerhards
102e492182
testbench: use newer zookeeper version in tests 2023-06-22 15:34:03 +02:00
Rainer Gerhards
8274bd868e
build system: more precise error message on too-old lib 2023-06-22 15:13:25 +02:00
Rainer Gerhards
7a8ce83c9f
prepare for next daily stable builds 2023-06-20 14:33:07 +02:00
Rainer Gerhards
9f32d85d43
prepare for scheduled stable release v8.2306.0 v8.2306.0 2023-06-19 13:14:24 +02:00
Rainer Gerhards
a29e469524 Merge branch 'master' into v8-stable 2023-06-19 12:58:19 +02:00
Rainer Gerhards
788aa79fd3
maintain ChangeLog 2023-06-19 12:52:35 +02:00
Rainer Gerhards
7db2a0ff34
Merge pull request #5154 from rgerhards/i5148
mmnormalize bugfix: if msg cannot be parsed, parser chain is stopped
2023-06-19 12:11:26 +02:00
Rainer Gerhards
fa83b5b4bd
Merge pull request #5143 from VultureProject/redis_streams
New Redis streams functionality + various fixes and improvements
2023-06-19 10:22:00 +02:00
Rainer Gerhards
66dfa396da
Merge pull request #5141 from paulfertser/fix-mmexternal-test-typo
tests: mmexternal-SegFault-empty-jroot-vg.sh: fix typo
2023-06-19 10:18:24 +02:00
Rainer Gerhards
f2bac98f2a
mmnormalize bugfix: if msg cannot be parsed, parser chain is stopped
When an parser is not able to parse a message, it should indicate this
to rsyslog core, which then activates the next parser(s) inside the
configured parser chain.

Unfortunatley, mmnormalize always tells core "success", and so no
other parsers are activated.

closes https://github.com/rsyslog/rsyslog/issues/5148
2023-06-16 15:40:02 +02:00
Rainer Gerhards
5d59e8520f
maintain ChangeLog 2023-06-16 15:26:59 +02:00
Rainer Gerhards
9de91e1d2a
Merge pull request #5109 from Cropi/imjournal-FileCreateMode
imjournal: Add FileCreateMode module parameter
2023-06-16 15:24:10 +02:00
Rainer Gerhards
fac665f18f
Merge pull request #5118 from rgerhards/i5110
core bugfix: potential segfault on busy systems
2023-06-16 15:21:56 +02:00
Rainer Gerhards
f1d54745fe
Merge pull request #5144 from Cropi/libcap
Add new global config option "libcapng.default"
2023-06-16 15:16:52 +02:00
Rainer Gerhards
4941d7f92b
Merge pull request #5155 from julienkosinski/patch-1
Fix typo
2023-06-16 11:43:47 +02:00
Julien Kosinski
d6d22c3ee7
Fix typo 2023-06-11 11:37:51 +02:00
alakatos
ea821b7b9d Add new global config option "libcapng.default"
Defines how rsyslog should behave in case something went wrong
when capabilities were to be dropped. Default value is "on",
in which case rsyslog exits on a libcapng related error.
Closes #5096
2023-06-08 12:40:50 +02:00
alakatos
4abe60f526 imjournal: Add FileCreateMode module parameter
FileCreateMode allows to set the default file mode bits
when creating new files. As of now, it has only impact on the state file.
Add test suite as well.

Minor indentation fix in run_journal.yml
2023-06-08 12:18:02 +02:00
Rainer Gerhards
605a83b334
maintain ChangeLog 2023-06-06 15:06:13 +02:00
Rainer Gerhards
e1ad71da39
Merge pull request #5012 from sakateka/fix-external-dir-fd-leaking
imfile: Fix leak of fd of external directories
2023-06-06 15:00:28 +02:00
Konstantin J. Chernov
1dfa5f9d83
core bugfix: potential segfault on busy systems
This was discovered by Konstantin J. Chernov in a practicaly deployment.
Here, msg object tag processing caused sporadic segfaults. We did not
hear from similiar cases, but there clearly is potential for problems
because a mutex lock had insufficient range, thus leading to a potential
race.

The patch is directly from Konstantin J. Chernov, thanks for that.

Please note that the mutex lock could be minimized as it is not strictly
needed for the pM == NULL case, but this cause is extremely exotic
and the resulting code would be harder to understand. Thus we opt
to do the locking on funtion level (as usual).

Descriptiond edited by Rainer Gerhards

closes: https://github.com/rsyslog/rsyslog/issues/5110
2023-06-06 14:17:28 +02:00
Rainer Gerhards
ba32469fbc
maintain ChangeLog 2023-06-06 14:08:23 +02:00
Rainer Gerhards
71916802c9
Merge pull request #5136 from alorbach/pr-issue-5135
GNUTls Driver: Fix memory leak in gtlsInitCred
2023-06-06 13:24:45 +02:00
3401d687d2 GNUTls Driver: Fix memory leaks in gtlsInitCred
Missing CA Certificate or multiple Connections caused
a memory leak in pThis->xcred as it was allocated each time in
gtlsInitCred by gnutls_certificate_allocate_credentials

closes: https://github.com/rsyslog/rsyslog/issues/5135
2023-06-02 23:03:34 +02:00
Rainer Gerhards
cd3b9b5cc8
Merge pull request #5145 from rgerhards/ci-runner-distro-update
CI: update base ubuntu image for github actions
2023-05-25 11:57:50 +02:00
Rainer Gerhards
79ddbe1c65
CI: update base ubuntu image for github actions
This is just the "host" for containers, so no big deal. Looks like
Ubuntu 18.04 is no longer supported by github, at least all actions
hang in "queued" status without proceeding.
2023-05-24 10:30:06 +02:00
frikilax
ca4e320c3a OMHIREDIS::ADDED:: New support for 'stream' mode
### ADDED
- [OMHIREDIS] module is now able to insert entries to a Redis Stream
- [OMHIREDIS] in 'stream' mode, module can insert the message to a custom field in the entry ('msg' by default)
- [OMHIREDIS] in 'stream' mode, module can acknowledge an entry coming from imhiredis (if entry was claimed but not ACK'ed)
- [OMHIREDIS] in 'stream' mode, acknowledgements can be made from dynamic templates or static values
- [OMHIREDIS] in 'stream' mode, module can approximately cap the size of the output stream
- [OMHIREDIS] in 'stream' mode, module can delete an entry while inserting its message (useful to remove entry coming from another stream with imhiredis)
- [OMHIREDIS] new tests for 'stream' mode
 ### FIXED
- [CONFIGURE.AC] Missing line to give omhiredis compilation status
2023-05-23 11:01:03 +02:00
frikilax
4fa296727c OMHIREDIS::ADDED:: new tests for existing functionalities 2023-05-23 11:01:03 +02:00
frikilax
d59ba56e8a OMHIREDIS::FIXED:: Correctly suspend module in case of failure 2023-05-23 11:00:40 +02:00
frikilax
2775f4fa9e OMHIREDIS::FIXED:: Synchronously try to authenticate
Using redisAppendCommand() did not yield immediate answer, so the module was bound to wait for the end of a transaction
to realize that authentication failed
2023-05-23 10:59:57 +02:00
frikilax
3ac9fa5267 IMHIREDIS::ADDED:: New support for 'stream' mode
- [IMHIREDIS] Add support for simple XREADs from Redis Streams (Redis >= 5.0 required)
- [IMHIREDIS] Add support for XREADGROUP from Redis Streams, allowing for user to define workers to dequeue logs in a stream
- [IMHIREDIS] stream mode can select fields to extract and insert in custom keys
- [IMHIREDIS] Add tests for the new 'stream' modes
2023-05-23 10:58:40 +02:00
frikilax
4ef42fde7a REDIS::ADDED:: Implement tests for imhiredis module
- changed diag.sh to be able to start/stop/clean a redis server
- added helper functions in diag.sh to be able to query a redis server instance
- added new tests for imhiredis module to check
  - that the queue mode works, with both lpop and rpop
  - that the module is capable of handling a redis server going down
  - that the module is capable of handling a redis server that appears afterwards
  - that the subscribe mode works
2023-05-17 12:02:22 +02:00
frikilax
cdba21a244 IMHIREDIS::CLEAN:: various improvements and fixes
### CHANGED
- [IMHIREDIS] factorize code for different modes
- [IMHIREDIS] Clean and improve logging lines
- [IMHIREDIS] Poll extinction state less frequently for main thread (less aggresive)
- [IMHIREDIS] Set 'key' action parameter to REQUIRED
- [IMHIREDIS] Use known message length instead of calculating it when
  enqueuing message
 ### ADDED
- [IMHIREDIS] Missing redis replies' types in enumeration
 ### FIXED
- [IMHIREDIS] Correctly initialize instance object, especially for redisNodesList
- [IMHIREDIS] Correctly print input mode's value in logs when set incorrectly
2023-05-17 12:01:34 +02:00
Paul Fertser
086358c61b tests: mmexternal-SegFault-empty-jroot-vg.sh: fix typo
Fix the typo that makes the test fail.
2023-05-17 08:08:10 +03:00
Rainer Gerhards
a71589b507
re-set version number for daily stable release 2023-04-17 13:07:56 +02:00
Rainer Gerhards
63fed99bcc
prepare for scheduled stable v8.2304.0 release v8.2304.0 2023-04-17 13:04:59 +02:00
Rainer Gerhards
fce05eac0f
maintain ChangeLog 2023-04-17 12:51:06 +02:00