12511 Commits

Author SHA1 Message Date
Rainer Gerhards
779c70718d
Merge pull request #2763 from rgerhards/i2762
gnutls driver: support intermediate certificates
2018-06-13 17:34:49 +02:00
Rainer Gerhards
8cebaebaf3 require inotify for tests that need it 2018-06-13 14:57:09 +02:00
Rainer Gerhards
0d765f194a fix build issues
these were introduced in 7589f42e45888b83f5c2a0d788896d41e6a6a598
2018-06-13 14:17:56 +02:00
Arne Nordmark
ec9c22df6e gnutls driver: support intermediate certificates
this is necessary for certificate chains

closes https://github.com/rsyslog/rsyslog/issues/2762
2018-06-13 14:16:52 +02:00
Rainer Gerhards
29926740f3 maintain ChangeLog 2018-06-13 14:16:35 +02:00
2f30c4270a add openssl TLS driver (#2761)
add openssl TLS driver

Also fixes some nits in existing testbench tests (e.g. expired test certs) and extend tcpflood to support openssl as well.

closes: https://github.com/rsyslog/rsyslog/issues/1390
closes: https://github.com/rsyslog/rsyslog/issues/1840
closes: https://github.com/rsyslog/rsyslog/issues/1352
closes: https://github.com/rsyslog/rsyslog/issues/1702
closes: https://github.com/rsyslog/rsyslog/issues/2547
2018-06-13 13:20:23 +02:00
Rainer Gerhards
55ab00c813
Merge pull request #2769 from jgerhards/errmsg-imkafa
imkafka: use new errmsg interface
2018-06-13 12:39:30 +02:00
Rainer Gerhards
44448b0a80 maintain ChangeLog 2018-06-12 18:41:05 +02:00
Rainer Gerhards
495c6bf93d
Merge pull request #2751 from jsiwrk/feature/omprog_simplify_skeleton
omprog: simplify 'plugin-with-feedback.py' example
2018-06-12 18:39:49 +02:00
Rainer Gerhards
5b78d5c6ee
Merge pull request #2764 from richm/mmkubernetes-use-version-2
use version=2 in mmkubernetes rulebase files
2018-06-12 18:35:58 +02:00
Jan Gerhards
0be9aab994 imkafka: use new errmsg interface
see also https://github.com/rsyslog/rsyslog/issues/1684
2018-06-12 15:01:56 +02:00
Rainer Gerhards
ce01365296 maintain ChangeLog 2018-06-12 14:42:29 +02:00
Rainer Gerhards
03636846ba
Merge pull request #2727 from rgerhards/imfile-fix-double-free
imfile bugfix: double-free on module shutdown
2018-06-12 14:41:08 +02:00
Rainer Gerhards
63873f08ee maintain ChangeLog 2018-06-11 19:13:13 +02:00
Rainer Gerhards
ef376a007b
Merge pull request #2767 from rgerhards/i2760
core: fix message loss on target unavailibility during shutdown
2018-06-11 19:11:36 +02:00
Rainer Gerhards
59627f23be core: fix message loss on target unavailibility during shutdown
Triggering condition:
- action queue in disk mode (or DA)
- batch is being processed by failed action in retry mode
- rsyslog is shut down without resuming action

In these cases messages may be lost by not properly writing them
back to the disk queue.

closes https://github.com/rsyslog/rsyslog/issues/2760
2018-06-11 13:25:32 +02:00
Rainer Gerhards
1e378c8e25 maintain ChangeLog 2018-06-11 13:23:51 +02:00
Rainer Gerhards
ae8580e7f5
Merge pull request #2755 from rgerhards/i2742
core: misadressing when writing disk queue files
2018-06-11 13:21:10 +02:00
Rainer Gerhards
1ffa0acc96 testbench: add suppressions for valgrind false positives on CentOS 6
Added them after intensive checking that these are indeed false positives.
Among other, checks via TSAN as well as intensive manual debugging of that
issue. Also, no other platform shows the issues. So I conclude that it is
safe to suppress it.
2018-06-11 10:47:17 +02:00
Rich Megginson
fc2ad45f78 use version=2 in mmkubernetes rulebase files 2018-06-07 12:58:53 -06:00
Rainer Gerhards
1bf61d127d
Merge pull request #2719 from Whissi/add-missing-mmkubernetes-test-dep
testbench: Add missing mmkubernetes_test_server.py to EXTRA_DIST
2018-06-07 17:46:42 +02:00
Rainer Gerhards
36b0438dd1 maintain ChangeLog 2018-06-06 12:09:23 +02:00
Rainer Gerhards
cc80597965
Merge pull request #2740 from selivan/patch-2
rsyslog.service.in: move LimitNOFILE to correct section
2018-06-06 12:05:45 +02:00
Rainer Gerhards
4c81287b16
Merge pull request #2756 from rgerhards/i2747
imrelp: segfault on startup when cert without priv key is configured
2018-06-06 12:02:21 +02:00
Rainer Gerhards
5c84140f9a
Merge pull request #2748 from PascalWithopf/i-2743
omrelp: check for correct authmode
2018-06-06 11:59:26 +02:00
Rainer Gerhards
c808e80db6
Merge pull request #2725 from atc0005/i2713-lookup-reload-msg-log-level
lookup table reload: log level from error to info
2018-06-06 11:57:40 +02:00
Rainer Gerhards
9e13294129
Merge pull request #2715 from jvymazal/FD_limit
moved FD limit setting to correct section of unit file
2018-06-06 11:57:17 +02:00
Rainer Gerhards
5f3885d115 testbench: add imrelp test for invalid config
both certificate and it's private key must be configured - check that
this is detected

see also https://github.com/rsyslog/rsyslog/issues/2747
2018-06-05 13:17:42 +02:00
Rainer Gerhards
32b71daa8a imrelp: segfault on startup when cert without priv key is configured
closes https://github.com/rsyslog/rsyslog/issues/2747
2018-06-05 13:13:02 +02:00
Rainer Gerhards
2077cde936
Merge pull request #2754 from jgerhards/errmsg-imdiag
imdiag: use new errmsg interface
2018-06-05 10:34:03 +02:00
Rainer Gerhards
f4d6a593bb
core: misadressing when writing disk queue files
when writing disk queue files during shutdown, access to freed
memory can occur under these circumstances:

- action A is processing data, but could not complete it
  most importantly, the current in-process batch needs not to
  be totally completed. Most probable cause for this scenario
  is a suspended action in retry mode.
- action A is called from a ruleset RA which
  - does not have a queue assigned
  - where RA is called from a ruleset RO which is bound
    to the input from which the message originated
  - RO must be defined before RA inside the expanded config
- Disk queues (or the disk part of a DA queue) must be utilized
  by A

When re-injecting the unprocessed messages from A into the disk queue, the
name of ruleset RO is accessed (for persisting to disk). However, RO is
already destructed at this point in time.

The patch changes the shutdown processing of rulesets, so that all
shutdown processing is done before any ruleset data is destructed. This
ensures that all data items which potentially need to be accessed
remain valid as long as some part may potentially try to access them.

This follows a the approach used in
   https://github.com/rsyslog/rsyslog/pull/1857
where obviously that part of the problem was not noticed.

see also https://github.com/rsyslog/rsyslog/issues/1122
closes https://github.com/rsyslog/rsyslog/issues/2742
2018-06-05 09:08:42 +02:00
Jan Gerhards
7aa9738184 imdiag: use new errmsg interface
see also https://github.com/rsyslog/rsyslog/issues/1684
2018-06-04 18:54:06 +02:00
Joan Sala
7b2478127c omprog: simplify 'plugin-with-feedback.py' example
Make the skeleton easier to understand by removing transaction support.
Also, transaction failures did not work as explained in the skeleton,
because of issue #2420. In the future, a 'plugin-with-transactions.py'
example can be added, ideally once the issue is solved.
2018-06-03 19:49:17 +02:00
Rainer Gerhards
428fa434b1
Merge pull request #2746 from rgerhards/gdpr
add GDPR legal notice to contributor doc
2018-06-02 14:50:20 +02:00
PascalWithopf
73cfd0b690 omrelp: check for correct authmode
When authmode is configured, it is checked if the value is
valid, before using it.
If the value is invalid an error message is put out.

closes https://github.com/rsyslog/rsyslog/issues/2743
2018-06-01 15:13:36 +02:00
Rainer Gerhards
8f1fdb461b add GDPR legal notice to contributor doc
while this is utter nonsense, discussion on GDPR and git
seems unfortunately be rooted in actual legal needs
2018-06-01 12:21:15 +02:00
Selivanov Pavel
e74c7e41ad
rsyslog.service.in: move LimitNOFILE to correct section
systemd[1]: [/lib/systemd/system/rsyslog.service:19] Unknown lvalue 'LimitNOFILE' in section 'Install'
2018-05-26 01:23:44 +03:00
Rainer Gerhards
bb55ea9016
Merge pull request #2726 from richm/mmkubernetes-fix-python3
mmkubernetes test python must encode response
2018-05-18 14:16:45 +02:00
Rainer Gerhards
6658bb2da6
imfile bugfix: double-free on module shutdown
detected by code review
2018-05-18 08:56:19 +02:00
Rich Megginson
c1791ee90f mmkubernetes test python must encode response
https://github.com/rsyslog/rsyslog/issues/2721
Was not working on python3 - must use `encode()` to convert the
string to a `bytes` object.
Also run the server with python -u to make sure we get the log
output from the kubernetes test server.
2018-05-17 18:38:29 -06:00
Adam Chalkley
6dbc857508 lookup table reload: log level from error to info
Based on discussion, the error level is being adjusted to reflect
that the action (reloading the lookup table) is normal/expected
and not an actual error condition.

refs rsyslog/rsyslog#2713
2018-05-17 09:30:29 -05:00
Rainer Gerhards
28d17abaf6
Merge pull request #47 from PascalWithopf/i-2464
add tests for parameter freshStartTail
2018-05-17 15:59:21 +02:00
PascalWithopf
2b3cf50391 add tests for parameter freshStartTail 2018-05-17 15:02:15 +02:00
Rainer Gerhards
e548ea363d
Merge pull request #2722 from CodeHarsh/master
Wrong Copyright year in fmhash
2018-05-17 13:35:51 +02:00
Rainer Gerhards
99d351d4aa imfile bugfix: if freshStartTail is set some initial file lines missing
When the option is set and a new file is created after rsyslog startup,
freshStartTail is also applied to it. That is data written quickly to it
(before rsyslog can process it) will potentially be discarded. If so,
and how much, depends on the timing between rsyslog and the logging process.
This problem is most likely to be seen in polling mode, where a relatively
long time may be required for rsyslog to find the new file.

This is changed so that now freshStartTail only applies to files that
are already-existing during rsyslog's initial processing of the file
monitors. HOWEVER, depending on the number and location (network?) of
existing files, this initial startup processing may take some time as
well. If another process creates a new file at exactly the time of
startup processing and writes data to it, rsyslog might detect this
file and it's data as prexisting and may skip it. This race is inevitable.
So when freshStartTail is used, some risk of data loss exists. The same
holds true if between the last shutdown of rsyslog and its restart log
file content has been added. This is no rsyslog bug if it occurs.

As such, the rsyslog team advises against activating the freshStartTail
option.

closes https://github.com/rsyslog/rsyslog/issues/2464
2018-05-17 12:30:44 +02:00
Harshvardhan Shrivastava
9cf34ca224
Wrong Copyright year 2018-05-17 10:42:22 +05:30
Thomas Deutschmann
48f7ebbf50
testbench: Add missing mmkubernetes-basic.out.json to EXTRA_DIST
Closes: https://github.com/rsyslog/rsyslog/issues/2720
2018-05-17 01:02:08 +02:00
Thomas Deutschmann
785a17f093
testbench: Add missing mmkubernetes_test_server.py to EXTRA_DIST 2018-05-17 00:41:00 +02:00
Rainer Gerhards
c7824fa522
maintain ChangeLog 2018-05-16 17:56:19 +02:00
Rainer Gerhards
ff9e6f8261
Merge pull request #2704 from rgerhards/i1092
config: permit 4-digit file creation modes
2018-05-16 17:54:14 +02:00