Commit graph

16055 commits

Author SHA1 Message Date
Arne Welzel
c873857953 NEWS: Fix enumeration in Breaking Changes 2023-06-14 13:16:01 +02:00
Arne Welzel
0fe32715c0 Merge remote-tracking branch 'origin/topic/awelzel/pre-commit-typos'
* origin/topic/awelzel/pre-commit-typos:
  all: Fix typos identified by typos pre-commit hook
  NEWS typo fixes
  Start with a typos pre-commit file
2023-06-14 13:06:47 +02:00
Arne Welzel
2f1ea789d1 Merge remote-tracking branch 'origin/topic/awelzel/2285-assert-statement'
* origin/topic/awelzel/2285-assert-statement:
  NEWS: Small section about assert statement
  Stmt: Rework assertion hooks break semantics
  Stmt: Introduce assert statement and related hooks
  ZeekArgs: Helper for empty arguments
  Reporter: Allow AssertStmt to throw InterpreterException
  Lift backtrace() code into Func.{h,cc}
2023-06-14 12:51:53 +02:00
Arne Welzel
90ec6582d8 Update cmake submodule [nomail] 2023-06-14 11:06:00 +02:00
zeek-bot
4056d904b7 Update doc submodule [nomail] [skip ci] 2023-06-14 00:20:36 +00:00
Tim Wojtulewicz
05efc0f9df Fix usage of realpath on macOS, instead preferring grealpath 2023-06-13 15:51:47 -07:00
Tim Wojtulewicz
894be5aa2d Don't generate minimal tarball anymore 2023-06-13 15:51:28 -07:00
Tim Wojtulewicz
9f80d62cde Update cmake submodule [nomail] 2023-06-13 14:20:31 -07:00
Tim Wojtulewicz
8175558a56 Merge remote-tracking branch 'origin/topic/bbannier/configure-summary-indention'
* origin/topic/bbannier/configure-summary-indention:
  Clarify subitem relationship in CMake configure summary.
2023-06-13 11:29:47 -07:00
Tim Wojtulewicz
9e2e6d0174 Merge remote-tracking branch 'origin/topic/awelzel/3112-log-suffix-left-over-log-rotation-fixup'
* origin/topic/awelzel/3112-log-suffix-left-over-log-rotation-fixup:
  tests: Do not use archiver_rotation_format_func as postprocessor
2023-06-13 11:28:34 -07:00
Arne Welzel
f83e96d1a6 NEWS: Add entry about Debian 12 2023-06-13 20:11:38 +02:00
Arne Welzel
e99db077bb docker: Add libnode to enable JavaScript support 2023-06-13 20:11:38 +02:00
Arne Welzel
2fb26c2f15 docker: Bump images to Debian 12 2023-06-13 20:11:34 +02:00
Arne Welzel
e1a81c528c tests: Do not use archiver_rotation_format_func as postprocessor
This test triggered ubsan by putting a function with the wrong type
as a post-processor into the .shadow file. Don't do that.

Likely Zeek should provide a better error message, but hand-crafting
.shadow files isn't what is normally done and this is to fix the
master build for now.
2023-06-13 19:17:32 +02:00
Arne Welzel
7a043e5e8f all: Fix typos identified by typos pre-commit hook 2023-06-13 17:57:32 +02:00
Arne Welzel
260c868f26 NEWS typo fixes 2023-06-13 17:57:32 +02:00
Arne Welzel
8a2249fa76 Start with a typos pre-commit file
Inspired by Spicy and me creating typos everywhere. Some of the
suggestions are also very reasonable.
2023-06-13 17:57:29 +02:00
Arne Welzel
f53aefdd5b Merge branch 'topic/awelzel/3112-log-suffix-left-over-log-rotation'
* topic/awelzel/3112-log-suffix-left-over-log-rotation:
  cluster/logger: Fix leftover-log-rotation in multi-logger setups
  cluster/logger: Fix global var reference
2023-06-13 17:33:56 +02:00
Arne Welzel
30c084d39f NEWS: Small section about assert statement 2023-06-13 16:18:54 +02:00
Arne Welzel
0b0f6e509f Stmt: Rework assertion hooks break semantics
Using break in either of the hooks allows to suppress the default reporter
error message rather than suppressing solely based on the existence of an
assertion_failure() handler.
2023-06-13 16:18:01 +02:00
Arne Welzel
6d1991fb6a cluster/logger: Fix leftover-log-rotation in multi-logger setups
Populating log_metadata during zeek_init() is too late for the
leftover-log-rotation functionality, so do it at script parse time.

Also, prepend archiver_ to the log_metadata table and encoding function
due to being in the global namespace and to align with the
archiver_rotation_format_func. This hasn't been in a released
version yet, so fine to rename still.

Closes #3112
2023-06-13 10:47:20 +02:00
Arne Welzel
27432c457c cluster/logger: Fix global var reference 2023-06-13 10:47:20 +02:00
Tim Wojtulewicz
4314bdfd38 Merge remote-tracking branch 'origin/topic/timw/update-broker'
* origin/topic/timw/update-broker:
  Update broker submodule [nomail]
2023-06-12 15:27:42 -07:00
Tim Wojtulewicz
b8c3d99842 Update broker submodule [nomail] 2023-06-12 12:31:12 -07:00
Tim Wojtulewicz
27575df917 Merge remote-tracking branch 'origin/topic/bbannier/bump-spicy'
* origin/topic/bbannier/bump-spicy:
  Bump `auxil/spicy`.
  Update link to slack in README.md
  Updating CHANGES and VERSION.
2023-06-12 11:07:03 -07:00
Tim Wojtulewicz
98e44ee14f Merge remote-tracking branch 'origin/topic/awelzel/cluster-at-if-removal'
* origin/topic/awelzel/cluster-at-if-removal:
  test-all-policy: Do not load nodes-experimental/manager.zeek
  cluster/main: Remove extra @if ( Cluster::is_enabled() )
2023-06-12 11:04:53 -07:00
Tim Wojtulewicz
c389d9804b Merge remote-tracking branch 'origin/topic/awelzel/3099-fix-and-extend-socks5-sig'
* origin/topic/awelzel/3099-fix-and-extend-socks5-sig:
  socks/dpd: Add newer auth methods
  socks/dpd: Fix socks5_server side signature
2023-06-12 10:57:08 -07:00
Arne Welzel
25ea678626 Stmt: Introduce assert statement and related hooks
including two hooks called assertion_failure() and assertion_result() for
customization and tracking of assertion results.
2023-06-12 18:16:02 +02:00
Arne Welzel
a25b1a9d59 ZeekArgs: Helper for empty arguments 2023-06-12 18:14:05 +02:00
Arne Welzel
743658248e Reporter: Allow AssertStmt to throw InterpreterException 2023-06-12 18:14:05 +02:00
Arne Welzel
e8811a55ef Lift backtrace() code into Func.{h,cc}
This is to be re-used by the assertion facility.
2023-06-12 18:13:56 +02:00
Benjamin Bannier
eb1c7eff6c Clarify subitem relationship in CMake configure summary. 2023-06-09 13:31:53 +02:00
Benjamin Bannier
bef857e68c Bump auxil/spicy. 2023-06-09 12:51:16 +02:00
Arne Welzel
857c15a293 Merge remote-tracking branch 'origin/topic/awelzel/choco-2'
* origin/topic/awelzel/choco-2:
  ci/windows: choco --localonly is gone
2023-06-09 11:04:14 +02:00
Arne Welzel
5f73143e7c Update cmake submodule [nomail] 2023-06-09 09:10:23 +02:00
zeek-bot
2c660886b3 Update doc submodule [nomail] [skip ci] 2023-06-08 00:23:53 +00:00
Arne Welzel
528e27e542 ci/windows: choco --localonly is gone
choco 2.0 is now used after some caching changes on the Cirrus side [1]
and the --localonly flag is gone from choco [2], remove its usage.

[1] https://github.com/cirruslabs/cirrus-ci-docs/issues/1174#issuecomment-1580928673
[2] https://docs.chocolatey.org/en-us/guides/upgrading-to-chocolatey-v2-v6#the-list-command-now-lists-local-packages-only-and-the-local-only-and-lo-options-have-been-removed
2023-06-07 17:30:15 +02:00
Arne Welzel
820c011ffc test-all-policy: Do not load nodes-experimental/manager.zeek
Turns out loading this script in non-cluster mode uses Cluster::log()
and creates cluster.log in the external baselines saying "cluster
started". Do not load it into test-all-policy.zeek and instead rely
on the new test-all-policy-cluster.test to load it transitively
when running as manager for basic checking.
2023-06-06 15:22:27 +02:00
Arne Welzel
eef7acc1e9 cluster/main: Remove extra @if ( Cluster::is_enabled() )
These have been discussed in the context of "@if &analyze" [1] and
am much in favor for not disabling/removing ~100 lines (more than
fits on a single terminal) out from the middle of a file. There's no
performance impact for having these handlers enabled unconditionally.
Also, any future work on "@if &analyze" will look at them again which
we could also skip.

This also reverts back to the behavior where the Cluster::LOG stream
is created even in non cluster setups like in previous Zeek versions.
As long as no one writes to it there's essentially no difference. If
someone does write to Cluster::LOG, I'd argue not black holing these
messages is better. Schema generators using Log::active_streams will
continue to discover Cluster::LOG even if they run in non-cluster
mode.

https://github.com/zeek/zeek/pull/3062#discussion_r1200498905
2023-06-06 15:20:10 +02:00
Arne Welzel
359eec4297 Update cmake submodule [nomail] 2023-06-06 14:23:40 +02:00
Tim Wojtulewicz
0f017ac45b Update link to slack in README.md 2023-06-05 14:18:38 +02:00
Arne Welzel
8717b01e21 Merge remote-tracking branch 'origin/topic/timw/update-pysubnettree-patricia'
* origin/topic/timw/update-pysubnettree-patricia:
  Update zeekctl for pysubnetree/patricia upgrade
2023-06-05 14:17:33 +02:00
Arne Welzel
8f7b4902c9 socks/dpd: Add newer auth methods
The IANA has allocated a few more authentication methods, minimally
extend the signature to catch those.
2023-06-05 13:55:00 +02:00
Arne Welzel
d6ca1ec4f6 socks/dpd: Fix socks5_server side signature
The server replies with \x05 and identifier for the chosen method.
Not quite sure what the previous signature meant capture.

See also: https://datatracker.ietf.org/doc/html/rfc1928#section-3

Closes #3099.
2023-06-05 13:54:47 +02:00
zeek-bot
a18d6c9400 Update doc submodule [nomail] [skip ci] 2023-06-02 00:19:40 +00:00
Tim Wojtulewicz
39b1cede33 Update link to slack in README.md 2023-06-01 14:21:44 +02:00
Tim Wojtulewicz
c3c42756cd Update zeekctl for pysubnetree/patricia upgrade 2023-06-01 10:56:19 +02:00
Tim Wojtulewicz
fba058f7b7 Merge remote-tracking branch 'origin/topic/timw/remove-vendored-cmake-files'
* origin/topic/timw/remove-vendored-cmake-files:
  Update bifcl, binpac, and broker repos for cmake changes
  bison_target argument changes from HEADER to DEFINES_FILE
  Update cmake submodule [nomail]
2023-05-31 13:49:27 -07:00
Tim Wojtulewicz
1cea0f8e6a Update bifcl, binpac, and broker repos for cmake changes 2023-05-31 13:16:03 -07:00
Tim Wojtulewicz
0203e7cd58 bison_target argument changes from HEADER to DEFINES_FILE 2023-05-31 14:28:51 +02:00