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

Decouple stream.bypass dependency from TLS encrypted bypass #9127

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
463 commits
Select commit Hold shift + click to select a range
6076b9e
detect: use proper names for whitelist score criteria
inashivb Nov 20, 2023
945ec4b
detect: remove redundant null setting
inashivb Nov 20, 2023
d8a887e
detect/engine: defensive check and comment update
inashivb Nov 20, 2023
8960a86
detect/port: remove BUG_ON in favor of PORT_ER
inashivb Nov 21, 2023
77eb85e
detect: remove misleading comment
inashivb Nov 21, 2023
c1bf955
detect-engine: use ports only after edge case handling
inashivb Dec 4, 2023
1ac5d97
pgsql: add unknonwn frontend message type
jufajardini Nov 27, 2023
4f85d06
pgsql: fix probing functions
jufajardini Nov 23, 2023
afd6e4d
pgsql: don't log unknown message type
jufajardini Nov 27, 2023
53d29f6
pgsql: remove unused error handling call
jufajardini Nov 27, 2023
9aeeac5
pgsql: remove probe_ts function
jufajardini Nov 27, 2023
64d12aa
ebpf: Update eBPF map to BTF defined map
vincentmli Aug 2, 2023
bbc17b1
doc: add file.name information to http keyword doc
jmtaylor90 Sep 20, 2023
bb1f757
doc: add file.name information to ftp keyword doc
jmtaylor90 Sep 20, 2023
e4077b8
doc: update ftp keyword doc example rule format
jmtaylor90 Sep 20, 2023
327ba73
doc: add file.name information to smb keyword doc
jmtaylor90 Sep 20, 2023
9d1ad01
doc: add file.name information to nfs keyword doc
jmtaylor90 Sep 20, 2023
fc81c99
doc: add file.name information to smtp keyword doc
jmtaylor90 Sep 20, 2023
bdec2d8
pgsql: don't log password msg if password disabled
jufajardini Dec 5, 2023
d3095ac
util/time: Prevent usecs overflow
ilya-bakhtin Sep 29, 2023
417806c
napatech: Fix packet timestamps
ilya-bakhtin Sep 29, 2023
0850e3d
util/time: Improve usecs handling in time macros
sfd Nov 28, 2023
a7c9028
detect/content-inspect: reduce scope of variables
victorjulien Sep 25, 2023
0ba4b29
detect/content-inspect: pass const to inspect func
victorjulien Sep 25, 2023
b1fa975
detect/content-inspect: remove const casting
victorjulien Sep 23, 2023
1f265d9
detect/content-inspect: assist branch prediction
victorjulien Sep 23, 2023
b357532
detect/content-inspect: switch type of enum
victorjulien Dec 2, 2023
d73cce4
detect/content-inspect: add entry for InspectionBuffer
victorjulien Dec 2, 2023
c9ab95c
detect/dns.query: use new content inspect entry
victorjulien Dec 2, 2023
6a01f40
detect/krb5.sname: use new content inspect entry
victorjulien Dec 2, 2023
e9b33c4
detect/base64: move content inspection logic
victorjulien Sep 23, 2023
97f78e1
detect/content-inspect: reduce scope of internal func
victorjulien Sep 24, 2023
4cce7ba
detect/content-inspect: localize recursion counting
victorjulien Sep 24, 2023
c19d11f
detect/content-inspect: flatten branches
victorjulien Sep 24, 2023
6db0256
detect/isdataat: optimize recursion mismatches
victorjulien Sep 25, 2023
e2fbcf9
detect/payload: remove unneeded pointer reset
victorjulien Sep 25, 2023
5359170
detect/bytemath: pass match ctx directly
victorjulien Sep 26, 2023
0014077
detect: optimize struct layout
victorjulien Sep 26, 2023
06c8095
detect/content-inspect: optimize struct layout
victorjulien Sep 26, 2023
332c2ea
detect/content-inspect: improve header docs
victorjulien Dec 6, 2023
c82d934
github/action: fix Debian 12 intermittent failures
victorjulien Dec 7, 2023
b9540df
doc: clarify IP-only with iprep
inashivb Dec 7, 2023
bd41b31
detect: rename SigAddressPrepare fns to SigPrepare
inashivb Dec 7, 2023
47c9a14
detect-engine: use bool return type
inashivb Dec 7, 2023
3485880
detect-engine: use flag SIG_FLAG_MPM_NEG
inashivb Dec 7, 2023
75471dd
detect/flowbits: remove DETECT_FLOWBITS_CMD_NOALERT
inashivb Dec 9, 2023
1b5e04b
http2: do not have leading space for response line
catenacyber Nov 19, 2023
8b2fd43
cppcheck/detect: Address cppcheck memory leak
jlucovsky Nov 25, 2023
40e3514
cppcheck: Address cpcheck report of an FP
jlucovsky Nov 25, 2023
5ebae1e
clang-format.sh: prefer clang-format-14
jasonish Dec 6, 2023
9307150
github-ci/formatting: update to Ubuntu 22.04
jasonish Dec 6, 2023
3456dea
doc/userguide: update guidance on 5 to 6 upgrading
victorjulien Dec 7, 2023
879db3d
endace: Fix source-dag timestamps
sfd Dec 11, 2023
774f05d
detect/analyzer: add details to flowbits keyword
hadiqaalamdar Dec 13, 2023
50be098
detect: rename DetectAppLayerMpmRegister2 to DetectAppLayerMpmRegister
jasonish Oct 23, 2023
b11bb1c
detect: rename DetectAppLayerInspectEngineRegister2
jasonish Oct 23, 2023
66ff23f
detect: rename InspectEngineFuncPtr2 to InspectEngineFuncPtr
jasonish Nov 12, 2023
4620776
rustfmt: replace deprecated fn_args_layout with fn_params_layout
jasonish Nov 16, 2023
e2d7a7f
dns: rustfmt with latest stable
jasonish Nov 16, 2023
9464d0b
dns: consolidate DNSRequest and DNSResponse to DNSMessage
jasonish Nov 15, 2023
5f99abb
dns: add dns.answer.name keyword
jasonish Oct 23, 2023
482325e
dns: add dns.query.name sticky buffer
jasonish Nov 14, 2023
f91122e
dns: replace usage of rs_dns_tx_get_query_name with SCDnsTxGetQueryName
jasonish Nov 15, 2023
c1a8dbc
doc/userguide: document dns.query.name, dns.answer.name
jasonish Nov 15, 2023
97744b7
output-json-alert: remove un-needed includes
jasonish Nov 12, 2023
7d95c4c
output-json-dns: remove un-needed includes
jasonish Nov 12, 2023
0ab32be
eve/stream: add sb main region size; segment count
victorjulien Sep 28, 2023
b8440a0
jsonbuilder: add set_int for signed ints
victorjulien Dec 8, 2023
de5b8ae
detect/analyzer: print int keyword values correctly
victorjulien Dec 8, 2023
1014520
detect/bytejump: don't reuse content flag
victorjulien Dec 8, 2023
fb497bf
detect/bytejump: test cleanup
victorjulien Dec 8, 2023
83ed2c3
detect/bytemath: bump length to uint32_t
victorjulien Dec 7, 2023
804a40e
detect/byte_extract: modernize tests
victorjulien Dec 12, 2023
3ba8e2d
detect/byte: remove unneeded SIG_FLAG_APPLAYER sets
victorjulien Dec 13, 2023
7fa8bbf
pgsql: extract length validation into function
jufajardini Nov 30, 2023
7dcc2e7
doc/eve-format: break pgsql section to char limit
jufajardini Dec 11, 2023
30ac77c
pgsql: add cancel request message
jufajardini Dec 11, 2023
bba3d4f
userguide/eve: explain pgsql requests & responses
jufajardini Dec 11, 2023
467c3f2
schema: apply clang formatting changes
jufajardini Dec 11, 2023
4bcdc79
stats: always use tcp/udp prefix
catenacyber Nov 20, 2023
f714678
schema: adds missing modbus field
catenacyber Sep 11, 2023
3103505
stats: incr app-proto flow counter for detection-only
catenacyber Dec 14, 2023
1afb485
pgsql: remove unused msg field
jufajardini Dec 15, 2023
15ed51f
feature: provide a Rust binding to the feature API
jasonish Dec 15, 2023
5d5b050
requires: add requires keyword
jasonish Nov 28, 2023
435c031
requires: pre-scan rule for requires expressions
jasonish Nov 29, 2023
71bbba9
detect-parse: parse sid in pre-scan
jasonish Nov 29, 2023
5cc872f
rust.h: don't include util-file.h, not needed
jasonish Dec 14, 2023
b453eea
stats: add rules skipped
jasonish Dec 19, 2023
f12e026
mqtt: Move conf code to rust
jlucovsky Dec 21, 2023
08eb67f
devguide: make 'contributing' a chapter
jufajardini Nov 22, 2023
71e4ca8
devguide: reorganize pr-workflow section
jufajardini Nov 22, 2023
de8bffd
devguide: doc from behavior changes needs ticket #
jufajardini Nov 24, 2023
9fbdfd2
devguide: add chapter with backports guide
jufajardini Nov 22, 2023
d15877b
devguide: update branches, refer to backports guide
jufajardini Nov 24, 2023
fc2acf8
devguide: fix main channels list
jufajardini Nov 24, 2023
673d13d
rust: allow clippy::items_after_test_module
catenacyber Jan 4, 2024
d321838
detect: case-insensitive comparison for requires
catenacyber Jan 4, 2024
a37fa62
devguide: explain example-rule container usage
jufajardini Nov 30, 2023
4933b81
doc: fix byte_test examples
catenacyber Dec 6, 2023
8d3de85
pgsql: fix u16 overflow in query data_row
jufajardini Oct 11, 2023
bcb2b50
detect/profiling: improve pcap reading performance
victorjulien Dec 16, 2023
e3f2b34
detect/content-inspect: use of replace keyword is rare
victorjulien Dec 17, 2023
9dc35fb
detect/pcre: put commonly used members on first cache line
victorjulien Dec 17, 2023
18dfa69
detect/pcre: remove unused opts field
victorjulien Dec 20, 2023
eca6639
detect/pcre: localize match limit option parsing
victorjulien Dec 20, 2023
3e8db97
detect/bytemath: fix u32 buffer size logic
victorjulien Dec 18, 2023
f2e9c25
detect/pcre: remove unused match member
victorjulien Dec 18, 2023
fd75aca
detect/bytetest: remove unused Match function
victorjulien Dec 17, 2023
222dcf7
detect/content-inspect: add negation tests
victorjulien Dec 19, 2023
bd66504
detect: implement --qa-skip-prefilter
victorjulien Dec 17, 2023
4558c5c
detect/http_server_body: modernize test
victorjulien Dec 19, 2023
ea5cf44
mpm: remove unused flags field
victorjulien Dec 19, 2023
4a6a3dc
mpm: UNITTESTS guard for RegisterUnittests func
victorjulien Dec 19, 2023
0172c01
spm/bm: minor code cleanups; constification
victorjulien Dec 20, 2023
18eafb6
detect/content-inspect: add more tests
victorjulien Oct 6, 2023
2911656
detect/content: fix offset for negative distance
victorjulien Dec 20, 2023
2b3ec34
detect: use do { } while loop for app engine loop
victorjulien Dec 21, 2023
4f0f7b1
detect/dsize: minor code cleanup
victorjulien Dec 22, 2023
e06d2c4
detect/content: limits prop comment cleanup
victorjulien Dec 22, 2023
88cc999
detect/bsize: constify keyword args during size check
victorjulien Dec 22, 2023
fd4ca53
app-layer: micro optimization for AppProtoEquals
victorjulien Dec 27, 2023
e4550be
detect: minor cleanup for rule group get function
victorjulien Dec 27, 2023
91f153f
detect: constify flow flags in tx rule inspect
victorjulien Dec 27, 2023
db24842
detect: shrink sgh to have all runtime members on one cache line
victorjulien Dec 27, 2023
11bf60a
detect/mpm: minor cleanup
victorjulien Dec 29, 2023
aad403d
mpm/hs: improve pointer hygene
victorjulien Dec 29, 2023
96aee64
mpm/ac: pointer hygene
victorjulien Dec 29, 2023
7b2d6b6
detect/address: minor cleanup
victorjulien Dec 31, 2023
5c6089f
detect/address: refactor match array building
victorjulien Dec 31, 2023
72841be
detect/rule-header: minor code cleanups
victorjulien Jan 3, 2024
44a8bf4
detect/rule-header: use bool type
victorjulien Jan 3, 2024
3b8ed93
detect: remove DCERPC mask logic
victorjulien Dec 31, 2023
75c1b7f
detect: consolidate per rule group file loops
victorjulien Jan 3, 2024
609cac5
flow: minor optimization
victorjulien Jan 3, 2024
f5565f4
eve/email: improve logging binary data
victorjulien Jan 8, 2024
9a14d7a
eve/http: use numeric status code by default
victorjulien Jan 8, 2024
1dcf69b
eve/http: add location header independent of status availability
victorjulien Jan 8, 2024
adf5e6d
detect: strip_pseudo_headers transform
catenacyber Dec 12, 2023
b239e88
ipfw: close(2) instead shutdown(2) of the divert(4) socket
glebius Jan 11, 2024
c49463c
rust: fix assertions_on_constants for assert!(true)
catenacyber Jan 4, 2024
a8199bf
rust: fix assertions_on_constants for assert!(false)
catenacyber Jan 4, 2024
85329f5
rust: fix zero_prefixed_literal
catenacyber Jan 5, 2024
9a84681
rust: fix vec_init_then_push
catenacyber Jan 5, 2024
b141eb9
rust: fix single_match
catenacyber Jan 5, 2024
259cdf1
rust: fix single_binding
catenacyber Jan 6, 2024
bedd485
ci: run clippy on test code as well
catenacyber Jan 6, 2024
6896a93
rust: update test_case crate
catenacyber Jan 5, 2024
f80d26d
flow-bypass: Set bypass thread to running state
vincentmli Aug 4, 2023
90ae3a2
eve/schema: allow authorities in dns.answers in alert
jasonish Jan 9, 2024
ff609f5
conf/log: Remove sguil mode
jlucovsky Jan 16, 2024
9101878
log/pcap: Remove sguil mode
jlucovsky Jan 16, 2024
58f882d
doc/pcap-log: Remove squil documentation
jlucovsky Jan 16, 2024
995f5fc
htp/swf: Remove flash deprecation notice
jlucovsky Jan 16, 2024
778820b
detect/alert: remove unnecessary else
inashivb Jan 16, 2024
588af05
detect: remove unneeded size in DetectEngineCtx
inashivb Jan 16, 2024
26b81ca
detect: make SigMatch.is_last bool
inashivb Jan 16, 2024
c28cc93
source/erf-dag: compiler warnings
sfd Jan 10, 2024
ca6f7c2
dpdk: rework hugepage hints to use per-numa information
Oct 30, 2023
2a28980
dpdk: add interrupt (power-saving) mode
Sep 27, 2023
6e4cc79
doc: remove references to prehistoric versions
Dec 11, 2023
df64448
userguide: clarify midstream exception policy
jufajardini Jan 18, 2024
415722d
smb: add smb.version keyword
zer1t0 Apr 28, 2022
a4901a1
smb: add smb.keyword documentation
zer1t0 Apr 28, 2022
bfc0790
rust: fix rustfmt warnings for smb detect
jmtaylor90 Aug 30, 2023
3cb7112
detect: update smb.version keyword
jmtaylor90 Aug 30, 2023
de3cbe4
detect/requires: reset sigerror flags for each rule
jasonish Jan 24, 2024
8bf8131
doc: note what version "requires" was added in
jasonish Jan 24, 2024
c3b3c11
requirements: use libhtp 0.5.x
jasonish Jan 24, 2024
9240ae2
detect: avoids case of useless detection on txs
catenacyber Sep 7, 2023
5bb8800
detect: merge sorted lists instead of qsort
catenacyber Sep 18, 2023
2fb5059
detect: do not store state without flags
catenacyber Sep 18, 2023
89936b6
mqtt: fix logic when setting event
catenacyber Oct 17, 2023
38db51b
rust: make cargo clippy clean
catenacyber Jan 16, 2024
d73ccd0
ci: run clippy without all features
catenacyber Jan 16, 2024
3b65a2b
detect: integer keywords now support hexadecimal
catenacyber Dec 1, 2023
06c5dd3
detect: integer keywords now accept negated ranges
catenacyber Nov 30, 2023
370ac05
detect/integer: rust derive for enumerations
catenacyber Dec 22, 2023
d05f3ac
detect: integer keywords now accept bitmasks
catenacyber Dec 30, 2023
b8bc2c7
doc: integer keywords
catenacyber Jan 4, 2024
244a35d
userguide: fix explanation about bsize ranges
jufajardini Jan 24, 2024
8fc0faf
util/streaming-buffer: remove unneeded fn param
inashivb Jan 15, 2024
f6e1a20
detect: dns.opcode as first-class integer
catenacyber Nov 30, 2023
6de885c
ci: update scorecard analysis workflow
catenacyber Jan 30, 2024
264101b
detect: remove unused port in SigGroupHeadInitData
inashivb Feb 1, 2024
395c74d
detect/engine: set max sig ID per SGH
inashivb Feb 1, 2024
7f89aaf
detect: remove unneeded max_idx
inashivb Feb 1, 2024
db99c45
detect: errors on 65k filestore signatures
catenacyber Oct 9, 2023
aff54f2
http2: handle reassembly for continuation frames
catenacyber Jan 25, 2024
8f63a8f
http1: remove transactions from their list
catenacyber Apr 7, 2023
4175680
http1: configurable max number of live tx per flow
catenacyber Oct 17, 2023
8f73a0a
smtp: config limit maximum number of live transactions
catenacyber Nov 9, 2023
61f2e4e
smtp: avoid creating empty transaction
catenacyber Nov 14, 2023
bc422c1
detect: fixes use-after-free with http.request_header
catenacyber Nov 7, 2023
f52c033
pgsql: parse auth message within its bound
catenacyber Oct 17, 2023
86de7cf
pgsql: parse only PDU when type is unknown
catenacyber Oct 17, 2023
80abc22
http2: limit number of concurrent transactions
catenacyber Nov 9, 2023
7f5e98e
ci: authors check using OISF repo
catenacyber Feb 7, 2024
68b0052
rust: fix clippy ptr_arg warnings
catenacyber Feb 8, 2024
f800ed0
detect-http: add superfluous alloc check for cocci
jasonish Feb 8, 2024
b48ec8a
detect/http_header: fix leak on realloc failure
catenacyber Feb 8, 2024
7e4dba7
detect/http: report error on alloc failure
victorjulien Feb 9, 2024
231c892
util/mime: fix memory leak
jtstrs Feb 7, 2024
364adee
netmap: Release lock to avoid deadlock
jlucovsky Feb 8, 2024
ee6208b
config/nss: Remove libnspr/libnss traces
jlucovsky Jan 30, 2024
9fe00ff
config/jansson: Remove excess libjansson mentions
jlucovsky Jan 30, 2024
7956fa5
multi-tenant: fix loader dead lock
victorjulien Feb 11, 2024
edfda9f
rust: weekly cargo audit and update
jasonish Feb 12, 2024
6922fef
github-ci: move centos-7 build to its own workflow
jasonish Feb 12, 2024
8522256
github-ci: use all cores available
jasonish Feb 9, 2024
5bfaeb3
github-ci: update {download,upload} artifact actions
jasonish Feb 12, 2024
32d55fe
github-ci: update actions/cache
jasonish Feb 12, 2024
e786297
github-ci: update actions/checkout
jasonish Feb 12, 2024
49834ea
github-ci: update actions/github-script
jasonish Feb 12, 2024
d5a3bfc
github-ci: don't depend on cbindgen when installed from package
jasonish Feb 12, 2024
7c98134
github-ci: cancel previous job for all workflows
jasonish Feb 12, 2024
be07d96
github-actions: bump codecov/codecov-action from 3.1.1 to 4.0.1
dependabot[bot] Feb 12, 2024
7881e85
github-actions: bump github/codeql-action from 2 to 3
dependabot[bot] Feb 13, 2024
f9a4e9c
codeql: add security-extended query suite
0xEniola Jan 26, 2024
e891ef3
doc: add pcap file logging variable details
jmtaylor90 Jan 31, 2024
2a1a70b
threads/mutex: Ensure mutex held before signaling
jlucovsky Feb 4, 2024
c99d93c
app-layer/template: use a max number of txs
catenacyber Feb 12, 2024
3a7a4cd
http: code simplification
catenacyber Jan 27, 2024
cc2eb2d
dpdk: sanitize integer overflow in the configuration
Feb 11, 2024
c65ff35
dpdk: max cache size should be lower than one of the constraints
Feb 11, 2024
356f9ff
doc: mention the limited number of RX/TX descriptors on Intel NICs
lukashino Feb 11, 2024
abbd507
security: update policy wrt CVE ID's
victorjulien Feb 10, 2024
a87943d
github-ci: apply read-only permissions to more workflows
jasonish Feb 13, 2024
c7cb3e9
dependabot: ignore actions/{cache,checkout} v3
jasonish Feb 13, 2024
5c686af
dependabot: disable rust checks
jasonish Feb 13, 2024
2242d10
github-ci: fix authors check with special characters
jasonish Feb 13, 2024
3c06457
detect/tls.certs: fix direction handling
victorjulien Jan 27, 2024
fa98c48
github-actions: bump github/codeql-action from 2.24.0 to 3.24.1
dependabot[bot] Feb 13, 2024
f9a20da
mqtt: Improve frame parsing w/mult. PDUs
jlucovsky Jan 3, 2024
2d7c3d8
multi-tenant: fix coverity warning
victorjulien Feb 13, 2024
41a6211
ci: right sha for authors check
catenacyber Feb 13, 2024
63caa0b
detect: respect directionality for filestore
catenacyber Jan 25, 2024
17f9d7a
detect-engine-iponly: improve ip list performance
cccs-sadugas Dec 29, 2023
b8b8aa6
stats: Do not expand dots of tm_name
awelzel Feb 5, 2024
08db0f3
stats: Add unittest for basic stats serialization
awelzel Feb 8, 2024
7477307
multi-tenant: remove futile mutex lock
inashivb Feb 15, 2024
5a1a32b
eve/stats: add description for common fields
inashivb Feb 5, 2024
1816e98
eve/stats: add description for applayer errors
inashivb Feb 5, 2024
8817514
eve/stats: add description for expectations
inashivb Feb 5, 2024
487ba82
eve/stats: add description for applayer flows
inashivb Feb 9, 2024
6198ea5
github-ci: use all cpus for coccinelle checks
jasonish Feb 13, 2024
f7114b7
cocci/run-check: log if parallel command is not found
jasonish Feb 13, 2024
1c11a19
stream: decouple stream.bypass dependency from tls bypass
msdean Jun 27, 2023
6bddaef
userguide: update encrypted traffic bypass
msdean Jun 27, 2023
84afef8
Rebase to master, redmine ticket https://redmine.openinfosecfoundatio…
msdean Feb 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Contributing to Suricata
========================

We're happily taking patches and other contributions. The process is documented at
[Contribution Process](https://docs.suricata.io/en/latest/devguide/codebase/contributing/contribution-process.html). Please have a look at this document before submitting.
[Contribution Process](https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html). Please have a look at this document before submitting.

Contribution Agreement
----------------------
Expand Down
6 changes: 4 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Make sure these boxes are signed before submitting your Pull Request -- thank you.

- [ ] I have read the contributing guide lines at https://docs.suricata.io/en/latest/devguide/codebase/contributing/contribution-process.html
- [ ] I have signed the Open Information Security Foundation contribution agreement at https://suricata.io/about/contribution-agreement/
- [ ] I have read the contributing guide lines at
https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html
- [ ] I have signed the Open Information Security Foundation contribution agreement at
https://suricata.io/about/contribution-agreement/ (note: this is only required once)
- [ ] I have updated the user guide (in doc/userguide/) to reflect the changes made (if applicable)

Link to [redmine](https://redmine.openinfosecfoundation.org/projects/suricata/issues) ticket:
Expand Down
11 changes: 5 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/rust"
schedule:
interval: "daily"
commit-message:
prefix: "rust:"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "github-actions:"
ignore:
- dependency-name: "actions/cache"
versions: ["3.x"]
- dependency-name: "actions/checkout"
versions: ["3.x"]
7 changes: 3 additions & 4 deletions .github/workflows/authors-done.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- run: echo "Author check is complete"

- name: Download artifact new authors
uses: actions/github-script@v6
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
with:
script: |
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
Expand All @@ -38,14 +38,13 @@ jobs:
fi
- name: Comment on PR
if: ${{ env.new_authors == 'yes' }}
uses: actions/github-script@v6
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
let fs = require('fs');
let issue_number = Number(fs.readFileSync('./pr-number.txt'));
let new_authors = String(fs.readFileSync('./new-authors.txt'));
let msg = 'NOTE: This PR may contain new authors:\n\n```\n' + new_authors + '```';
let msg = 'NOTE: This PR may contain new authors.';
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down
28 changes: 15 additions & 13 deletions .github/workflows/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,33 @@ name: New Authors Check
on:
pull_request:

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-id:
name: New Author Check
runs-on: ubuntu-latest
steps:
- name: Checkout PR code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- run: sudo apt -y install git
- run: git clone https://github.com/${{ github.repository }}
- run: git remote add author ${{ github.event.pull_request.head.repo.html_url }}
working-directory: suricata
- run: git fetch author
working-directory: suricata
- run: git checkout author/${{ github.event.pull_request.head.ref }}
working-directory: suricata
- name: Export known authors from master branch
run: git log --format="%an <%ae>" origin/master | sort | uniq > ../authors.txt
working-directory: suricata
run: git log --format="%an <%ae>" origin/master | sort | uniq > authors.txt
- name: Export authors from new commits
run: git log --format="%an <%ae>" origin/${GITHUB_BASE_REF}... | sort | uniq > ../commit-authors.txt
working-directory: suricata
run: git log --format="%an <%ae>" ${{ github.event.pull_request.base.sha }}... | sort | uniq > commit-authors.txt
- name: Check new authors
run: |
touch new-authors.txt
while read -r author; do
echo "Checking author: ${author}"
if ! grep -q "^${author}\$" authors.txt; then
if ! grep -qFx "${author}" authors.txt; then
echo "ERROR: ${author} NOT FOUND"
echo "::warning ::New author found: ${author}"
echo "${author}" >> new-authors.txt
Expand All @@ -39,7 +41,7 @@ jobs:
- run: echo ${{ github.event.number }} > new-authors/pr-number.txt
- run: ls -l
- name: Upload new authors
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: new-authors
path: new-authors
Expand Down
177 changes: 177 additions & 0 deletions .github/workflows/build-centos-7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
name: build-centos-7

on:
push:
pull_request:
workflow_dispatch:
inputs:
LIBHTP_REPO:
LIBHTP_BRANCH:
SU_REPO:
SU_BRANCH:
SV_REPO:
SV_BRANCH:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: read-all

env:
DEFAULT_SV_REPO: https://github.com/OISF/suricata-verify
DEFAULT_SV_BRANCH: master
DEFAULT_CFLAGS: "-Wall -Wextra -Werror -Wno-unused-parameter -Wno-unused-function"

jobs:
centos-7:
runs-on: ubuntu-latest
container: centos:7
steps:
- name: Cache cargo registry
uses: actions/[email protected]
with:
path: ~/.cargo
key: ${{ github.job }}-cargo

- name: Cache RPMs
uses: actions/[email protected]
with:
path: /var/cache/yum
key: ${{ github.job }}-yum

- name: Determine number of CPUs
run: echo CPUS=$(nproc --all) >> $GITHUB_ENV

- run: |
yum -y install epel-release
yum -y install \
autoconf \
automake \
cargo \
curl \
diffutils \
file-devel \
gcc \
gcc-c++ \
git \
jansson-devel \
jq \
lua-devel \
libtool \
libyaml-devel \
libnfnetlink-devel \
libnetfilter_queue-devel \
libnet-devel \
libcap-ng-devel \
libevent-devel \
libmaxminddb-devel \
libpcap-devel \
lz4-devel \
make \
nss-devel \
pcre2-devel \
pkgconfig \
python36-PyYAML \
rust \
sudo \
which \
zlib-devel
- name: Parse repo and branch information
env:
# We fetch the actual pull request to get the latest body as
# github.event.pull_request.body has the body from the
# initial pull request.
PR_HREF: ${{ github.event.pull_request._links.self.href }}
run: |
if test "${PR_HREF}"; then
body=$(curl -s "${PR_HREF}" | jq -r .body | tr -d '\r')

echo "Parsing branch and PR info from:"
echo "${body}"

LIBHTP_REPO=$(echo "${body}" | awk -F = '/^LIBHTP_REPO=/ { print $2 }')
LIBHTP_BRANCH=$(echo "${body}" | awk -F = '/^LIBHTP_BRANCH=/ { print $2 }')

SU_REPO=$(echo "${body}" | awk -F = '/^SU_REPO=/ { print $2 }')
SU_BRANCH=$(echo "${body}" | awk -F = '/^SU_BRANCH=/ { print $2 }')

SV_REPO=$(echo "${body}" | awk -F = '/^SV_REPO=/ { print $2 }')
SV_BRANCH=$(echo "${body}" | awk -F = '/^SV_BRANCH=/ { print $2 }')
else
echo "No pull request body, will use inputs or defaults."
LIBHTP_REPO=${{ inputs.LIBHTP_REPO }}
LIBHTP_BRANCH=${{ inputs.LIBHTP_BRANCH }}
SU_REPO=${{ inputs.SU_REPO }}
SU_BRANCH=${{ inputs.SU_BRANCH }}
SV_REPO=${{ inputs.SV_REPO }}
SV_BRANCH=${{ inputs.SV_BRANCH }}
fi

# If the _REPO variables don't contain a full URL, add GitHub.
if [ "${LIBHTP_REPO}" ] && ! echo "${LIBHTP_REPO}" | grep -q '^https://'; then
LIBHTP_REPO="https://github.com/${LIBHTP_REPO}"
fi
if [ "${SU_REPO}" ] && ! echo "${SU_REPO}" | grep -q '^https://'; then
SU_REPO="https://github.com/${SU_REPO}"
fi
if [ "${SV_REPO}" ] && ! echo "${SV_REPO}" | grep -q '^https://'; then
SV_REPO="https://github.com/${SV_REPO}"
fi

echo LIBHTP_REPO=${LIBHTP_REPO} | tee -a ${GITHUB_ENV}
echo LIBHTP_BRANCH=${LIBHTP_BRANCH} | tee -a ${GITHUB_ENV}

echo SU_REPO=${SU_REPO} | tee -a ${GITHUB_ENV}
echo SU_BRANCH=${SU_BRANCH} | tee -a ${GITHUB_ENV}

echo SV_REPO=${SV_REPO:-${DEFAULT_SV_REPO}} | tee -a ${GITHUB_ENV}
echo SV_BRANCH=${SV_BRANCH:-${DEFAULT_SV_BRANCH}} | tee -a ${GITHUB_ENV}

- name: Annotate output
run: |
echo "::notice:: LIBHTP_REPO=${LIBHTP_REPO}"
echo "::notice:: LIBHTP_BRANCH=${LIBHTP_BRANCH}"
echo "::notice:: SU_REPO=${SU_REPO}"
echo "::notice:: SU_BRANCH=${SU_BRANCH}"
echo "::notice:: SV_REPO=${SV_REPO}"
echo "::notice:: SV_BRANCH=${SV_BRANCH}"

- name: Install cbindgen
run: |
cargo install --debug cbindgen
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

# Now checkout Suricata for the bundle script.
- name: Checking out Suricata
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

- run: ./scripts/bundle.sh

- name: Fetching suricata-verify
run: |
# Looking for a pull request number. in the SV_BRANCH
# value. This could be "pr/NNN", "pull/NNN" or a link to an
# OISF/suricata-verify pull request.
pr=$(echo "${SV_BRANCH}" | sed -n \
-e 's/^https:\/\/github.com\/OISF\/suricata-verify\/pull\/\([0-9]*\)$/\1/p' \
-e 's/^pull\/\([0-9]*\)$/\1/p' \
-e 's/^pr\/\([0-9]*\)$/\1/p')
if [ "${pr}" ]; then
SV_BRANCH="refs/pull/${pr}/head"
echo "Using suricata-verify pull-request ${SV_BRANCH}"
else
echo "Using suricata-verify branch ${SV_BRANCH}"
fi
git clone --depth 1 ${SV_REPO} suricata-verify
cd suricata-verify
git fetch --depth 1 origin ${SV_BRANCH}
git -c advice.detachedHead=false checkout FETCH_HEAD

- run: ./autogen.sh
- run: ./configure
- run: make -j ${{ env.CPUS }}
- run: python3 ./suricata-verify/run.py -q --debug-failed
- run: make install-full
- run: suricata-update -V
- run: suricatasc -h
Loading