Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next/144/20231006/v1 #9575

Merged
merged 6 commits into from
Oct 8, 2023
Merged

Conversation

inashivb and others added 6 commits October 6, 2023 21:28
Although we have an updated version of instructions for installation
from git, our install guide was only referring to RedMine, which is less
up-to-date.

Kept that reference, since it might still be useful for non-Ubuntu
cases.
This is indicated in the `Installation` section, but not in the
quickstart, and it felt like a valid addition, here, too.
email_ctx->fields only gets populated when smtp.custom setting is on.
The fn EveEmailLogJSONCustom is called when either
1. smtp.extended setting is on or,
2. email_ctx->fields is populated which means smtp.custom setting is on

In case neither of these are set in suricata.yaml, no call should
ideally be made to the fn EveEmailLogJSONCustom.
However, it turns out that email_ctx->fields is unset and then set only
after the smtp config was found. This leads to email_ctx->fields
sometimes contain value even when no config was given to the smtp
section and can lead to unexpected output.

Fix this by using SCCalloc while initializing OutputJsonEmailCtx struct
instead of SCMalloc.

Bug 6380
Our documentation was failing to build, seems connected to the new way
of indicating build options (cf
https://readthedocs.org/projects/suricata/builds/22112658/,
https://docs.readthedocs.io/en/stable/config-file/v2.html#build,
and https://docs.readthedocs.io/en/stable/config-file/v2.html#build-os).

Added the build.os required new field, and adjusted the way python
version is passed.

For the new configuration style for read the docs, one of the ways to
pass extra configuration for python is having a requirements file.
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #9575 (1a132f4) into master (9157070) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9575      +/-   ##
==========================================
+ Coverage   82.20%   82.22%   +0.01%     
==========================================
  Files         968      968              
  Lines      274275   274275              
==========================================
+ Hits       225461   225515      +54     
+ Misses      48814    48760      -54     
Flag Coverage Δ
fuzzcorpus 64.14% <100.00%> (+0.09%) ⬆️
suricata-verify 60.92% <100.00%> (-0.04%) ⬇️
unittests 62.87% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants