19082 Commits

Author SHA1 Message Date
Rainer Gerhards
ce103822c9
Merge pull request #6072 from rgerhards/codex/implement-w-option-in-tcpflood.c
tests: add -w port file option to tcpflood
2025-09-03 13:56:22 +02:00
Rainer Gerhards
e5269fdc03
tests: add -w port file option to tcpflood
Adds -w option to tcpflood to write its local port to a file.
The option accepts a filename and writes the port number followed
by a trailing newline. tcpflood now rejects -w if more than one
connection would be opened.

With help of AI-Agent: ChatGPT
2025-09-03 13:20:58 +02:00
Rainer Gerhards
4d1d33fe4e
Merge pull request #6071 from UGerhards/codex/refactor-rsyslog-module-parameter-documentation-sft66w
Codex/refactor rsyslog module parameter documentation sft66w
2025-09-03 13:02:54 +02:00
Rainer Gerhards
caafe09b2a
Merge pull request #6067 from rgerhards/diag-more-verbose
CI: more verbose info on kafka/zookeeper install
2025-09-03 12:33:13 +02:00
e4042aa623 runtime: fix Darwin build regressions and improve BSD portability
Fix compilation issues on macOS/Darwin systems and enhance cross-platform
compatibility for BSD variants:

- Add Darwin-specific pthread_setname_np call in tcpsrv.c with enhanced
  platform-specific conditional compilation
- macOS (__APPLE__): Single parameter, returns int
- FreeBSD/NetBSD: Two parameters, returns void
- Linux/glibc (default): Two parameters, returns int

This prevents compilation failures across all BSD systems where the
function signature and return type differ, while maintaining existing
compatibility with macOS and Linux systems.

- Add _PATH_UTMP fallback definition in omusrmsg.c for systems
  without paths.h or missing _PATH_UTMP definition
- Remove trailing empty line in cfsysline.c for consistency

The change adds proper platform-specific conditional compilation
with clear documentation for each variant and maintains error
checking where the return value is available.

Impact: Fixes build regressions on Darwin and BSD systems while
preserving backward compatibility with existing platforms.

Refs: https://github.com/rsyslog/rsyslog/pull/6069
Refs: https://github.com/rsyslog/rsyslog/pull/5635
Refs: https://github.com/Homebrew/homebrew-core/issues/221869
Refs: https://github.com/Homebrew/homebrew-core/issues/226378
2025-09-03 12:29:19 +02:00
Ulrike Gerhards
60f4daf8e4 mmpstrucdata: fix action parameter anchors and casing
- correct action anchor IDs for jsonRoot and sd_name.lowercase
- use camelCase heading for jsonRoot and remove redundant version tag

AI-Agent: ChatGPT
2025-09-03 12:08:40 +02:00
Ulrike Gerhards
32aa4b21ee mmpstrucdata: split parameter docs into reference pages 2025-09-03 09:55:08 +02:00
Rainer Gerhards
eb306ee15f
CI: more verbose info on kafka/zookeeper install
These comoponents have problems from time to time (e.g. tarball
no longer available); more verbose output makes simplyfies
diagnosis.
2025-09-03 09:49:52 +02:00
Rainer Gerhards
3319320644
maintain ChangeLog 2025-09-03 09:18:10 +02:00
Rainer Gerhards
3eedc02d6d
Merge pull request #5983 from rsyslog/codex/analyze-and-document-imhttp-module-for-prometheus
imhttp: expose stats via Prometheus endpoint
2025-09-03 09:17:03 +02:00
Rainer Gerhards
df8daa334b
Merge pull request #6066 from rgerhards/gemini-review-conf
CI: reconfigure gemmini code review bot
2025-09-03 09:15:28 +02:00
Rainer Gerhards
20a9c5da28
CI: reconfigure gemmini code review bot
It looks like our previous config was either for a pre-release or
did work albeit not following the (current) published schema.

Now changed it to current form.
2025-09-03 09:11:11 +02:00
schrotthaufen
8ba35bf6cd Add missing libraries to pkg-config call 2025-09-03 08:22:06 +02:00
Rainer Gerhards
75ef9b4f60
imhttp: optional auth + Content-Length for metrics/health
Harden default endpoints for cloud-native use: make health/metrics
scrapes proxy-friendly and allow locking them down with Basic Auth.
This aligns imhttp with common Kubernetes/Prometheus patterns and
supports metrics-only deployments.

Impact: /metrics now exports full rsyslog stats with Content-Length;
health and metrics can be gated via htpasswd; unified 500 on failures.

Technical details:
- Add module params: healthCheckBasicAuthFile and metricsBasicAuthFile.
  When set, attach a Basic Auth handler that reads an htpasswd file;
  reuse the same handler for per-input endpoints by passing the file via
  cbdata.
- Rework Prometheus handler to collect data through statsobj in
  Prometheus format. Accumulate lines into a growable buffer with
  overflow checks, append an imhttp_up gauge, then reply with an
  explicit Content-Length and close the connection.
- Fix metrics buffer termination to use a single NUL byte; prevent a
  leak when buffer growth fails; consolidate error paths so the buffer is
  freed and a single HTTP 500 is emitted.
- Docs: describe new auth options, clarify default paths, document that
  metrics responses carry Content-Length, and add examples (including
  metrics-only setups).

Before/After: metrics previously exposed a minimal body without auth;
now they export full rsyslog stats with optional Basic Auth and a
Content-Length header.
2025-09-03 08:14:46 +02:00
schrotthaufen
85e03c0e88 Replace libgcrypt-config with pkg-config
Libgcrypt 1.11.0 deprecated libgcrypt-config in favor for gpgrt-config,
which doesn't emit -lgcrypt. pkg-config does, though.

See also:
 * https://dev.gnupg.org/T7165
 * https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=2db5b5e995c21c5bd9cd193c2ed1109ba9b1a440

This should fix #5405
2025-09-02 22:11:30 +02:00
Rainer Gerhards
87c1a4a32d
Merge pull request #6064 from rgerhards/ci_run-configure.ac-change
CI: run check actions also on configure.ac change
2025-09-02 22:10:59 +02:00
Rainer Gerhards
b85c188303 Merge branch 'v8-stable' 2025-09-02 22:08:33 +02:00
Rainer Gerhards
e7e4bd8698
CI: run check actions also on configure.ac change 2025-09-02 21:48:57 +02:00
Ulrike Gerhards
357344e0ce
omsnmp: restructure (#6063)
split omsnmp doc into multiple pages for easier ingestion, following the new approach to presenting the doc.
2025-09-02 18:21:39 +02:00
Rainer Gerhards
01ce1963f5
Merge pull request #5024 from xgqt/fix_configure_bashisms
configure.ac: remove bashisms
2025-09-02 16:43:36 +02:00
Rainer Gerhards
f2575e353c
Merge pull request #5974 from rsyslog/codex/analyze-and-fix-testbench-failure-in-tcpflood.c
tcpflood: fix octet-counted framing delimiter
2025-09-02 16:40:15 +02:00
Rainer Gerhards
5a87dbc94f
tests: avoid tcpflood octet-frame over-read 2025-09-02 13:10:58 +02:00
Rainer Gerhards
7c01375eca
Merge pull request #6062 from rgerhards/kafka-version-change
CI: change zookeeper version to latest stable
2025-09-02 13:08:22 +02:00
Rainer Gerhards
b6c10a3d08 CI: change zookeeper version to latest stable
Previosly, dev build was targeted, where download also expired. This
resulted in CI failures as we could no longer set up kafka environment.
2025-09-02 12:47:58 +02:00
Rainer Gerhards
d441234276
maintain ChangeLog 2025-09-02 12:31:58 +02:00
Sourav Sharma
c330aa106a
imrelp: fix potential segfault on termination (#5600) 2025-09-02 12:29:26 +02:00
Rainer Gerhards
be3b0aeb81
Merge pull request #5966 from rsyslog/cursor/investigate-and-fix-netstream-driver-ca-chain-issue-1a3a
runtime: fix NetstreamDriverCAExtraFiles parsing
2025-09-02 09:44:46 +02:00
00gh
09286cc15b tools/rsyslog.conf.5: fix example Port= value
This will fix the example given where a Port number is configured.
The Port number (514) should be configured as a string value: "514".
2025-09-02 09:30:49 +02:00
Rainer Gerhards
ba762b6533
build system: fix tar format & doc content cleanup
Previous version potentially contained files in doc directory that
did not belong in it (like temp work files).

Alos upgraded tar format to permit for path name > 99 chars.
v8.2508.0
2025-09-01 14:03:57 +02:00
Rainer Gerhards
305b66017c
Merge pull request #5972 from rsyslog/cursor/fix-rsyslog-issue-5957-145c
omhttp: add profile support and revise HTTP retry semantics @#5957
2025-09-01 13:22:48 +02:00
Rainer Gerhards
a695e19c5e
maintain ChangeLog 2025-08-28 18:25:09 +02:00
Rainer Gerhards
3830484fdb
queue: refactor batch deletion with explicit phases (#6013)
Introduce explicit phases for DeleteBatchFromQStore to
streamline logic and enforce deterministic dequeue IDs.

With the help of AI-Agent: ChatGPT
2025-08-28 18:23:31 +02:00
Rainer Gerhards
4934800df3
Merge pull request #6050 from rgerhards/cleanup2222
core: some code cleanup
2025-08-28 15:47:47 +02:00
Rainer Gerhards
cfa9bab223
Merge pull request #6051 from rgerhards/cleanup2224
code cleanup (rephrasing false postive commented out code)
2025-08-28 15:46:37 +02:00
Rainer Gerhards
92e0238aa3
code cleanup (rephrasing false postive commented out code)
no functional change, but easier to understand
2025-08-28 14:08:27 +02:00
Rainer Gerhards
7b3a042d9e
core: some code cleanup
no functional changes
2025-08-28 14:04:34 +02:00
Rainer Gerhards
d4d8162ee9
Merge pull request #6047 from UGerhards/codex/emit-warning-to-normal-output-for-random
rainerscript: warn on excessive random range
2025-08-28 13:13:18 +02:00
Rainer Gerhards
4b3ce60b76
Merge pull request #6049 from rgerhards/omsendertrack-statan
omsendertrack: "fix" static analyzer reported issue
2025-08-28 13:08:43 +02:00
Rainer Gerhards
723ad32b96
omsendertrack: "fix" static analyzer reported issue
Analyzer, working at compilation unit level, cannot detect that
mandatory parameters are always non-NULL. Otherwise, config parsing
would have errored-out and processing would not go into other entry
points. This is part of rsyslog core processing in other compilation
units.
2025-08-28 12:56:15 +02:00
Rainer Gerhards
8151dcc3ec
Merge pull request #6048 from rgerhards/codex/update-github-actions-for-automatic-abort
ci: cancel superseded workflow runs
2025-08-28 12:41:35 +02:00
Rainer Gerhards
129e2e45f1
ci: cancel superseded workflow runs
Add concurrency groups with cancel-in-progress to all pull request
workflows so new pushes abort outdated jobs.

Most importantly this saves ressources and also makes follow-up
PR runs much quicker.

with the help of ChatGPT
2025-08-28 12:31:31 +02:00
Rainer Gerhards
c1b0bbb51e
maintain ChangeLog 2025-08-28 12:20:31 +02:00
Rainer Gerhards
8ce1876f7a
Merge pull request #6046 from rgerhards/statan-check
CI: ensure static analyzer script only runs when actually needed
2025-08-28 11:37:55 +02:00
Rainer Gerhards
9759e32bad
Merge pull request #6045 from rgerhards/welcome-fix
community: disable automatic welcome action
2025-08-28 11:15:32 +02:00
Rainer Gerhards
75514d1d45
CI: ensure static analyzer script only runs when actually needed
Also
- auto-abort on re-push
- some minor tweaks
2025-08-28 11:13:10 +02:00
Rainer Gerhards
9bbe3f8784
Merge pull request #5970 from rsyslog/codex/add-spellcheck-github-action-for-sphinx-docs
ci: add spellcheck workflow
2025-08-28 11:03:37 +02:00
Rainer Gerhards
ecc1c6b931 doc: work around a spellcheck restriction
spellcheck does not properly identfy variable name, so we change it
it a non-conflicting name. Also corrects a duplicate lookup.
2025-08-28 11:00:57 +02:00
Rainer Gerhards
d6c87402be
ci: add spellcheck workflow
Add a GitHub Actions job using codespell to check Sphinx docs in doc/source.
This helps catch spelling errors early and improves documentation quality.

With help from AI-Agent: ChatGPT
2025-08-28 11:00:26 +02:00
Rainer Gerhards
af18a9fd4b Potential fix for code scanning alert no. 44: Commented-out code
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-08-28 10:58:36 +02:00
Rainer Gerhards
a8dd841f03
community: disable automatic welcome action
This does currently not work correctly. We need to fix it, but there
currently is no time to do that now.
2025-08-28 10:54:52 +02:00