instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
GoogleContainerTools__skaffold__9787
GoogleContainerTools/skaffold
9,787
defect
ef4b0b86657e028b89313459e5c6baa7a2901640
c3839abe1e08a24255a87029b4819d94821f3d7d
Bugfix: Only prune images if changed
I hope I understood this right... **Description** I observed that when using `skaffold dev`, when images were re-built because the dependencies defined in Skaffold changed (I use ko), but didn't result in a new image ID (because the contents hadn't changed - due to dependencies being too broad), then the previous i...
diff --git a/pkg/skaffold/build/local/local.go b/pkg/skaffold/build/local/local.go index 368894b367b..04412a55b2d 100644 --- a/pkg/skaffold/build/local/local.go +++ b/pkg/skaffold/build/local/local.go @@ -113,8 +113,15 @@ func (b *Builder) buildArtifact(ctx context.Context, out io.Writer, a *latest.Ar go func() { ...
1
1
1
[{"id": "G0", "claim": "Could you please add a test for this prune-only-if-changed behaviour?", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleContainerTools__skaffold__9799
GoogleContainerTools/skaffold
9,799
defect
28fb73a72b978f562dd887a3ea8588468754dbc7
5842c8fc819a2e42b1d37c045c6293ffec226948
feat: Add support in Cloud Run for configuring tolerateFailuresUntilDeadline and disabling status checks
Fixes: #9794 **Description** feat: Add support for Cloud Run for configuring `tolerateFailuresUntilDeadline` and disabling status checks, as is done with Kubernetes resources. <!-- Please be sure your PR includes unit tests - we don't merge code that brings down test coverage! Integration tests are sometime...
diff --git a/pkg/skaffold/deploy/cloudrun/deploy.go b/pkg/skaffold/deploy/cloudrun/deploy.go index 0ba4343c62b..a9b679d8185 100644 --- a/pkg/skaffold/deploy/cloudrun/deploy.go +++ b/pkg/skaffold/deploy/cloudrun/deploy.go @@ -69,6 +69,9 @@ type Deployer struct { labeller *label.DefaultLabeller hookRunner ...
1
1
1
[{"id": "G0", "claim": "The status check setting computed in getCloudRunDeployer is stored in the statusCheck variable but never used anywhere else.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleContainerTools__skaffold__9825
GoogleContainerTools/skaffold
9,825
defect
537cb9b081fa5550f633babc2a12662174f15800
fb0c955af351f89f735b75fbf2caeefaa9b7e17e
fix: Update PrintNamespacesList to use a YAML parser for multiple manifest files
Multiple manifests may be defined in a single YAML file. `---` is used to separate the different manifests. Before: * strings.Split("---") is used to break the file into multiple manifests. If a string in the manifest contains "---" (i.e. "name: hello---123"), it will also break on that and won't be able to decode ...
diff --git a/pkg/skaffold/inspect/namespaces/list.go b/pkg/skaffold/inspect/namespaces/list.go index 6a03a61b18f..8452ebff1be 100644 --- a/pkg/skaffold/inspect/namespaces/list.go +++ b/pkg/skaffold/inspect/namespaces/list.go @@ -17,12 +17,14 @@ limitations under the License. package inspect import ( + "bytes" "co...
3
3
2
[{"id": "G0", "claim": "Splitting the manifest textually on `---\\n` will rip valid YAML apart — a `---` inside a quoted string value becomes two invalid documents — so a real YAML parser should be used instead of strings.Split.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
GoogleContainerTools__skaffold__9841
GoogleContainerTools/skaffold
9,841
defect
f460879efa2e0c2c6d14a193791c9483001f149f
dfba3bfad1133a69b93050d13192b92525af25a3
fix: use print-access-token to allow iam impersonation
Fixes: #9839 **Description** The print-identity-token can only print the token of the GCP default authentication's token, but not the token for the impersonated service account. print-access-token can correctly print the impersonated service account's token.
diff --git a/pkg/skaffold/gcp/auth.go b/pkg/skaffold/gcp/auth.go index 1f6547f2f45..8bdba9c1b13 100644 --- a/pkg/skaffold/gcp/auth.go +++ b/pkg/skaffold/gcp/auth.go @@ -23,7 +23,6 @@ import ( "fmt" "os/exec" "sync" - "time" "github.com/docker/cli/cli/config/configfile" "golang.org/x/oauth2" @@ -63,16 +62,15...
2
2
0
[{"id": "G0", "claim": "The error message in tokenSource.Token misspells `gcloud` as `gcould`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "In the 'get credential succeed' case the mock command is chained with a second `AndRunWithOutput` call ...
null
GoogleContainerTools__skaffold__9849
GoogleContainerTools/skaffold
9,849
defect
4ef420a8a5670824f0c1bf054a876eeed30a028e
2c3357b46a9c420c48335bc87347f043742d6fd1
fix: open skaffold-overrides.yaml: no such file or directory since up grading to skaffold "v2.15.0" (#9788)
<!-- Thank you for your contribution! --> <!-- Include if applicable: --> Fixes: #9788 <!-- tracking issues that this PR will close --> **Description** The creation of `skaffold-overrides.yaml` was handled inside the Helm template arguments generation function. The `defer`to delete this file was also perfor...
diff --git a/pkg/skaffold/render/renderer/helm/args.go b/pkg/skaffold/render/renderer/helm/args.go index f9eb51457b7..21e59424d40 100644 --- a/pkg/skaffold/render/renderer/helm/args.go +++ b/pkg/skaffold/render/renderer/helm/args.go @@ -17,14 +17,10 @@ limitations under the License. package helm import ( - "fmt" - ...
4
4
0
[{"id": "G0", "claim": "CheckFileNotExist treats any os.Stat error as proof the file is absent; it should fail the test unless the error is specifically a not-exist error.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CheckFileExist only fails on o...
null
GopeedLab__gopeed__1219
GopeedLab/gopeed
1,219
defect
dbe37befa3574600a060e51ba16af3557aa5e372
bfb79dfc4064fc1c242334c3ddd7af589cb3c833
feat: add config for auto-torrent
## Implementation Complete ✅ - [x] Backend changes (Go) - [x] Add archive and torrent fields to HTTP protocol `config` struct (`internal/protocol/http/config.go`) - [x] Keep HTTP protocol config private (not exposed) - [x] Update downloader logic to read from `OptsExtra` (`pkg/download/downloader.go`) - [x] Se...
diff --git a/internal/protocol/http/config.go b/internal/protocol/http/config.go index fdabb2926..27d27cc8f 100644 --- a/internal/protocol/http/config.go +++ b/internal/protocol/http/config.go @@ -1,7 +1,8 @@ package http -type config struct { +type Config struct { UserAgent string `json:"userAgent"` Connec...
5
3
3
[{"id": "G0", "claim": "The auto-torrent lookup in watch() should use the fetcher's own name (e.g. fetcher.Name()) to read its protocol config instead of the hardcoded \"http\" key.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A unit test fails an...
null
GothenburgBitFactory__taskchampion-sync-server__126
GothenburgBitFactory/taskchampion-sync-server
126
defect
4de5c9a345616cc05f2ada2ab70e47763bfbc0e2
093446e5fb3877ac2dfdf7bb363b3d60f7034243
Make Storage methods async
This will better support concurrent requests. All of the non-test code is a straightforward transformation. The only tricky part was the tests in `core/src/server.rs`. The existing callback-based `setup` and `av_setup` functions didn't work well with async (I am not entirely sure why), so I refactored them into util...
diff --git a/Cargo.lock b/Cargo.lock index 0935c81..f96e478 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -308,6 +308,17 @@ version = "1.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487" +[[package]] +name = "async-trai...
2
1
0
[{"id": "G0", "claim": "The async API as designed may not be enough for the postgres implementation: Storage may need to be ?Send and StorageTxn may need a lifetime bound tied to that of the Storage.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Test code...
null
GothenburgBitFactory__taskchampion-sync-server__64
GothenburgBitFactory/taskchampion-sync-server
64
defect
50d028f45e0a943d9b1faad14099d5d01e03faa3
8975b69c1d5cd8a23af0967a537fe47bc95989db
Support sequential consistency in SQLite implementation
This is a bit tricky because the `Storage` trait is `Send + Sync`, but an SQLite connection is neither. Those bounds will be useful if using `Server` from a multi-threaded web framework, so I think it's best to keep them and adapt SQLite to suit. Since the SQLite implementation is not intended for large-scale use, t...
diff --git a/core/src/inmemory.rs b/core/src/inmemory.rs index 23cea4a..9ed0f0b 100644 --- a/core/src/inmemory.rs +++ b/core/src/inmemory.rs @@ -21,7 +21,7 @@ struct Inner { /// /// This is not for production use, but supports testing of sync server implementations. /// -/// NOTE: this does not implement transaction...
2
2
0
[{"id": "G0", "claim": "The doc comment's phrase \"panics on transaction rollback\" describes the Drop implementation in a way no one else is likely to understand, and should be rephrased.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's ...
null
GothenburgBitFactory__taskwarrior__2472
GothenburgBitFactory/taskwarrior
2,472
defect
d0c4350c2f6809a9b9d8d0a38deb1ccbeddab1dd
303b58227a2a5bdb5eeacdff74762ba4f975e093
clang-tidy: loop conversion
Found with modernize-loop-convert Signed-off-by: Rosen Penev <rosenp@gmail.com>
diff --git a/src/Context.cpp b/src/Context.cpp index 78c44f00b5..d7f457ec40 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -564,8 +564,8 @@ int Context::initialize (int argc, const char** argv) // //////////////////////////////////////////////////////////////////////////// - for (unsigned int i = ...
5
3
1
[{"id": "G0", "claim": "The new `all.reserve(sizeof(operators))` reserves the array's memory size in bytes (including per-element overhead) rather than the number of elements, and the NUM_OPERATORS constant made for that should be used instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco...
null
GothenburgBitFactory__taskwarrior__3407
GothenburgBitFactory/taskwarrior
3,407
defect
eaef05ee95934e74db0f19dd1470c8424b17962c
942855cc9b0c00ba8d7bc98e99593c9819e3145e
Renaming test files according to their language
#### Description This PR updates the naming convention of the Python and shell test files to be consistent with the one used by the C++ test files. E.g., `test_name.t` becomes `test_name.t.py` or `test_name.t.sh`. #### Additional information - [x] I changed C++ code or build infrastructure. Please run the ...
diff --git a/test-namer/README b/test-namer/README new file mode 100644 index 0000000000..64b40e8d3e --- /dev/null +++ b/test-namer/README @@ -0,0 +1,10 @@ +Test Namer + +The utility functions in this directory were intended for one-time use: to rename test files according to their language. +Originally, the python and...
4
3
0
[{"id": "G0", "claim": "The pre-existing `*.t` glob pattern (together with `*.t.exe`) in the test-collection scripts may no longer be needed - are there any remaining `*.t` files?", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The test-namer u...
null
GothenburgBitFactory__taskwarrior__3708
GothenburgBitFactory/taskwarrior
3,708
defect
0b286460b69042b1ed409b981e42ea34c6172574
a954688d804ae85adb7568eb24adc81d34993ef9
Check Datetime addition when performing recurrence
If the Datetime arithmetic overflows, this just stops recurrence entirely. This means that `recur:70y` will basically not recur. And, it means that a repeated recurrence of a more reasonable period (say, `recur:2d`) will stop in 2038 on 32-bit systems. Fixes #81.
diff --git a/src/main.h b/src/main.h index 9d15a09fa..bae12e977 100644 --- a/src/main.h +++ b/src/main.h @@ -35,13 +35,14 @@ #include <algorithm> #include <list> #include <map> +#include <optional> #include <string> #include <vector> // recur.cpp void handleRecurrence(); void handleUntil(); -Datetime getNextR...
2
2
0
[{"id": "G0", "claim": "The pure function checked_add is a good candidate for a unit test and should get one.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment in checked_add misspells \"check\" as \"chek\".", "category": "maintainability", "ve...
null
GrapesJS__grapesjs__4983
GrapesJS/grapesjs
4,983
defect
a2ca4b1a93520e61cc7e49a42f103d5887e33cf2
1781a817e35e0a1f9f98ac8a16faeec829734969
Refactor Traits Collection
I want to work on making the traits better, but first I wanted to tidy the current code.
diff --git a/.editorconfig b/.editorconfig index 99745b0035..8b10eb01af 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,3 +8,11 @@ insert_final_newline = true charset = utf-8 indent_style = space indent_size = 2 +quote_type = single + +[*.ts] +charset = utf-8 +indent_style = space +indent_size = 2 +quote_type =...
2
2
2
[{"id": "G0", "claim": "Removing the logic that prefixed config.stylePrefix with pStylePrefix makes traits render incorrectly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "With these changes to Traits, undo/redo on traits doesn't work properly.", ...
null
GrapesJS__grapesjs__5890
GrapesJS/grapesjs
5,890
defect
a7d4942e57ebf43344fe386b49a425f585fb25e5
848fbca1f7888342f733e0a70bd22031886f8763
Show style applied on tag (p, span, div) and private selectors as parent rules instead of hiding them
### Current behavior The current behavior describe below can be tested on this JSFiddle : https://jsfiddle.net/728urdh3/ #### Context I add a custom component (`sectionBlock`) that have styles by the `section` tag name and the private selector `ed-layout-div`. ```css section { width: 940px; min-heigh...
diff --git a/src/style_manager/index.ts b/src/style_manager/index.ts index 196c20944d..adeec98b8d 100644 --- a/src/style_manager/index.ts +++ b/src/style_manager/index.ts @@ -597,27 +597,65 @@ export default class StyleManager extends ItemManagerModule< const cmp = target.toHTML ? target : target.getComponent();...
4
4
2
[{"id": "G0", "claim": "The rewritten rulesBySelectors should keep the early `!values.length ? []` return, because without it the code loops over all CSS rules even when `values` is empty, which previously caused performance issues.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introd...
null
GrapesJS__grapesjs__6132
GrapesJS/grapesjs
6,132
defect
bca8dc572c01e8b0eef5ab729bcf7dd3bab5ba16
05eb518e7b180d70790234bf7453d297ac3d40bf
fix: remove id reassign in data sources
Related to: * https://github.com/GrapesJS/grapesjs/discussions/5956#discussioncomment-10559499 Removes the id reassign, adds coverage for discussed issue.
diff --git a/packages/core/package.json b/packages/core/package.json index d34a87e023..85a8197ec7 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -41,11 +41,13 @@ }, "devDependencies": { "@types/markdown-it": "14.1.2", + "@types/pretty": "2.0.3", "grapesjs-cli": "4.1.3", ...
2
1
1
[{"id": "G0", "claim": "Consider allowing users to specify, via a domComponent option on a data-variable, which DOM component gets injected instead of always a div.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should not rely on the external jso...
null
GrapesJS__grapesjs__6160
GrapesJS/grapesjs
6,160
defect
d48e1e34a9fa363dcb83fdcca53a89563db17063
0350016bf89d5a5f770890a805a1708d71531799
feat: add DataSources to project json storage
This PR introduces the ability to store DataSources in the project JSON, allowing for persistent data across project saves and loads. Key additions include the `skipFromStorage` flag and updated store and load methods in the DataSourceManager.
diff --git a/docs/api/data_source_manager.md b/docs/api/data_source_manager.md index e1cac5e889..0419f1530e 100644 --- a/docs/api/data_source_manager.md +++ b/docs/api/data_source_manager.md @@ -126,6 +126,22 @@ const [dataSource, dataRecord, propPath] = dsm.fromPath('my_data_source_id.recor Returns **[DataSource?, Da...
3
3
3
[{"id": "G0", "claim": "Data sources should be stored in the project JSON by default, with an opt-out (e.g. a `skipFromStorage` key) instead of the current opt-in `shouldStoreInProject` key defaulting to false.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
GrapesJS__grapesjs__6210
GrapesJS/grapesjs
6,210
defect
d74c3f18a873bac5bd9658659932acf165c91ef5
020a874c5bde8e6d5318a1995b5b075e08fb0471
feat: add telemetry tracking
You can disable this with options.telemetry: false. We aim on adding metrics to the lib to provide a better service.
diff --git a/packages/core/src/editor/config/config.ts b/packages/core/src/editor/config/config.ts index 3b55d45715..1f0673ac0f 100644 --- a/packages/core/src/editor/config/config.ts +++ b/packages/core/src/editor/config/config.ts @@ -428,6 +428,13 @@ export interface EditorConfig { */ colorPicker?: ColorPickerO...
7
6
1
[{"id": "G0", "claim": "Asks what the best way to hook into editor load is — on the main editor instance or the model — and which event is appropriate for tracking the EDITOR:LOAD event.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A static api key sho...
null
Graylog2__graylog2-server__22205
Graylog2/graylog2-server
22,205
defect
e9d99d02c3a911345d1cb5d1661a4fe0deb38f70
f871b9c8cbcc229d4061406cbe2829e268bb98ce
Adds remove_fields_by_value pipeline rule
## Description <!--- Describe your changes in detail --> Adds a pipeline rule that can remove multiple fields in a message based on the value of the fields. Can be done with either a list of string values for an exact match or a regex pattern. ## Motivation and Context <!--- Why is this change required? What prob...
diff --git a/changelog/unreleased/issue-22200.toml b/changelog/unreleased/issue-22200.toml new file mode 100644 index 000000000000..000c1dc3e083 --- /dev/null +++ b/changelog/unreleased/issue-22200.toml @@ -0,0 +1,5 @@ +type = "a" +message = "Added remove_fields_by_value pipeline rule." + +pulls = ["22205"] +issues = [...
7
5
3
[{"id": "G0", "claim": "The rule iterates over every field of every message, which could slow down processing for messages with many fields, and the author proposed an optional `field_names` parameter (with coffee-squirrel suggesting a more flexible `field_names_pattern` alternative) to limit the cleanup to a subset of...
null
Graylog2__graylog2-server__22409
Graylog2/graylog2-server
22,409
defect
1e0fba7807f6cd7fe326408b6826222bd64c321f
89e72c9282432eae5f959de790148ea45b985f8c
Fix: Adding correct handling for streams filter in legacy searches
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Prior to this PR the legacy searches would add stream filters in the query string which is not correct/consistent with other parts of Graylog and does not work. This PR adds a new API pa...
diff --git a/changelog/unreleased/pr-22409.toml b/changelog/unreleased/pr-22409.toml new file mode 100644 index 0000000000000..1546f533d338e --- /dev/null +++ b/changelog/unreleased/pr-22409.toml @@ -0,0 +1,5 @@ +type = "f" +message = "Adding correct handling for streams filter in legacy searches." + +issues = ["21836"...
2
2
1
[{"id": "G0", "claim": "At least one test should actually test scroll() with a streams parameter different from Set.of().", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The streams parameter description should be changed to 'Comma separated list of stre...
null
Graylog2__graylog2-server__22645
Graylog2/graylog2-server
22,645
defect
dce9b4373ad1a855a699a3504c8e6fdde39dae8d
7b8d4b8eed364b9bfe4df2e373c97a746146f12f
Fix rule fragment loading in rule builder
## Description Rule fragments were initialized in the ActionParser/ConditionParser only on startup due to them being singletons. As these fragments are created via a migration, they are missing on freshly installed setups and only available on the second start. To fix this, the fragments are now always retrieved f...
diff --git a/changelog/unreleased/pr-22645.toml b/changelog/unreleased/pr-22645.toml new file mode 100644 index 000000000000..e3ee56754617 --- /dev/null +++ b/changelog/unreleased/pr-22645.toml @@ -0,0 +1,5 @@ +type = "f" +message = "Fixed using certain conditions and actions in the rule builder after inital setup of G...
1
1
0
[{"id": "G0", "claim": "Give the local `freemarkerConfiguration` variable in initializeFragmentTemplates a different name than the class member for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Graylog2__graylog2-server__22766
Graylog2/graylog2-server
22,766
defect
d0d929ea5f2b5c52a34f6f6b0cc29ab527dea53d
5a22fb4f976a4ea889734fb74cb57563f27123ec
Handle stream rename/deletion in input routing
/jpd Graylog2/graylog-plugin-enterprise#10956 <!--- Provide a general summary of your changes in the Title above --> Update ISW routing when a stream is renamed or deleted. ## Description <!--- Describe your changes in detail --> We introduce new events and handlers to keep things consistent. Rename: - updat...
diff --git a/changelog/unreleased/issue-22131.toml b/changelog/unreleased/issue-22131.toml new file mode 100644 index 000000000000..f9a843e89ba8 --- /dev/null +++ b/changelog/unreleased/issue-22131.toml @@ -0,0 +1,5 @@ +type="a" +message="Update system generated routing when corresponding stream is renamed or deleted."...
4
2
0
[{"id": "G0", "claim": "To keep the number of changes smaller, the record could keep a static create() factory method instead of dropping it entirely.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "replaceStreamName() duplicates replaceInputName() almost l...
null
Graylog2__graylog2-server__22872
Graylog2/graylog2-server
22,872
defect
17468be528b08d187161bbd7520cc13457dc4ed4
d819aeb76813e93e9d97aeecdb14b74414556fef
Add support for Forwarded-For and Real-IP headers in HTTP inputs
/prd https://github.com/Graylog2/graylog-plugin-enterprise/pull/11072 ## Description This change adds a netty channel handler that extracts the original IP from various headers if configured appropriately. The default settings behave as before, users can enable handling `X-Forwarded-For`/`Forwarded` headers, optio...
diff --git a/changelog/unreleased/pr-22872.toml b/changelog/unreleased/pr-22872.toml new file mode 100644 index 000000000000..c0aa09baae65 --- /dev/null +++ b/changelog/unreleased/pr-22872.toml @@ -0,0 +1,4 @@ +type = "a" +message = "Add support for X-Forwarded-For/Forwarded/X-Real-IP type headers in HTTP inputs to bet...
2
2
2
[{"id": "G0", "claim": "With require_trusted_proxies enabled, a forwarded-for chain that contains only the client IP (the relaying proxy does not list itself, e.g. traefik) is accepted without any proxy being checked against the trusted-proxies set, so a message goes through with an overridden source IP when it should ...
null
Graylog2__graylog2-server__23133
Graylog2/graylog2-server
23,133
defect
09d74c243a8073702cd9ae35c206749ef57cf3f5
4b6386449e7ca1b47d782026dc8f2b40dff03d62
Use timezone of current user for time bucketing in aggregations.
## Description <!--- Describe your changes in detail --> ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> This PR changes date-based bucketing in aggregations so that the timezone of the current user...
diff --git a/changelog/unreleased/issue-23091.toml b/changelog/unreleased/issue-23091.toml new file mode 100644 index 000000000000..dc674b96b13a --- /dev/null +++ b/changelog/unreleased/issue-23091.toml @@ -0,0 +1,5 @@ +type = "fixed" +message = "Use timezone of current user for time bucketing in aggregations." + +issu...
1
1
0
[{"id": "G0", "claim": "The changelog/unreleased/pr-23133.toml entry is probably not needed because a related issue exists, so per changelog docs the file should use the issue-<issue-number>.toml naming instead of the pr-<pr-number>.toml format.", "category": "maintainability", "verdict": "supported", "priority": "P2",...
null
Graylog2__graylog2-server__23333
Graylog2/graylog2-server
23,333
defect
6ddbc42cd9a6ff668ef220e45f99fea17c68c5b0
026a2d9593ef0c860e401bdc1b3218430896f5f0
Make security stricter for creation of tokens.
<!--- Provide a general summary of your changes in the Title above --> With this migration, the Users' Configuration on creation of tokens is made stricter. After the migration was applied, only admins are allowed to create a new token. Also, the time-to-live for a new token is set to 30 days. Already existing tokens ...
diff --git a/UPGRADING.md b/UPGRADING.md index 5fcfde757c4e..001ace4a77c1 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -28,6 +28,8 @@ is now used as the primary color for elements like buttons and badges in the UI. all existing users with the `Reader` role to ensure backwards compatibility. New users that will be...
1
1
1
[{"id": "G0", "claim": "The migration does not run because V20250804104500_TightenTokenSecurity is not registered in MigrationsModule.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
Graylog2__graylog2-server__23404
Graylog2/graylog2-server
23,404
defect
a7d1a3083d645fa67a0d2f607f56b8492a87f984
1bf4a173c6578111b38121f94453f8d29c24559b
Improve Fortigate KV parsing behavior to avoid generating invalid fields
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> In 6.x, KV-parsing is very simple: we scan the entire message looking for `<key>=<value>` patterns. A message field is generated for each of these. This falls down, when `<value>` itsel...
diff --git a/changelog/unreleased/issue-22886.toml b/changelog/unreleased/issue-22886.toml new file mode 100644 index 000000000000..e62404fcc252 --- /dev/null +++ b/changelog/unreleased/issue-22886.toml @@ -0,0 +1,5 @@ +type = "a" +message = "Prevent nested key/value pair parsing in Fortigate Syslog messages." + +pulls...
1
1
1
[{"id": "G0", "claim": "The test assertion's expected field name is missing an A: it should check that getField(\"AF1QipMv0l3HYdRc5_YuViCfIIbOZz6ipH4Jb6QV6ngM\") is null instead of getField(\"F1QipMv0l3HYdRc5_YuViCfIIbOZz6ipH4Jb6QV6ngM\").", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
Graylog2__graylog2-server__23685
Graylog2/graylog2-server
23,685
defect
4997d1fe3d58ab3eab9a39a5cb3c3756a78e754c
7d77ea0a23441b694cfe448effebf02539c205d7
Update AWS java SDK to version 2.33.13
Updates `software.amazon.awssdk:bom` to version `2.33.11`. Updating beyond version `2.29.x` wasn't possible before because it required code changes in the Graylog Enterprise plugin to ensure backward compatibility with third-party S3-compatible storage solutions. With those changes now implemented, we can update th...
diff --git a/graylog2-server/src/test/java/org/graylog/testing/completebackend/S3MinioContainer.java b/graylog2-server/src/test/java/org/graylog/testing/completebackend/S3MinioContainer.java index d1391a8e1209..046b053adfc8 100644 --- a/graylog2-server/src/test/java/org/graylog/testing/completebackend/S3MinioContainer....
1
1
0
[{"id": "G0", "claim": "Remove the dependabot constraint on the AWS SDK version in .github/dependabot.yml and restore the `update-types` setting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
Graylog2__graylog2-server__24717
Graylog2/graylog2-server
24,717
defect
45310530f07bbd9a10ad291db389fc467a78d5ea
2db5412e0e67b2c4c485227e467bc1fd0d55799d
fix(mcp): protocol version negotiation
This PR: - Implements spec-compliant version negotiation: silent fallback during initialization (i.e. `200 OK` response with server-supported protocol version) and strict `MCP-Protocol-Version` header validation for subsequent requests (i.e. `400 Bad Request` responses for invalid/unsupported protocol versions). - ...
diff --git a/changelog/unreleased/pr-24717.toml b/changelog/unreleased/pr-24717.toml new file mode 100644 index 000000000000..df4733a659e0 --- /dev/null +++ b/changelog/unreleased/pr-24717.toml @@ -0,0 +1,25 @@ +# PLEASE REMOVE COMMENTS AND OPTIONAL FIELDS! THANKS! + +# Entry type according to https://keepachangelog.co...
3
3
0
[{"id": "G0", "claim": "The unused/default placeholder fields in changelog/unreleased/pr-24717.toml should be removed because they would otherwise end up in the changelog.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The version fallback `supp...
null
Graylog2__graylog2-server__25296
Graylog2/graylog2-server
25,296
defect
90a797f8ffe54fa8aadde6feddf0c0c2f72af470
1c5c63f1fc692a9ac60e83efbb212cf6a5f323e7
Introduce InputStopped Event to Distinguish Stop from Delete
## Problem Graylog emitted an `InputDeleted` event both when an input was **stopped** and when it was **deleted**. This made it impossible for downstream components to distinguish between the two lifecycle transitions. Consequences: - `MongoInputStatusService` needed a database lookup workaround to determine if ...
diff --git a/graylog2-server/src/main/java/org/graylog2/inputs/InputEventListener.java b/graylog2-server/src/main/java/org/graylog2/inputs/InputEventListener.java index ac7f269206e8..2579286e8d04 100644 --- a/graylog2-server/src/main/java/org/graylog2/inputs/InputEventListener.java +++ b/graylog2-server/src/main/java/o...
6
5
2
[{"id": "G0", "claim": "The new tests create a ScheduledExecutorService that is never shut down, which can leak threads across the test suite and cause hangs or flakiness; capture it in a local/field variable and shut it down in a finally block or @AfterEach.", "category": "testing", "verdict": "supported", "priority":...
null
Graylog2__graylog2-server__25501
Graylog2/graylog2-server
25,501
defect
8de5c9f6d2a753d776ffdecc1e67ebff98aa5d64
aaeafa780cedf26636e672df6414d1b6b24c3c4c
Add input-indexed traffic counter for license accounting
/nocl /jpd Graylog2/graylog-plugin-enterprise#13714 ### Summary Introduces a new `input-indexed` traffic metric that tracks the raw input message size of messages that actually get indexed. This is the server-side plumbing that a corresponding enterprise change will use for license accounting. Not all ingeste...
diff --git a/graylog2-server/src/main/java/org/graylog2/indexer/messages/ImmutableMessage.java b/graylog2-server/src/main/java/org/graylog2/indexer/messages/ImmutableMessage.java index 0b2753002ec6..5d14f35637b9 100644 --- a/graylog2-server/src/main/java/org/graylog2/indexer/messages/ImmutableMessage.java +++ b/graylog...
5
2
1
[{"id": "G0", "claim": "In the exclude-today case the test calls verifyDayTrafficVolume(trafficHistogramIncludesToday), so trafficHistogramExcludesToday's contents are never validated and the helper's 31-bucket/partial-today assumptions do not fit; verify the excludes-today histogram and adjust the helper for the omitt...
null
Graylog2__graylog2-server__25533
Graylog2/graylog2-server
25,533
defect
15f204bc2cadf02aecb0f23a360ff0e73e307b06
cf9f8d55e894d7faa257a2140dff54efbee2edfa
fix gl2_input_message_size accuracy for inputs with field duplication
<!--- Provide a general summary of your changes in the Title above --> ## Summary - Add utility for proportional size distribution across split messages ...
diff --git a/graylog2-server/src/main/java/org/graylog/inputs/otel/transport/OTelLogsService.java b/graylog2-server/src/main/java/org/graylog/inputs/otel/transport/OTelLogsService.java index e0c1426e9f85..a8b3115790b5 100644 --- a/graylog2-server/src/main/java/org/graylog/inputs/otel/transport/OTelLogsService.java +++ ...
8
6
0
[{"id": "G0", "claim": "totalSize * weights.get(i) can overflow long; since that is probably not a real-world concern, a comment noting the possibility should be added.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "RawMessage.setInputMessageSize sh...
null
Graylog2__graylog2-server__25555
Graylog2/graylog2-server
25,555
defect
e5728a8e5af5b3c7de715b4f37d68d7fdda6b400
e38e66cf1432c1d10df65b5e6b6f4810bb9070c4
Improve SupportBundleService performance, stability, and test coverage
The support bundle service had several performance and correctness issues that became significant at scale: sequential API fan-outs, thread pool starvation risk, memory pressure from buffering large log files, and no test coverage beyond a few unit cases. ### Parallelism Per-node data collection (thread dump...
diff --git a/full-backend-tests/src/test/java/org/graylog2/rest/resources/system/debug/bundle/SupportBundleResourceIT.java b/full-backend-tests/src/test/java/org/graylog2/rest/resources/system/debug/bundle/SupportBundleResourceIT.java new file mode 100644 index 000000000000..501fb0fefbf8 --- /dev/null +++ b/full-backen...
5
3
1
[{"id": "G0", "claim": "Wrapping ProxiedResourceHelper.requestOnAllNodes(...) in CompletableFuture.supplyAsync(..., executor) can reintroduce thread-pool starvation/deadlock because requestOnAllNodes submits per-node tasks to the same executor and blocks on Future#get; the review asks to call it on the calling thread o...
null
Graylog2__graylog2-server__25567
Graylog2/graylog2-server
25,567
defect
9582e6326fa884d1b747b93a793b71534167de38
229ab27d9c37a0835cb7d8f31ca21292f74eb495
Fix unqualified search for collector instances table (#25479)
## Description SearchQueryParser ignored bsonFilterCreator and dbField overrides when resolving the default search field from EntityAttributes. Unqualified searches (bare terms without a field: prefix) generated queries against the literal default field name instead of using the attribute's custom filter logic, prod...
diff --git a/graylog2-server/src/main/java/org/graylog/collectors/rest/CollectorInstancesResource.java b/graylog2-server/src/main/java/org/graylog/collectors/rest/CollectorInstancesResource.java index ec200fa5f498..1c1c87a9e3b3 100644 --- a/graylog2-server/src/main/java/org/graylog/collectors/rest/CollectorInstancesRes...
1
1
0
[{"id": "G0", "claim": "Add JavaDoc to the List<EntityAttribute> SearchQueryParser constructor explaining its behavior, since unlike the other constructors it does not require the default field to be already mapped.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Graylog2__graylog2-server__25580
Graylog2/graylog2-server
25,580
defect
af0fb89913876a7acb83072b6a85fcf21735179a
8237d48184d82a902091cc44b1b3d397dbee9fae
Improve type-safety for transaction markers
Refactors transaction markers to use typed MongoDB collections. /nocl
diff --git a/graylog2-server/src/main/java/org/graylog/collectors/CollectorsModule.java b/graylog2-server/src/main/java/org/graylog/collectors/CollectorsModule.java index 74579386d9be..2a7babfbf934 100644 --- a/graylog2-server/src/main/java/org/graylog/collectors/CollectorsModule.java +++ b/graylog2-server/src/main/jav...
3
3
0
[{"id": "G0", "claim": "Move the @JsonTypeInfo and @JsonSubTypes annotations from the TransactionMarker payload component onto the MarkerPayload interface, for consistency with how the project usually places type info.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1"...
null
Graylog2__graylog2-server__25606
Graylog2/graylog2-server
25,606
defect
924d742117b5ec17c4d13946cdf1b02eb99ad544
cb8d24dd1a4430a7bd0846936b3c81573ead36e1
Improve Collector certificate handling
- Replace `CertificateService#save` (insert-or-replace) with `#insert` that only supports new entries - Move subject/issuer DN extraction from save-time into `CertificateBuilder`, so `CertificateEntry` fields are fully populated at creation - Add `CertificateService#insert(List<CertificateE...
diff --git a/graylog2-server/src/main/java/org/graylog/collectors/CollectorCaService.java b/graylog2-server/src/main/java/org/graylog/collectors/CollectorCaService.java index 52ba4028f757..f021411eee2a 100644 --- a/graylog2-server/src/main/java/org/graylog/collectors/CollectorCaService.java +++ b/graylog2-server/src/ma...
4
4
0
[{"id": "G0", "claim": "The `List#copyOf(entries)` defensive copy in `CertificateService#insert` is unnecessary now that the parameter is already a `List`, and should be dropped.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "After the PR removed th...
null
Graylog2__graylog2-server__25633
Graylog2/graylog2-server
25,633
defect
72bf922830d74787945aaca8c168a7ecf937663e
3e11a5ca00c59608a44326faf712914e1affd3b1
Fix missing permission checks in StreamPipelineRulesResource
Closes Graylog2/graylog-plugin-enterprise#13861 ## Description The stream routing rules endpoint (`/routing_rules/paginated/{streamId}`) was missing authorization checks. Any authenticated user could call the API directly and enumerate pipeline rule names, pipeline names, and connected streams for any stream — ev...
diff --git a/changelog/unreleased/pr-25633.toml b/changelog/unreleased/pr-25633.toml new file mode 100644 index 000000000000..7400dfc645c5 --- /dev/null +++ b/changelog/unreleased/pr-25633.toml @@ -0,0 +1,5 @@ +type = "s" +message = "Fix missing permission checks in stream routing rules endpoint" + +issues = ["Graylog2...
2
1
1
[{"id": "G0", "claim": "The call at line 166 of StreamPipelineRulesResource should be guarded by a permission check for PipelineRestPermissions.PIPELINE_RULE_READ, or the relevantRules list should already be filtered while creating (lines 141, 142).", "category": "security", "verdict": "opposed", "priority": "P1", "sco...
null
Graylog2__graylog2-server__25636
Graylog2/graylog2-server
25,636
defect
72bf922830d74787945aaca8c168a7ecf937663e
a6fe556fa67add2640291d8d96ae7da0ff9b7358
Always provide default settings to collector inputs
Ensures that the same default input settings are applied for all three paths to create a collectors input (manual through inputs page, initial collector settings save, `create` button on collector settings page). Notably, the TCP keepAlive flag is now **enabled**. For that, we now route the "Create input" button ...
diff --git a/graylog2-server/src/main/java/org/graylog/collectors/CollectorIngestInputService.java b/graylog2-server/src/main/java/org/graylog/collectors/CollectorIngestInputService.java index 94976740bd72..1b74e51afaed 100644 --- a/graylog2-server/src/main/java/org/graylog/collectors/CollectorIngestInputService.java +...
1
1
0
[{"id": "G0", "claim": "Since permissions are checked inline in CollectorIngestInputService.createInput rather than on the endpoint, the code should probably leave a comment acknowledging that the permission decision was deliberate, as was done in #25502.", "category": "documentation", "verdict": "supported", "priority...
null
Graylog2__graylog2-server__25638
Graylog2/graylog2-server
25,638
defect
ff83a56a29fc982181017ca74b5a00966c9a0c19
f45c5fd4dbc99c4594b1261f34f1a3e0017822cb
Indices directory parser optimizations, parallelism, added tests
## Description IndicesDirectoryParser previously scanned all indices and shards sequentially, making startup and migration checks slow on nodes with many indices. This PR introduces a dedicated virtual-thread ExecutorService so indices within a node and shards within an index are processed concurrently; within each sh...
diff --git a/changelog/unreleased/pr-25638.toml b/changelog/unreleased/pr-25638.toml new file mode 100644 index 000000000000..380a57c3a5c6 --- /dev/null +++ b/changelog/unreleased/pr-25638.toml @@ -0,0 +1,4 @@ +type = "c" +message = "Indices directory parser optimizations and parallelism for faster and more reliable pr...
2
1
0
[{"id": "G0", "claim": "The cast of the remaining state-file byte count to int at StateFileParserImpl.java:87 could overflow for large documents.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It may be worth adding a cap on the maximum number of th...
null
Graylog2__graylog2-server__25641
Graylog2/graylog2-server
25,641
defect
ef4decb503867a016f2a05f327cd458353cd99ba
5327b5f73491feda6769fe4cec91cfbfc04b4caa
Filter receiver configs by Collector operating system
Add `CollectorReceiverConfig#osSupport` method so each receiver declares which operating systems it supports. `OpAmpService` now filters out receivers incompatible with the reporting Collector's operating system. Fixes #25164 ## Refactoring ### Require enrolled instance in `CollectorInstanceService#updateFromR...
diff --git a/graylog2-server/src/main/java/org/graylog/collectors/CollectorInstanceService.java b/graylog2-server/src/main/java/org/graylog/collectors/CollectorInstanceService.java index f5a142fcbd29..c7f64946ebb0 100644 --- a/graylog2-server/src/main/java/org/graylog/collectors/CollectorInstanceService.java +++ b/gray...
8
8
3
[{"id": "G0", "claim": "The identified-message serialization failure is logged at ERROR although it can only occur when trace logging is enabled, which can create noisy error logs when trace is temporarily enabled for debugging; consider logging it at TRACE/DEBUG (or WARN at most) and including instanceUid in the messa...
null
Graylog2__graylog2-server__25642
Graylog2/graylog2-server
25,642
defect
5e06219da0f9f32472e53c9a502fcd3220c303cb
1a64e0a43e23e72bbce683e1c6bd2ad04b601099
Fix inclusion correct inclusion of "_first" and "_last" into sorting direction in OpenSearch 3 client usage
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Due to a mistake in the string comparison, the `_first` and `_last` setting was not correct in the OS3 client usage. I find the usage of `getUppercaseDirection()` unfortunate as we kno...
diff --git a/graylog-storage-opensearch3/src/main/java/org/graylog/storage/opensearch3/MoreSearchAdapterOS.java b/graylog-storage-opensearch3/src/main/java/org/graylog/storage/opensearch3/MoreSearchAdapterOS.java index 18bc9c5b69fe..6d520ec74f68 100644 --- a/graylog-storage-opensearch3/src/main/java/org/graylog/storage...
3
2
1
[{"id": "G0", "claim": "The removal of the public Sorting.fromApiParam(String) method is not mentioned in the PR description and changes Sorting's public surface area; it should be called out in the description (or deprecated first) if intentional, and restored if accidental.", "category": "design", "verdict": "uncerta...
null
Graylog2__graylog2-server__25647
Graylog2/graylog2-server
25,647
defect
b13d57cc6d7af3f5d1de9ce77523aef2b6654348
c0ec1c43a2a4d018cf6d4f9b183f6f873565f8f1
Fix source stream permission filtering for events
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> - Users could see events for deleted streams regardless of permissions because source stream filtering used a denylist approach — when a stream was deleted, it vanished from the forbidden...
diff --git a/changelog/unreleased/issue-24855.toml b/changelog/unreleased/issue-24855.toml new file mode 100644 index 000000000000..488af24bb1a0 --- /dev/null +++ b/changelog/unreleased/issue-24855.toml @@ -0,0 +1,5 @@ +type = "f" +message = "Fix source stream permission filtering for events." + +issues = ["24855"] +pu...
2
2
1
[{"id": "G0", "claim": "The changelog entry should be a security-type entry (`type = \"s\"`) rather than `type = \"f\"`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should add test(s) for the newly added EventsSliceService source stream ...
null
Graylog2__graylog2-server__25655
Graylog2/graylog2-server
25,655
defect
46faa701875651c883aedf5880d801ed2c0193cf
b6886bac02c47919b8c9a3233c9dab01ec4e424d
Set bootstrap.memory_lock for opensearch
## Description Sets `bootstrap.memory_lock=false by default, configurable via datanode.conf. It can't be safely enabled by default, as this needs to be supported by the underlying system and could break boot checks in opensearch, terminating the startup: ``` 2026-04-15T14:15:51.953+02:00 WARN [OpensearchProce...
diff --git a/changelog/unreleased/issue-25589.toml b/changelog/unreleased/issue-25589.toml new file mode 100644 index 000000000000..6eed0896fcbd --- /dev/null +++ b/changelog/unreleased/issue-25589.toml @@ -0,0 +1,5 @@ +type = "c" +message = "Sets opensearch config bootstrap.memory_lock in datanode, enabled by default"...
1
1
1
[{"id": "G0", "claim": "The changelog entry should say the bootstrap.memory_lock setting is set \"disabled by default\" instead of \"enabled by default\".", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Graylog2__graylog2-server__25670
Graylog2/graylog2-server
25,670
defect
85b4ad8d96477cb75513735270354dcf9dcf3350
669788d866876830ae3ec81375dc96a4e56ee12e
Default channels for windows event log source allow empty custom channel list
Don't require channels if defaults are selected, and properly validate the cases. /nocl unreleased feature Fixes #25607
diff --git a/graylog2-server/src/main/java/org/graylog/collectors/config/receiver/WindowsEventLogReceiverConfig.java b/graylog2-server/src/main/java/org/graylog/collectors/config/receiver/WindowsEventLogReceiverConfig.java index e419e996a05a..c453a185367b 100644 --- a/graylog2-server/src/main/java/org/graylog/collector...
1
1
0
[{"id": "G0", "claim": "The new IllegalArgumentException raised in WindowsEventLogSourceConfig.validate() should carry the same \"WindowsEventLogSourceConfig: \" prefix that other validation errors use.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Graylog2__graylog2-server__25681
Graylog2/graylog2-server
25,681
defect
78e5c36cafa131943ec3be7dc2911808037503ad
0cd29f874022b04029ede39923a15f607a6b34fe
Fix static field value not updated when key already exists
Closes Graylog2/graylog-plugin-enterprise#13649 ## Description When adding a static field to an input with a key that already exists, the UI showed the new value but messages still contained the old value. **Root cause:** `InputServiceImpl.addStaticField()` used MongoDB `$push` which always appends, creating d...
diff --git a/changelog/unreleased/pr-25681.toml b/changelog/unreleased/pr-25681.toml new file mode 100644 index 000000000000..f97847e35ae6 --- /dev/null +++ b/changelog/unreleased/pr-25681.toml @@ -0,0 +1,5 @@ +type = "f" +message = "Fix static field value not updated in messages when re-adding with same key" + +issues...
1
1
1
[{"id": "G0", "claim": "The removal of an existing static field with the same key and the push of the new field should be combined into a single atomic update.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Graylog2__graylog2-server__25688
Graylog2/graylog2-server
25,688
defect
3f6578f7acf2f0c34fb46d9a15218009a6feb1fb
9f8e6a267278d3040c3100bae9ffe5bfc9260c2b
Datanode: skip datadir compatibility check if already performed
## Description The compatibility check result is now persisted as a marker file (.dn-compat-check) written directly into the OpenSearch data directory. The file stores the OpenSearch version string; since the file lives inside the data directory itself, the path context is implicit. On startup, if the file exists ...
diff --git a/data-node/src/main/java/org/graylog/datanode/bootstrap/preflight/OpensearchDataDirCompatibilityCheck.java b/data-node/src/main/java/org/graylog/datanode/bootstrap/preflight/OpensearchDataDirCompatibilityCheck.java index 2445cc2ffef6..6eaff658ae43 100644 --- a/data-node/src/main/java/org/graylog/datanode/bo...
2
2
1
[{"id": "G0", "claim": "The compatibility check should be re-run only when the OpenSearch major version changed, not on every minor or patch version change.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The catch in isCompatibilityAlreadyVerified s...
null
Graylog2__graylog2-server__25691
Graylog2/graylog2-server
25,691
defect
8c48c92aefdd322ab9b9f30e606caa2a8b9a56c3
5c483dcb567a5e7fdfedb320472e789d7b77e94d
Remove install script from Collector deployment page
Replace the install script section for enrollment tokens with a link to the docs. Additional cleanup: - Reset the enrollment token form after creating a new token - Consistent spelling of Collector(s) - Consistent text formatting - Add help texts Fixes https://github.com/Graylog2/graylog2-server/issues/2532...
diff --git a/graylog2-web-interface/src/components/collectors/deployment/BulkActions.tsx b/graylog2-web-interface/src/components/collectors/deployment/BulkActions.tsx index 6712387bd631..348e444398ec 100644 --- a/graylog2-web-interface/src/components/collectors/deployment/BulkActions.tsx +++ b/graylog2-web-interface/sr...
1
1
1
[{"id": "G0", "claim": "After submit, the callback runs resetForm which clears the form values, so the fleet name displayed from values.fleetId becomes empty (the fleet name vanishes after submit).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Graylog2__graylog2-server__25694
Graylog2/graylog2-server
25,694
defect
78e5c36cafa131943ec3be7dc2911808037503ad
002edea792182549a637d48a04be994c18c044b5
Improve Windows Event Log mapping for collector input
/nocl unreleased feature Fixes #25161 ## Summary Overhauls the `WindowsEventLogRecordProcessor` to produce a robust, vendor-neutral baseline of Windows Event Log data for the OTLP collector input. System-level and unambiguous EventData fields are normalized to GIM; user-identity fields whose meaning varies per event...
diff --git a/graylog2-server/src/main/java/org/graylog/collectors/input/processor/WindowsEventLogRecordProcessor.java b/graylog2-server/src/main/java/org/graylog/collectors/input/processor/WindowsEventLogRecordProcessor.java index ca57d719cf52..f1646f3c184c 100644 --- a/graylog2-server/src/main/java/org/graylog/collect...
2
2
0
[{"id": "G0", "claim": "The processor should reuse the existing OTel codec utility for KV-list-to-JSON serialization instead of reimplementing it as serializeKvListToJson.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The processor should not d...
null
Graylog2__graylog2-server__25696
Graylog2/graylog2-server
25,696
defect
bd1d2ee3b6f18b53447bafa34e25b936bf8837dc
9420d4c257e5f237e04d5cbbdb16f748ea87c822
Fix/25420 event summary template help message
<!--- Provide a general summary of your changes in the Title above --> Added overlay with examples and help text on event summary templates. closes: Graylog2/graylog2-server#25420 ## Description <!--- Describe your changes in detail --> Implemented the same help message we have on the search field in the Entit...
diff --git a/changelog/unreleased/issue-25420.toml b/changelog/unreleased/issue-25420.toml new file mode 100644 index 000000000000..931d0309ed6a --- /dev/null +++ b/changelog/unreleased/issue-25420.toml @@ -0,0 +1,5 @@ +type = "a" +message = "Add in the Event Details form helper text and examples on how to use Event Su...
5
4
1
[{"id": "G0", "claim": "The absolutely positioned InputFeedback overlay may intercept clicks/text selection near the input's right edge and is brittle, so the help button should be rendered via Input's buttonAfter/addonAfter props instead of custom absolute positioning.", "category": "correctness", "verdict": "uncertai...
null
Graylog2__graylog2-server__25708
Graylog2/graylog2-server
25,708
defect
7d6a0ff161749c611795b60c1911f7b5a82f3b31
3bd3590c952a5af6fd6ec91317623f029995fa25
Add received messages buttons across collector pages
Adds a "Received messages" button to collector Instances, Fleets, and Sources, letting users jump from each entity directly to a search filtered to the messages it produced. The collector agent itself stamps each outbound log record with its fleet and source IDs via the OpAMP-pushed configuration. The server extract...
diff --git a/graylog2-server/src/main/java/org/graylog/collectors/config/CollectorAttributes.java b/graylog2-server/src/main/java/org/graylog/collectors/config/CollectorAttributes.java index 1d1c53ee1f5b..5ef621517d3e 100644 --- a/graylog2-server/src/main/java/org/graylog/collectors/config/CollectorAttributes.java +++ ...
2
2
0
[{"id": "G0", "claim": "The click telemetry for the 'View System Logs' action still uses the VIEW_LOGS_CLICKED event with an `app_action_value` of `instance-view-logs`, which will make analytics ambiguous; the PR should introduce a dedicated telemetry event/value (or rename the existing one consistently) so event seman...
null
Graylog2__graylog2-server__25764
Graylog2/graylog2-server
25,764
defect
16faa3dce4bb729dfa655b9160033a7f5067fd8a
e097f87ac4164a87799a4b3628458511bf13e0ac
Add validation to OpenTelemetry-gRPC input TLS config
<!--- Provide a general summary of your changes in the Title above --> Closes #25419 Closes #25417 ## Description This PR introduces the following changes: - Enable `Allow Insecure Connections` by default, to match the behavior of other inputs. - Validate the TLS configuration on input creation and reject i...
diff --git a/changelog/unreleased/issue-25417.toml b/changelog/unreleased/issue-25417.toml new file mode 100644 index 000000000000..ea12bd6d7493 --- /dev/null +++ b/changelog/unreleased/issue-25417.toml @@ -0,0 +1,5 @@ +type = "f" +message = "Add validation to OpenTelemetry-gRPC input TLS config." + +issues = ["25417",...
3
2
1
[{"id": "G0", "claim": "The CK_INSECURE fallback default is inconsistent across the code (\"true\" in the BooleanField config, \"false\" in checkTlsConfiguration, and a third fallback in doLaunch), and a single shared constant should be used everywhere.", "category": "maintainability", "verdict": "supported", "priority...
null
Graylog2__graylog2-server__25792
Graylog2/graylog2-server
25,792
defect
6524ee25f1f8c7540defbfe4a9a912aeb8568bbe
fc9de3a50a374cbae11eadf2c406240dc3d082c9
Verification of index set profiles in proper services.
## Description See https://github.com/Graylog2/graylog2-server/pull/25792#pullrequestreview-4162582107 ## How Has This Been Tested? Manually and with new unit tests. ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Bug fix (non-breakin...
diff --git a/changelog/unreleased/pr-25792.toml b/changelog/unreleased/pr-25792.toml new file mode 100644 index 000000000000..1d670bc1b1de --- /dev/null +++ b/changelog/unreleased/pr-25792.toml @@ -0,0 +1,4 @@ +type = "f" +message = "Validate index field type profiles when saving and updating them." + +pulls = ["25792"...
2
1
0
[{"id": "G0", "claim": "The test setup mocks CustomMappingValidation for all tests, so most of the suite no longer exercises the real validation behavior and could pass even if the real validator would reject a profile; consider using a real instance and only stubbing/spying it in tests that need to simulate validator ...
null
Graylog2__graylog2-server__25839
Graylog2/graylog2-server
25,839
defect
c99274aad879e4acff8d56a37f73a88798729161
0d124fa44c7fddbbed47ee533831a06705504218
Upgrade identifiers of entity list preferences to contain additional part, representing layout variant
## Description Upgrade identifiers of entity list preferences to contain additional part, representing layout variant. /nocl New feature. ## Motivation and Context Solves https://github.com/Graylog2/graylog-plugin-enterprise/issues/14077 ## How Has This Been Tested? Manually and with new unit tests. ## Typ...
diff --git a/graylog2-server/src/main/java/org/graylog2/migrations/MigrationsModule.java b/graylog2-server/src/main/java/org/graylog2/migrations/MigrationsModule.java index 0077012533b5..22aac912d8fb 100644 --- a/graylog2-server/src/main/java/org/graylog2/migrations/MigrationsModule.java +++ b/graylog2-server/src/main/...
4
4
2
[{"id": "G0", "claim": "StoredEntityListPreferencesId.Builder.userId is modeled as non-null while the resource passes userId(null) for the global-preferences fallback, so AutoValue will throw a NullPointerException at build time and the fallback path will fail for any request where user-specific preferences are absent;...
null
GreedyBear-Project__GreedyBear__1022
GreedyBear-Project/GreedyBear
1,022
defect
22cea3835300eadd0a7e8936cbf888e5863dee51
159719b3a99215f534c58e395363f3e3792dc154
feat: allow querying CowrieSession API by password. Closes #607
# Description Allow querying the CowrieSession API by password. If the query parameter is neither a valid IP address nor a SHA-256 hash, it is treated as a password and returns all sessions where that password was used. This approach follows the existing query parameter design. As a result of the fallthrough appro...
diff --git a/api/views/cowrie_session.py b/api/views/cowrie_session.py index b2d12da6d..d41dcddf3 100644 --- a/api/views/cowrie_session.py +++ b/api/views/cowrie_session.py @@ -28,13 +28,14 @@ def cowrie_session_view(request): """ Retrieve Cowrie honeypot session data including command sequences, credentials...
4
4
2
[{"id": "G0", "claim": "Add tests covering password queries made with include_similar=true and with include_session_data=true.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If the observable is longer than the maximum length of the password field in th...
null
GreedyBear-Project__GreedyBear__1030
GreedyBear-Project/GreedyBear
1,030
defect
870ff77a1b667ca05d16a1baf8251cf3a5e6d983
0894986b3d7ac4f43d78e22c0647d421f70ea412
refactor: define IpReputation constants and replace hardcoded strings. Closes #1026
# Description Replaces all hardcoded `ip_reputation` string literals (`"mass scanner"`, `"tor exit node"`, `"known attacker"`) with a `TextChoices` enum, consistent with the existing `IocType` and `ViewType` patterns. ### Related issues Closes #1026 ### Type of change - [ ] Bug fix (non-bre...
diff --git a/api/views/utils.py b/api/views/utils.py index 7c14f2d6b..984d50acf 100644 --- a/api/views/utils.py +++ b/api/views/utils.py @@ -18,7 +18,7 @@ from api.serializers import FeedsRequestSerializer, parse_feed_types from greedybear.consts import CACHE_KEY_GREEDYBEAR_NEWS, CACHE_TIMEOUT_SECONDS, RSS_FEED_URL...
1
1
1
[{"id": "G0", "claim": "Defining IpReputation as a models.TextChoices enum in models.py without wiring choices= into the IOC field gives it no advantage over a simple string enum in consts.py, so the reviewer questions the decision and asks for a better placement.", "category": "design", "verdict": "supported", "priori...
null
GreedyBear-Project__GreedyBear__1068
GreedyBear-Project/GreedyBear
1,068
defect
143f6ff9efe2487f626efbd66faae434f8831326
7108eb8d87be75abf919cdd3ad5ad639c67523d5
Fix: case-insensitive honeypot membership check in add_honeypot_to_ioc()
## Description This push adds only the case-mismatch fix requested in review: - In `add_honeypot_to_ioc()`, membership comparison now normalizes both values before deciding whether to add. - This prevents redundant M2M add attempts when casing differs (for example, `Log4Pot` vs `Log4pot`). - Cache-miss behavior...
diff --git a/greedybear/cronjobs/repositories/ioc.py b/greedybear/cronjobs/repositories/ioc.py index f3254bf36..0888c1bbc 100644 --- a/greedybear/cronjobs/repositories/ioc.py +++ b/greedybear/cronjobs/repositories/ioc.py @@ -35,10 +35,11 @@ def add_honeypot_to_ioc(self, honeypot_name: str, ioc: IOC) -> IOC: Re...
2
2
0
[{"id": "G0", "claim": "The PR title is misleading and should be replaced with a more fitting one.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR title and description do not reference issue #1063, which they normally should.", "category": ...
null
GreedyBear-Project__GreedyBear__1118
GreedyBear-Project/GreedyBear
1,118
defect
43be36e472ec9857487140b2b246ba7946b5e4c8
5ed393faba6231d2db41a2855b816b05f3f3409a
perf: optimize N+1 queries and bulk database operations in extraction pipeline. Closes #1073
# Description This PR optimizes the GreedyBear extraction pipeline by resolving the remaining N+1 query and loop-based ORM bottlenecks. It refactors four identified iterative database transactions into optimized, single-batch `bulk` operations, significantly improving extraction latency and reducing database load. ...
diff --git a/greedybear/cronjobs/extraction/ioc_processor.py b/greedybear/cronjobs/extraction/ioc_processor.py index 3bdd03ed9..756b0b6da 100644 --- a/greedybear/cronjobs/extraction/ioc_processor.py +++ b/greedybear/cronjobs/extraction/ioc_processor.py @@ -25,7 +25,17 @@ def __init__(self, ioc_repo: IocRepository, sens...
6
6
1
[{"id": "G0", "claim": "The lazy-loaded cache properties in ioc_processor.py, ioc.py and sensor.py should be reverted to eager loading in __init__ because the repositories are constructed once per run and their caches are used immediately, so the laziness gives no benefit and adds out-of-scope complexity.", "category":...
null
GreedyBear-Project__GreedyBear__1124
GreedyBear-Project/GreedyBear
1,124
defect
9e9a700194e0e56928c1d6b6f1461032f48e5318
57acee5df28cf177df6cc5df3f321d8d4ebc23bb
Enh: Add sources tracking to Credential and link IPs on credential creation. Closes #1098
# Description This PR introduces the ability to track which IPs (sources) a credential has been seen on. - Added a sources ManyToMany field to the Credential model pointing to IOC. - Updated CowrieSessionRepository.add_credential to automatically link the session's source IP to the credential. - Added migratio...
diff --git a/greedybear/cronjobs/repositories/cowrie_session.py b/greedybear/cronjobs/repositories/cowrie_session.py index 6fb140297..bad5285e2 100644 --- a/greedybear/cronjobs/repositories/cowrie_session.py +++ b/greedybear/cronjobs/repositories/cowrie_session.py @@ -180,3 +180,5 @@ def add_credential( pr...
3
3
2
[{"id": "G0", "claim": "The debug log added in add_credential should log the full credential object instead of just the username, since the username is often just 'root' and does not identify which credential was added.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {...
null
GreedyBear-Project__GreedyBear__1137
GreedyBear-Project/GreedyBear
1,137
defect
2916d04a2fe5fa860985d588c576b25bad436828
ded822115062d48a7bb7d04134a094de9fa30038
Enhance session revoke UX. Closes #1125
# Description 1) Add a modal to confirm before session revoke. 2) Add a button to revoke other sessions. ### Related issues #1125 ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue). - [x] New feature (non-breaking change which adds functionality). - [ ] Breaking change (fix or fea...
diff --git a/authentication/urls.py b/authentication/urls.py index 2909fe620..7492df9e5 100644 --- a/authentication/urls.py +++ b/authentication/urls.py @@ -13,6 +13,7 @@ PasswordResetView, RegistrationView, ResendVerificationView, + RevokeOtherSessionsView, TokenSessionsViewSet, check_authe...
4
4
1
[{"id": "G0", "claim": "The standalone `sessions/others` path next to the DRF router's `sessions` ViewSet routes should be consolidated, e.g. as a `@action(detail=False, url_path=\"others\")` on a `TokenSessionsViewSet` subclass, to keep routing consolidated and avoid potential ambiguity with `sessions/<pk>`.", "catego...
null
GreedyBear-Project__GreedyBear__1152
GreedyBear-Project/GreedyBear
1,152
defect
c443b180b7eab667e7d6732a040a188d5405d90b
4af72d6330e94d18cbc93102f61b0660f9bd7106
feat(feeds): add min_expected_interactions filter param to feed endpoints
## Description I noticed min_score already filters by recurrence_probability but there was nothing equivalent for expected_interactions. If you wanted to filter feeds to only IOCs the regressor predicts will have a meaningful number of future interactions, you had to download everything and filter client-side. This ad...
diff --git a/api/serializers.py b/api/serializers.py index aba8d0b13..e4250aa50 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -141,6 +141,7 @@ class FeedsRequestSerializer(serializers.Serializer): format = serializers.ChoiceField(choices=["csv", "json", "txt", "stix21"]) asn = serializers.Intege...
1
1
1
[{"id": "G0", "claim": "Please add tests or (better) modify the existing tests to cover the new min_expected_interactions field.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GreedyBear-Project__GreedyBear__1170
GreedyBear-Project/GreedyBear
1,170
defect
037f16b7db74d8b23dba4dc85c57c345654a6364
b4e58808693fd414128148d3050b86ede47185ee
[#1159] Move helper functions from extraction utils to greedybear utils
[#1159] Fix linting issues with Ruff # Description Moved the following helper functions from `greedybear/cronjobs/extraction/utils.py` to `greedybear/utils.py` to make them reusable across the codebase... - parse_timestamp - is_valid_cidr - is_valid_ipv4 - get_ioc_type Also made `get_ioc_type` import in `s...
diff --git a/greedybear/cronjobs/abuseipdb_feed.py b/greedybear/cronjobs/abuseipdb_feed.py index 4db2e7db8..ced507bbf 100644 --- a/greedybear/cronjobs/abuseipdb_feed.py +++ b/greedybear/cronjobs/abuseipdb_feed.py @@ -2,9 +2,9 @@ from django.conf import settings from greedybear.cronjobs.base import Cronjob -from gre...
1
1
1
[{"id": "G0", "claim": "The pull request should exclude changes to files unrelated to the issue, primarily the edits to old migration files, which the project never changes.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GreedyBear-Project__GreedyBear__1173
GreedyBear-Project/GreedyBear
1,173
defect
037f16b7db74d8b23dba4dc85c57c345654a6364
65870a60341e5a3b9b6b6ed5d25d23faf8c6c759
feat: extract attacker country code in IOC model. Closes #1160
# Description This PR extracts and saves the 2-letter ISO country code of the attacker alongside the existing country name data. Specifically, this includes: - **Model Update**: Added a new `attacker_country_code` `CharField` to the `IOC` model. - **Extraction logic**: Updated `iocs_from_hits()` to pull the cou...
diff --git a/greedybear/cronjobs/extraction/ioc_processor.py b/greedybear/cronjobs/extraction/ioc_processor.py index fd79c721a..92c5ba46d 100644 --- a/greedybear/cronjobs/extraction/ioc_processor.py +++ b/greedybear/cronjobs/extraction/ioc_processor.py @@ -110,6 +110,8 @@ def _merge_iocs(self, existing: IOC, new: IOC) ...
1
1
1
[{"id": "G0", "claim": "If the incoming country code is 3 or more characters long, saving it to the model would crash the extraction pipeline, so the length should be checked and a code that is not exactly 2 characters not added.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
GreedyBear-Project__GreedyBear__1197
GreedyBear-Project/GreedyBear
1,197
defect
b0cf56189b9e00e7b79bef5102ccac4e781c5a19
dd5dadc1fd8e950eaaec242fdf6e0e1b7b0fbdb3
Standardize country statistics using ISO codes. Closes #1181
# Description This PR standardizes country names in the dashboard by adding ISO-A2 codes to the `/api/statistics/countries` endpoint. I've added a frontend mapping utility and updated the store to aggregate data correctly for both the map and charts. This ensures consistent naming even if database entries vary. ...
diff --git a/api/views/statistics.py b/api/views/statistics.py index d4bd1f751..bbcdb017a 100644 --- a/api/views/statistics.py +++ b/api/views/statistics.py @@ -86,18 +86,25 @@ def countries(self, request): request: The incoming request object. Returns: - Response: A JSON list of {cou...
6
6
6
[{"id": "G0", "claim": "getStandardMapName should also handle lowercase country codes, i.e. the ISO code lookup should be case-insensitive instead of matching only the uppercase keys of ISO_TO_MAP_NAME.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
GreedyBear-Project__GreedyBear__1211
GreedyBear-Project/GreedyBear
1,211
defect
7d9ac5a6b56c58c1d6dfe679cb967a25f98b0314
527bae34c5a3d6f6d4e1a2c590a4c14322b772a9
fix: transition feeds_consume to allowlist for token revocation (#1190)
# Description Hey @regulartim, I fixed the token revocation bypass issue as described in #1190. The old check was only blocking tokens that had `revoked=True` in the database. If no `ShareToken` record existed at all (for example due to a failed DB write or a manually crafted token), the endpoint would still...
diff --git a/api/views/feeds.py b/api/views/feeds.py index b4207468c..dec97ec18 100644 --- a/api/views/feeds.py +++ b/api/views/feeds.py @@ -258,8 +258,19 @@ def feeds_consume(request, token): """ logger.info("request /api/feeds/consume with token") token_hash = hashlib.sha256(token.encode()).hexdigest()...
1
1
1
[{"id": "G0", "claim": "Add tests that explicitly test the bug the pull request solved (the token revocation/allowlist behaviour of feeds_consume).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GreedyBear-Project__GreedyBear__1212
GreedyBear-Project/GreedyBear
1,212
defect
c95010d78fe3af19f0f5daaa52d3552b61dcb8a7
ab1218e20db404e71a820b400e92a068cd83716d
Cluster payload requests in command sequence clustering. Closes #523
# Description This PR extends command-sequence clustering to also consider payload-request observables by reusing the existing LSH clustering pipeline. For each command sequence, payload URLs related through scanner IOC relationships are appended as synthetic commands (`PAYLOAD REQUEST <url>`) before tokenization, s...
diff --git a/greedybear/cronjobs/commands/cluster.py b/greedybear/cronjobs/commands/cluster.py index 583a1fd2d..cdf06e132 100644 --- a/greedybear/cronjobs/commands/cluster.py +++ b/greedybear/cronjobs/commands/cluster.py @@ -1,6 +1,10 @@ +from collections import defaultdict + +from django.db.models import Prefetch + f...
3
3
3
[{"id": "G0", "claim": "The IOC queryset pulls any IOC that has a CowrieSession for the sequences, so add scanner=True to the filter (or adjust the docstring) so payload URLs come only from scanner sources as the docstring says.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
GreedyBear-Project__GreedyBear__1251
GreedyBear-Project/GreedyBear
1,251
defect
c2203be1a23c45bc94f82eace5ad498ecb396739
f403c6aa427480c6c50e4e745d178ccce88ecc8b
fix: remove host header cache poisoning vector. Closes #1104
# Description This PR cleans up the dead code and configuration defaults discussed in #1104 to prevent host header injection. Specifically, this includes: - **Removed Dead Code**: Deleted the `cache.set("current_site", ...)` statement in `authentication/views.py`. This removes an unnecessary global state mutatio...
diff --git a/authentication/views.py b/authentication/views.py index d6df05397..fc02600f9 100644 --- a/authentication/views.py +++ b/authentication/views.py @@ -6,7 +6,6 @@ from certego_saas.ext.throttling import POSTUserRateThrottle from django.conf import settings from django.contrib.auth import get_user_model, lo...
1
1
1
[{"id": "G0", "claim": "HOST_URI should be added to an appropriate place in docker/env_file_template, since the PR made it configurable via an environment variable.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GreedyBear-Project__GreedyBear__1255
GreedyBear-Project/GreedyBear
1,255
defect
c2203be1a23c45bc94f82eace5ad498ecb396739
80f94f867637836d747cd307363e7f364e9d6c2b
Fixing Elasticsearch source filtering. Closes #1274
# Description This PR hardens trending-feed extraction paths introduced in #1071 by fixing two correctness issues found during real TPOT runtime checks: 1. Adding `type` to Elasticsearch extraction allowlist so trending bucketing always receives honeypot/feed type. 2. Fixing immutable `elasticsearch-dsl` usage b...
diff --git a/greedybear/consts.py b/greedybear/consts.py index 5ed7f0d5a..0541a760b 100644 --- a/greedybear/consts.py +++ b/greedybear/consts.py @@ -17,6 +17,7 @@ REQUIRED_FIELDS = [ "@timestamp", + "type", "src_ip", "dest_port", "ip_rep", diff --git a/greedybear/cronjobs/repositories/elastic....
2
1
1
[{"id": "G0", "claim": "The PR description's 'Files changed' section lists only greedybear/consts.py and greedybear/cronjobs/repositories/elastic.py although the PR also modifies tests/test_elastic_repository.py, so the description should be updated to give reviewers an accurate change summary.", "category": "documenta...
null
GreedyBear-Project__GreedyBear__1276
GreedyBear-Project/GreedyBear
1,276
defect
039c9edc2280b4bae0807d22b062b976e2df14e8
fb05bb7fa1b43ce7593995c0940ac41afaf2a6c6
Exclude disabled honeypots from activity buckets. Closes #1275
# Description This moves the bucket update call inside the per-honeypot loop and behind the is_ready_for_extraction gate, so hits from disabled honeypots no longer tracked. Also refactors the former `bucket_utils` module into a stateful `BucketUpdater` class under and adds a Django admin view for AttackerActivityBuc...
diff --git a/greedybear/admin.py b/greedybear/admin.py index 3372630f2..96211f8a1 100644 --- a/greedybear/admin.py +++ b/greedybear/admin.py @@ -8,6 +8,7 @@ from greedybear.models import ( IOC, + AttackerActivityBucket, CommandSequence, CowrieSession, Credential, @@ -183,6 +184,16 @@ def get_q...
2
2
0
[{"id": "G0", "claim": "is_ready_for_extraction currently creates unknown honeypot types as active, so a honeypot type first seen in logs is treated as enabled immediately and included in trending buckets; align on whether that is intended.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre...
null
GreedyBear-Project__GreedyBear__1289
GreedyBear-Project/GreedyBear
1,289
defect
c2203be1a23c45bc94f82eace5ad498ecb396739
d3cff05bda83b15905f541bd6a631199303298f3
Enhancement: optimization in Cowrie _get_sessions #1260 - Reduced Tim…
# Description This PR implements a minor optimization in the Cowrie extraction strategy to reduce the time complexity of matching sessions to scanner IPs. Previously, `_get_scanners` iterated over all unique IOCs (`N`) and for each one, `_get_sessions` looped through the entire list of `M` hits to find matching one...
diff --git a/greedybear/cronjobs/extraction/strategies/cowrie.py b/greedybear/cronjobs/extraction/strategies/cowrie.py index 0fd815db4..a521e72e5 100644 --- a/greedybear/cronjobs/extraction/strategies/cowrie.py +++ b/greedybear/cronjobs/extraction/strategies/cowrie.py @@ -92,13 +92,18 @@ def extract_from_hits(self, hit...
2
2
1
[{"id": "G0", "claim": "The new src_ip guard does not cover iocs_from_hits, so any hit without src_ip could raise KeyError there before the guard helps; filter the hits once and use the filtered list for both hits_by_ip and iocs_from_hits, and update the test (which patches iocs_from_hits out) to assert the filtered li...
null
GreedyBear-Project__GreedyBear__1304
GreedyBear-Project/GreedyBear
1,304
defect
38be1ed6f38d7eaee5421d384decc9a51bd7fe09
c5037aae8c2389693aada0512d286c319c95de94
add union by rank to union find implementation in LSH. Closes #1285
# Description Union by rank attaches shorter trees under the taller one in union operation, to keep finds efficient. The asymptotic gain is from log n down to alpha(n). Where alpha(n) is inverse Ackerman function. This function grows so slowly that that it doesn't exceed  4  for all reasonable  n  (approximately  n ...
diff --git a/greedybear/cronjobs/commands/lsh.py b/greedybear/cronjobs/commands/lsh.py index c5050622e..2f592b079 100644 --- a/greedybear/cronjobs/commands/lsh.py +++ b/greedybear/cronjobs/commands/lsh.py @@ -20,6 +20,7 @@ def __init__(self, size: int): size (int): Number of elements in the data structure ...
1
1
1
[{"id": "G0", "claim": "The new test only exercises the equal-rank merge case; extend or split it to create an unequal-rank situation and assert that the lower-rank root is attached under the higher-rank root and that ranks are only incremented on equal-rank merges.", "category": "testing", "verdict": "supported", "pri...
null
GreedyBear-Project__GreedyBear__38
GreedyBear-Project/GreedyBear
38
defect
1da679b4570f46e909f18f2921101a005d90ee94
ef71836cea267db737e61ed33409e12d93eaec03
Added Basic Testcases
# Description Added Testcases for Views and Models ## Related issues Fixes #21 ## Type of change Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue). - [ ] New feature (non-breaking change which adds functionality). - [ ] Breaking change (fix or...
diff --git a/api/views.py b/api/views.py index 7eed6e066..6fc2aae49 100644 --- a/api/views.py +++ b/api/views.py @@ -36,7 +36,6 @@ def write(self, value): @require_http_methods([GET]) def feeds(request, feed_type, attack_type, age, format_): """ - :param request: :param feed_type: :param attack_ty...
1
1
1
[{"id": "G0", "claim": "The new tests must also be run by the CI in pull_request_automation.yml (as IntelOwl does), at least within this PR.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GreedyBear-Project__GreedyBear__397
GreedyBear-Project/GreedyBear
397
defect
d3b97e94c617c96ae840ae2351ebb653ab22fdda
f961fec670bbbdc000bc572172adf88723557148
Improve API performance. Closes #394
# Description Two changes are introduced here: 1. By using prefetch_related I could reduce the time the mentioned API request takes from ~6 seconds to ~2 seconds. This change is completly contained in [eda16cd](https://github.com/intelowlproject/GreedyBear/pull/397/commits/eda16cdde738f96302ec88b14c894e04c39cb48f) ...
diff --git a/api/serializers.py b/api/serializers.py index 937ce0f84..7bf88cf7c 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -1,11 +1,15 @@ import logging import re +from functools import cache -from greedybear.consts import REGEX_DOMAIN, REGEX_IP +from greedybear.consts import PAYLOAD_REQUEST, REGEX...
4
4
2
[{"id": "G0", "claim": "The new module-level validation constants (VALID_ATTACK_TYPES, VALID_AGES, VALID_FORMATS) should be separated into a consts.py file so other modules can leverage them without importing everything from api/serializers.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", ...
null
GreedyBear-Project__GreedyBear__407
GreedyBear-Project/GreedyBear
407
defect
08b99db51cf4d08239925b11c79b0e678ece42ca
eb45fb40d8cdaf5f1b68b9d04bb6c34dd5c7b867
Model extensions. Closes #405 .
# Description Several changes to the IOC model are introduced: - `days_seen` now has the list function as a default value (for convenience) - rename `times_seen` and add interaction count - add IP reputation, the attacker's ASN, a list of ports the IP has requested and a counter of attempted logins (currently onl...
diff --git a/api/serializers.py b/api/serializers.py index 4d2d676fe..2f5487832 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -72,7 +72,7 @@ class FeedsResponseSerializer(serializers.Serializer): payload_request = serializers.BooleanField() first_seen = serializers.DateField(format="%Y-%m-%d") ...
2
2
0
[{"id": "G0", "claim": "Create a Django Admin visualization with search options for the new CowrieSession data so it can be analyzed without building a complex frontend interface.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add database indexes on the...
null
GreedyBear-Project__GreedyBear__450
GreedyBear-Project/GreedyBear
450
defect
d2b7be12c8edbe99a30be603dc2752fd1f007e22
dc83920a3faa3521cf2391bf0db5c3d8c47bc855
Integrate Random Forest models
# Description Integrate Random Forest models ## Related issues - part of #36 ## Type of change - [x] New feature (non-breaking change which adds functionality). # Checklist - [x] I have read and understood the rules about [how to Contribute](https://intelowlproject.github.io/docs/GreedyBear/Contribu...
diff --git a/.gitignore b/.gitignore index f2dc3cc67..46689f15a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,6 @@ docker/env_file docker/env_file_postgres .env __pycache__/ +mlmodels/ # JetBrains IDEs (PyCharm, IntelliJ, etc.) -.idea/ \ No newline at end of file +.idea/ diff --git a/docker/Dockerfile b/docke...
8
6
0
[{"id": "G0", "claim": "The new daily train-and-update task may take long enough to interfere with the other tasks on the single celery worker, in which case a dedicated custom worker for this use case would be ideal.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
GreedyBear-Project__GreedyBear__478
GreedyBear-Project/GreedyBear
478
defect
7c13f872a0cb2a145f6c3a8e1f80c8db0a988ebe
389aa6d63f8f78b6429436146a9983adba442a46
Command Sequence API. Closes #471
# Description New API that lets you (1) get all executed commands for a specific IP address or (2) get all IP addresses that executed a specific command. Also supports fuzzy matching of commands by including commands from the same cluster. Will update the docs later this week. ## Related issues - #471 ## Type...
diff --git a/api/urls.py b/api/urls.py index 64e84bcba..4dfffb597 100644 --- a/api/urls.py +++ b/api/urls.py @@ -1,6 +1,6 @@ # This file is a part of GreedyBear https://github.com/honeynet/GreedyBear # See the file 'LICENSE' for copying permission. -from api.views import StatisticsViewSet, enrichment_view, feeds, fee...
3
3
0
[{"id": "G0", "claim": "Use underscores instead of spaces in the response's dictionary keys (both the per-session sequence keys and the top-level data keys) to avoid possible problems.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docstring's Args s...
null
GreedyBear-Project__GreedyBear__482
GreedyBear-Project/GreedyBear
482
defect
b8062b8e186a1f4f6195f15a7064dc66db493728
2d0cdfd7dc7a4d0317a29eb8fa0236ff50053d94
Update scores after extraction. Closes #462
# Description Until now the scores for the IoCs are only calculated and updated once a day. With this change, the scores for an IoC are updated every time it is seen during an extraction run. ## Related issues Closes #462 ## Type of change Please delete options that are not relevant. - [x] New feature (n...
diff --git a/greedybear/cronjobs/attacks.py b/greedybear/cronjobs/attacks.py index 8a94cd5f6..65ae9d8a8 100644 --- a/greedybear/cronjobs/attacks.py +++ b/greedybear/cronjobs/attacks.py @@ -7,6 +7,7 @@ from greedybear.consts import DOMAIN, IP, PAYLOAD_REQUEST, SCANNER from greedybear.cronjobs.base import ElasticJob ...
3
2
1
[{"id": "G0", "claim": "The 'begin updating scores' log message is identical in update_db and update_iocs, so the two methods can be confused when reading logs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The complexity of score_only can be r...
null
GreedyBear-Project__GreedyBear__484
GreedyBear-Project/GreedyBear
484
defect
4068ad1bedb739408fc86fe23ff9a5cf84884460
e50e5730fb91465180cda9f430a6d365e0476e42
adjusted feed type field
# Description - converted feed type field to list - (Frontend) added support for lists to the feed type field in the table ## Related issues closes #289 ## Type of change Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue). - [ ] New feature (non-bre...
diff --git a/api/serializers.py b/api/serializers.py index 1a320ab85..917a0f443 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -115,7 +115,7 @@ def validate_ordering(self, ordering): class FeedsResponseSerializer(serializers.Serializer): - feed_type = serializers.CharField(max_length=120) + feed...
1
1
0
[{"id": "G0", "claim": "There should exist a constant (e.g. an enum) for the hardcoded strings \"log4j\" and \"cowrie\" in feeds_response.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GreedyBear-Project__GreedyBear__623
GreedyBear-Project/GreedyBear
623
defect
e1f835abb863db4200d0b97f35b37cde95419306
10efcc7f8c547047336be23e1285d1d47a4ef09f
Refactor: Externalize Random Forest Parameters.
# Description This PR refactors the Random Forest implementation to externalize hyperparameters to a JSON configuration file ([configuration/ml_config.json](cci:7://file:///home/opbotxd/Desktop/vscode/dev/gsoc/GreedyBear/configuration/ml_config.json:0:0-0:0)). Currently, these parameters are hardcoded in the [RFClas...
diff --git a/configuration/ml_config.json b/configuration/ml_config.json new file mode 100644 index 000000000..b649f252b --- /dev/null +++ b/configuration/ml_config.json @@ -0,0 +1,22 @@ +{ + "RFClassifier": { + "class_weight": { + "false": 1, + "true": 4 + }, + "criterion"...
3
2
1
[{"id": "G0", "claim": "The settings constant ML_CONFIG_PATH should be renamed to ML_CONFIG_FILE (the JSON file name itself is fine).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Writing the class_weight keys as strings (\"false\"/\"true\") in...
null
GreedyBear-Project__GreedyBear__679
GreedyBear-Project/GreedyBear
679
defect
25b9706bd24c1d7e98233026d59a9b9141acc5c9
b0b870e179481f559b4f206f1b736efde5cbc434
refactor: fix flake8-bugbear violations (B006/B008/B017/B023/B904). Closes #677
# Description Fixes all remaining flake8-bugbear violations and enables enforcement of B006, B008, B017, B023, and B904 rules. ## Exception Handling Rationale (B904/B017) The key design decision was context-specific exception handling: ### `authentication/serializers.py` - Security First ```python raise e...
diff --git a/.github/configurations/python_linters/.ruff.toml b/.github/configurations/python_linters/.ruff.toml index d51a6a7aa..c657491a9 100644 --- a/.github/configurations/python_linters/.ruff.toml +++ b/.github/configurations/python_linters/.ruff.toml @@ -53,15 +53,6 @@ select = [ ignore = [ # F403: Allow wi...
2
1
0
[{"id": "G0", "claim": "The reviewer finds the `value=value` default-argument lambda syntax in multi_label_encode quite weird, stating it is just a personal opinion and that no change is needed.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Instead of the...
null
GreedyBear-Project__GreedyBear__685
GreedyBear-Project/GreedyBear
685
defect
6194db4648e0a4c8e069901314738e06d2f21743
c024131a27b1e8bdcbfb38073b1323be08ab1208
fix: Refactor MassScannersCron to handle flexible IP formats. Closes #678
# Description This PR refactors the [MassScannersCron](cci:2://file:///home/opbotxd/Desktop/vscode/dev/gsoc/honeynet/GreedyBear/greedybear/cronjobs/mass_scanners.py:9:0-61:22) job to handle diverse IP address formats from the external data source, eliminating false "unexpected line" warnings. **Problem:** The old...
diff --git a/greedybear/cronjobs/extraction/utils.py b/greedybear/cronjobs/extraction/utils.py index b176ec79c..31de9e2d3 100644 --- a/greedybear/cronjobs/extraction/utils.py +++ b/greedybear/cronjobs/extraction/utils.py @@ -131,6 +131,24 @@ def iocs_from_hits(hits: list[dict]) -> list[IOC]: return iocs +def i...
2
2
0
[{"id": "G0", "claim": "The reviewer asks why the comment-extraction regex carries re.DOTALL (whether it was meant to capture comments spanning multiple lines), implying the flag is unnecessary since the data is already processed line by line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "...
null
GreedyBear-Project__GreedyBear__711
GreedyBear-Project/GreedyBear
711
defect
004d461b3d8af049b02158f878546f1f8dfe8e7d
3350965f428768204fc9a2aa7a1200d3847cf168
Adding validation methods for cidr and validation for incoming get requests in Firehol.py.
# Description This PR implements a is_valid_cidr similar to is_valid_ip as firehol can have both .netset and .ipset files, also the tests for that is added, this function was added to the utils file where is_valid_ip resides. Post that, validation is added where the adress can either be a valid ip or a valid cidr, ba...
diff --git a/greedybear/cronjobs/extraction/utils.py b/greedybear/cronjobs/extraction/utils.py index 31de9e2d3..cb421cc94 100644 --- a/greedybear/cronjobs/extraction/utils.py +++ b/greedybear/cronjobs/extraction/utils.py @@ -1,6 +1,6 @@ from collections import defaultdict from datetime import datetime -from ipaddress...
4
4
2
[{"id": "G0", "claim": "The code logs invalid IPv4/CIDR lines at ERROR level while the added comment right above it says they are logged at DEBUG level.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loop adds each entry twice — once via fir...
null
GreedyBear-Project__GreedyBear__723
GreedyBear-Project/GreedyBear
723
defect
ca3610919fc4c206c0d00a6b1c2b88e96c0fbea4
773e03577e3d69a923b3955706f153799b592532
Feature: Authentication via email address. Closes #528
Allow authentication via email address Closes #528 # Description Added support for login via email in addition to username. Updated LoginSerializer to convert email to username for authentication. Added unit tests in tests/authentication/test_auth_via_email.py ## Related issues Please add related issues....
diff --git a/authentication/serializers.py b/authentication/serializers.py index 960a7bab7..7e103c0aa 100644 --- a/authentication/serializers.py +++ b/authentication/serializers.py @@ -10,6 +10,7 @@ from django.conf import settings from django.core.exceptions import ValidationError from django.db import DatabaseErro...
5
3
0
[{"id": "G0", "claim": "The CI fails because of pure formatting changes in the PR, so the formatting should be fixed before review.", "category": "maintainability", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The comment '# KEY FIX: If user entered an email, convert it to u...
null
GreedyBear-Project__GreedyBear__728
GreedyBear-Project/GreedyBear
728
defect
fc9fb6d7f5271314f5f4a1ee66bc603ade2d323b
aee66b91b7d3c9f53da5686ee4ac3847452e62aa
feat: Add Tor exit node extraction with separate TorExitNode model (#…
# Description This PR adds automatic extraction and filtering of Tor exit node IPs to reduce false positives in threat feeds. Tor exit nodes are privacy servers for anonymous browsing, not attackers - but they show up in honeypot logs and get incorrectly flagged as malicious. Following the same approach as IntelO...
diff --git a/greedybear/cronjobs/repositories/__init__.py b/greedybear/cronjobs/repositories/__init__.py index 301334309..84df974e1 100644 --- a/greedybear/cronjobs/repositories/__init__.py +++ b/greedybear/cronjobs/repositories/__init__.py @@ -4,3 +4,4 @@ from greedybear.cronjobs.repositories.ioc import * from greed...
4
4
3
[{"id": "G0", "claim": "The reviewer thinks the new get_tor_exit_nodes task was forgotten in the Celery Beat schedule in celery.py.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test classes in tests/test_tor.py should use CustomTestCase as a b...
null
GreedyBear-Project__GreedyBear__777
GreedyBear-Project/GreedyBear
777
defect
ed677419ba779b9dddbd611cf6d5580e751b4485
f7ba27b5d4ac477a0ecb924b1dc2b8cac79b1386
feat(frontend): Dynamic GreedyBear news widget with filtering, sorting, and improved UX. Closes #762
# Description This PR replaces the hardcoded news in Home.jsx with a dynamic NewsWidget component that fetches news from public/news.json. It filters, sorts, and displays only news related to GreedyBear, while preserving the original design. Why news.json includes a project field and Id? - To ensure only Greedy...
diff --git a/frontend/public/news.json b/frontend/public/news.json new file mode 100644 index 000000000..55a33acdc --- /dev/null +++ b/frontend/public/news.json @@ -0,0 +1,34 @@ +[ + { + "id": "gb-news-001", + "project": "greedybear", + "title": "GreedyBear version 3.0 coming", + "subText": "With many new ...
3
2
1
[{"id": "G0", "claim": "The widget should dynamically retrieve links to GreedyBear-related blog posts so new articles appear automatically, instead of shipping a static local news.json file.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR links the...
null
GreedyBear-Project__GreedyBear__789
GreedyBear-Project/GreedyBear
789
defect
ee0d79c5284c656d3d6cd987a9de5a369fedca7d
b0b1a8ccbb8ae7f4dfc55d65dae609361aeea3ff
Migrate from RabbitMQ/Celery to Django Q2. Closes #778
# Description This PR implements the migration from RabbitMQ and Celery to Django Q2, using the Django ORM as the message broker. This simplifies the infrastructure by removing the need for a separate RabbitMQ service and leveraging the existing PostgreSQL database for task management. ## Related issues Closes #...
diff --git a/configuration/rabbitmq.conf b/configuration/rabbitmq.conf deleted file mode 100644 index 3249a2a42..000000000 --- a/configuration/rabbitmq.conf +++ /dev/null @@ -1,3 +0,0 @@ -# 150 hours, see https://www.rabbitmq.com/consumers.html#acknowledgement-timeout -# the time is long to avoid a lot of critical erro...
17
14
8
[{"id": "G0", "claim": "`python manage.py createcachetable || true` silently ignores any failure to create the DB cache table (e.g., permission issues), which can make Django Q monitoring fail later in a harder-to-diagnose way; make it idempotent without masking unexpected errors.", "category": "correctness", "verdict"...
null
GreedyBear-Project__GreedyBear__829
GreedyBear-Project/GreedyBear
829
defect
371518451b4eaa181fada044e037a53dfbb84e04
06f2dc9a5ef4955912eedd4b02ef34436a82113b
Allow special characters in passwords and update validation logic
# Description I've updated the password validation logic in both the frontend and backend to allow special characters (e.g., `!@#$%`). Previously, the regex restricted passwords to only alphanumeric characters (`[a-zA-Z0-9]`), which reduced password entropy and blocked users from using generated passwords from manag...
diff --git a/frontend/src/components/auth/utils/validator.jsx b/frontend/src/components/auth/utils/validator.jsx index bf95c188f..e74a6d3f1 100644 --- a/frontend/src/components/auth/utils/validator.jsx +++ b/frontend/src/components/auth/utils/validator.jsx @@ -26,8 +26,7 @@ export function PasswordValidator(password) {...
1
1
0
[{"id": "G0", "claim": "Because the password regex uses `.` it lets the form accept tab characters, null bytes and other control characters, and a more defensive regex using `\\S` instead of `.` would be preferable even though Django should filter them.", "category": "security", "verdict": "supported", "priority": "P2"...
null
GreedyBear-Project__GreedyBear__830
GreedyBear-Project/GreedyBear
830
defect
acf8fb8a9a648c92d117d28bbf77d1c84af6b3a8
6bbbfe603ee40e9bb14e25faeba95ea24917196d
fix: prevent ML training pipeline crash on zero-positive test sets
## Description This PR addresses issue #823. While analyzing the ML training pipeline, I noticed that it can crash when the training/test data contains no positive samples (i.e., all targets are 0/False). From the current implementation: * `recall_auc()` divides by `total_positives = y.sum()`. When al...
diff --git a/greedybear/cronjobs/scoring/ml_model.py b/greedybear/cronjobs/scoring/ml_model.py index aa6b23969..ad46ac23b 100644 --- a/greedybear/cronjobs/scoring/ml_model.py +++ b/greedybear/cronjobs/scoring/ml_model.py @@ -161,6 +161,9 @@ def recall_auc(self, x: pd.DataFrame, y: pd.DataFrame) -> float: predi...
1
1
0
[{"id": "G0", "claim": "The inner try/except that logs each scorer's training failure is unnecessary complexity since the Django exception traceback already includes the scorer class, so the training loop should simply be wrapped in try/finally with the training data still saved.", "category": "maintainability", "verdi...
null
GreedyBear-Project__GreedyBear__836
GreedyBear-Project/GreedyBear
836
defect
b370b90e58227dff03e3f0fc040b78f604dd6fa5
f5b59d2824bba46df10133f0ece77c8fbb346c72
Refactor training scheduling. Closes #835
# Description This removes the independently scheduled training task with its opaque cron calculation and triggers training directly from the first extraction run after midnight instead. ## Related issues - #835 ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking ch...
diff --git a/greedybear/cronjobs/schedules.py b/greedybear/cronjobs/schedules.py index 7694f5803..cf14faf38 100644 --- a/greedybear/cronjobs/schedules.py +++ b/greedybear/cronjobs/schedules.py @@ -17,61 +17,55 @@ def setup_schedules(): extraction_interval = settings.EXTRACTION_INTERVAL schedules = [ - ...
1
1
1
[{"id": "G0", "claim": "Chaining train_and_update() inside extract_all() could exceed the celery timeout if the two tasks together take too much time; this needs to be checked.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GreedyBear-Project__GreedyBear__839
GreedyBear-Project/GreedyBear
839
defect
9107676e5b6f29c1373cc05e8b08c93ad6c44a55
5e1132c80dd3f7e4e696c04581ab19ead5881b0a
Advanced filtering, STIX 2.1 export, and shareable feed URLs
# Description This PR fully implements the enhancements proposed in #831 for the Advanced Feeds API. Main changes: - Added new query filters: `asn`, `min_score` (filters on `recurrence_probability`), `port`, `start_date`, `end_date` - Added support for STIX 2.1 export (`format=stix21`) — generates valid STIX 2....
diff --git a/api/serializers.py b/api/serializers.py index ba2b0ce9b..909f7d1bf 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -107,7 +107,12 @@ class FeedsRequestSerializer(serializers.Serializer): ordering = serializers.CharField(max_length=120) verbose = serializers.ChoiceField(choices=["true"...
13
11
7
[{"id": "G0", "claim": "The new functionality was added without any tests for it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new endpoints lack docstrings matching the project pattern, from which the API docs are generated.", "category": "docume...
null
GreedyBear-Project__GreedyBear__856
GreedyBear-Project/GreedyBear
856
defect
2cc65b90b6862e0e42337fd7c7dec0634bfb75a3
ceb770b0bb27d89ab24bef33501110473285a97d
feat(api): health overview endpoint with system & jobs status. Closes #845
# Description This PR adds a new `/health/overview` API endpoint that provides a consolidated overview of the system status and key observables . It is accessible only to admin users. ### Features - Reports **system status** including: - Database connectivity (`up` / `down` / `degraded`) - Django-Q cluster...
diff --git a/api/urls.py b/api/urls.py index 280b8b972..867a5256a 100644 --- a/api/urls.py +++ b/api/urls.py @@ -13,6 +13,7 @@ feeds_asn, feeds_pagination, general_honeypot_list, + health_view, news_view, ) @@ -31,6 +32,7 @@ path("command_sequence", command_sequence_view), path("gene...
7
5
1
[{"id": "G0", "claim": "Remove the stray `print(e)` debugging statement and log the exception information via the logger instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move get_status_overview into health.py and consider breaking it up ...
null
GreedyBear-Project__GreedyBear__880
GreedyBear-Project/GreedyBear
880
defect
08a638fd334da303d3276ed260dae65743a7b082
5690e78d8b09d25f7099f3d38f25c37d63b2a896
feat(pipeline): GeoIP enrichment . Closes #524
# Description This PR introduces GeoIP enrichment improvements in the extraction pipeline: - Backfills Sensor.country using geoip_ext.country_name from Elasticsearch hits. - Sets IOC.attacker_country using geoip.country_name during IOC creation (iocs_from_hits) - Adds focused test coverage to verify the enrichme...
diff --git a/greedybear/cronjobs/extraction/pipeline.py b/greedybear/cronjobs/extraction/pipeline.py index 969df89e6..29ca194d7 100644 --- a/greedybear/cronjobs/extraction/pipeline.py +++ b/greedybear/cronjobs/extraction/pipeline.py @@ -74,9 +74,22 @@ def execute(self) -> int: continue ...
5
4
2
[{"id": "G0", "claim": "Prefer `geoip.get(\"country_name\", \"\")` over `geoip.get(\"country_name\") or \"\"` in iocs_from_hits, if the two are equivalent.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The sensor-country update logic inlined in...
null
GreedyBear-Project__GreedyBear__885
GreedyBear-Project/GreedyBear
885
defect
dafa93b535ad586f5d17486168b2bd26a1cc084f
e9bc9a682fa25316df34464fdb930b58c8a090c8
Replace regex IP validation with ipaddress stdlib in EnrichmentSerializer. Closes #881
# Description `EnrichmentSerializer.validate()` used `REGEX_IP` which only checked digit count per octet (`\d{1,3}`), not the valid 0-255 range. This caused invalid IPs like `999.999.999.999` to be accepted. Additionally, valid IPv6 addresses like `2001:db8::1` were incorrectly rejected. Fixed by replacing the rege...
diff --git a/api/serializers.py b/api/serializers.py index ba2b0ce9b..3ff96d79b 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -1,3 +1,4 @@ +import ipaddress import logging import re from functools import cache @@ -5,7 +6,7 @@ from django.core.exceptions import FieldDoesNotExist from rest_framework im...
5
5
4
[{"id": "G0", "claim": "The stripped observable is validated but not written back to data[\"query\"], so whitespace in the query parameter is preserved in the database lookup and potentially stored; the author should add data[\"query\"] = observable so the stripped value is used consistently.", "category": "correctness...
null
GreedyBear-Project__GreedyBear__909
GreedyBear-Project/GreedyBear
909
defect
cad5d454bc942bb14a346661022fb7edd919aa08
c86127a6d8a6d568affa6ac429fa831d5cb572fb
feat(api): Geo related field addition in the feed_response. Closes #524
# Description Initially, I tried a simpler approach: adding an ArrayAgg annotation for sensor_countries in get_queryset and including it in a feed_response inside the base_fields. This was straightforward and clean just two lines of change. Issue with initial approach: - Sensor_countries comes from a ManyToMa...
diff --git a/api/views/utils.py b/api/views/utils.py index e8bcdcf7f..6797dc4f4 100644 --- a/api/views/utils.py +++ b/api/views/utils.py @@ -2,6 +2,7 @@ # See the file 'LICENSE' for copying permission. import csv import logging +from collections import defaultdict from datetime import datetime, timedelta import ...
2
1
1
[{"id": "G0", "claim": "The sensor countries included in the feed response do not make sense there and should be dropped, keeping only the attacker country in the API response.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The changes affect user-facing...
null
GreedyBear-Project__GreedyBear__910
GreedyBear-Project/GreedyBear
910
defect
80c45a215c9ff6137ca34c3e2de0a8e5e8a6f771
0092ac57b9096fd404f62e2427282111b2a5adaa
Fix DatabaseDefault crash in _update_days_seen. Closes #908
## Summary This PR fixes the 'DatabaseDefault' object has no attribute 'date' error that crashes the extraction pipeline during Cowrie (and potentially other honeypot) p...
diff --git a/greedybear/cronjobs/extraction/ioc_processor.py b/greedybear/cronjobs/extraction/ioc_processor.py index 864965cae..77b39a9bc 100644 --- a/greedybear/cronjobs/extraction/ioc_processor.py +++ b/greedybear/cronjobs/extraction/ioc_processor.py @@ -1,4 +1,5 @@ import logging +from datetime import datetime f...
2
2
1
[{"id": "G0", "claim": "Set `last_seen` (and `first_seen`) explicitly from `hit[\"@timestamp\"]` in the two `IOC()` constructors in `cowrie.py`, since `@timestamp` is always present in any Elasticsearch hit — this should also fix the issue and give more precise information about when the hit happened.", "category": "de...
null
GreedyBear-Project__GreedyBear__927
GreedyBear-Project/GreedyBear
927
defect
9918f7d829006421492d0803345bacf5fb38aa6c
6abffeb0a657525c9ef67a7ebe28cd9dad778438
Add rate limiting to feeds endpoints.
# Description Adds rate limiting to all feeds API endpoints using DRF's `ScopedRateThrottle` to prevent abuse and reduce unnecessary load on the database and Elasticsearch. Per @regulartim's feedback on #923, throttling is applied **only to feeds endpoints**, not to enrichment, command_sequence, or cowrie_session...
diff --git a/api/views/feeds.py b/api/views/feeds.py index 37890f53c..d5da68e28 100644 --- a/api/views/feeds.py +++ b/api/views/feeds.py @@ -8,9 +8,11 @@ api_view, authentication_classes, permission_classes, + throttle_classes, ) from rest_framework.permissions import IsAuthenticated from rest_fram...
4
4
1
[{"id": "G0", "claim": "The `feeds.throttle_scope` module-level assignments sitting between function definitions are awkward, and DRF offers cleaner ways to configure throttling.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "cache.clear() runs in Custom...
null
GreedyBear-Project__GreedyBear__934
GreedyBear-Project/GreedyBear
934
defect
b01e3e04ab8a0db3170ffd1091969c59913145b6
8ed025dcf33d7fb5f5ed6e58105c94b4f174a250
rDNS-based noise filtering for known scanners. Closes #527
# Description Add a daily reverse DNS cron job that identifies IPs belonging to known scanning services (Shodan, Censys, Onyphe, etc.) and marks them as "known scanner" via `ip_reputation`. This implements step 2 of #527 — rDNS-based filtering, decoupled from the extraction pipeline. **What it do...
diff --git a/api/views/utils.py b/api/views/utils.py index 04052f950..1bb14c12d 100644 --- a/api/views/utils.py +++ b/api/views/utils.py @@ -92,6 +92,8 @@ def apply_default_filters(self, query_params): self.exclude_reputation.append("mass scanner") if "include_tor_exit_nodes" not in query_params: ...
7
6
5
[{"id": "G0", "claim": "Use the existing Tag model instead of introducing a new ReverseDNSRecord model, so the DNS information is automatically available at the API endpoints.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The DNS lookup logic won't perf...
null
GreedyBear-Project__GreedyBear__950
GreedyBear-Project/GreedyBear
950
defect
acd0688a8a75fe590eb06b954e2e0e0a303f6b9b
32a288d89f390a5b009ef13f87eaeb1308c7f700
fix(security): Secure ALLOWED_HOSTS configuration. Closes #925
# Description Make `ALLOWED_HOSTS` configurable via the `DJANGO_ALLOWED_HOSTS` environment variable (comma-separated) instead of hardcoding `["*"]`. Falls back to `["*"]` for backward compatibility so no existing instance breaks, but logs a **WARNING** in production (`DEBUG=False`) when the variable is not set. Also...
diff --git a/docker/env_file_template b/docker/env_file_template index 0af03a608..7cc1db354 100644 --- a/docker/env_file_template +++ b/docker/env_file_template @@ -1,6 +1,12 @@ # Required Secrets ENVIRONMENT=production DJANGO_SECRET= + +# Comma-separated list of allowed hostnames for Django's ALLOWED_HOSTS setting....
2
2
1
[{"id": "G0", "claim": "The DJANGO_ALLOWED_HOSTS line in docker/env_file_template should be uncommented, to be consistent with how the other env vars are done in the template.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Logging at settings-import time...
null
GreedyBear-Project__GreedyBear__983
GreedyBear-Project/GreedyBear
983
defect
06a17edc74a5d35b1d14ceeedc01b5d0be654000
603f8515abf57ced775d4af00f4507d20bc2f7c9
Attack Origin Visualizer for Dashboard. Closes #955
# Description Adds two new visualisation widgets to the Dashboard that show where attacks are originating from, using the existing `attacker_country` field already populated on IOC records. ### Related issues #955 #524 ### Type of change - [x] New feature (non-breaking change which adds functionality). ...
diff --git a/api/views/statistics.py b/api/views/statistics.py index 347dfa1a1..fc92e0516 100644 --- a/api/views/statistics.py +++ b/api/views/statistics.py @@ -77,6 +77,22 @@ def enrichment(self, request, pk=None): return HttpResponseServerError() return self.__aggregation_response_static_statist...
17
9
1
[{"id": "G0", "claim": "AttackOriginMap adds non-trivial client behavior with no frontend tests; add a small test that mocks the countries request and asserts the loading/error/empty states.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Forcing d3-colo...
null
GreedyBear-Project__GreedyBear__993
GreedyBear-Project/GreedyBear
993
defect
5cff476d1247df002a0449341e8c71c2ebb34106
f766dec3beb2a652e8194ab29668419ff75d5677
Fix unauthenticated feeds memory exhaustion DoS. Closes #844
# Description This PR fixes a critical Memory Exhaustion Denial of Service (DoS) vulnerability in the unauthenticated `/api/feeds/` endpoint, where an unbounded `feed_size` parameter could be exploited to crash the application's worker processes due to out-of-memory (OOM) errors. As discussed by the maintainers, ...
diff --git a/api/views/feeds.py b/api/views/feeds.py index 521876bb0..c68b5898c 100644 --- a/api/views/feeds.py +++ b/api/views/feeds.py @@ -52,10 +52,13 @@ def feeds(request, feed_type, attack_type, prioritize, format_): """ logger.info(f"request /api/feeds with params: feed type: {feed_type}, attack_type: {...
2
2
1
[{"id": "G0", "claim": "The tests added for undocumented query parameters only assert a 200 status and do not actually verify that the undocumented parameters are ignored.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The allow list is written twice (o...
null
GregTechCE__GregTech__1384
GregTechCE/GregTech
1,384
defect
0ae8688b68d079d3121522af00f702e240a66d3c
1faa0500817b280cb75350f1f016bebe41026102
Fix Logic Bugs and Improve Utility of Multiblock Voiding Fix Code
**What:** This PR addresses several shortcomings with the multiblock voiding fix code provided via #1333 and revisions thereto in #1337, which were released as part of GTCE 1.10.8.599. The specific issues are as follows: 1. `ItemStack`s provided to `InventoryUtils#simulateItemStackMerge()` as items to merge, where...
diff --git a/src/main/java/gregtech/api/util/InventoryUtils.java b/src/main/java/gregtech/api/util/InventoryUtils.java index 69ac080c77..25e30119d9 100644 --- a/src/main/java/gregtech/api/util/InventoryUtils.java +++ b/src/main/java/gregtech/api/util/InventoryUtils.java @@ -1,25 +1,29 @@ package gregtech.api.util; +...
4
4
1
[{"id": "G0", "claim": "Replace the assert statements in apportionStack with if checks that throw IllegalArgumentException.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Separate StreamUtils into two files because mixing highly abstract logic and c...
null
GregTechCEu__GregTech-Modern__3698
GregTechCEu/GregTech-Modern
3,698
defect
f0083cd2fca737a4a5b1e07c06a64757ee269f85
61fa9a49384d87d354b207f38ae449903306485e
Separate out recipe types per test
## What Create a new GTRecipeType per testing class ## Implementation Details Opens up machine.setRecipeType() this should ONLY BE USED for testing I am open to hear other options, but I can't think of any else also tests that are currently being written, I will rewrite to use this later :prayge: ## Outcom...
diff --git a/src/main/java/com/gregtechceu/gtceu/api/machine/WorkableTieredMachine.java b/src/main/java/com/gregtechceu/gtceu/api/machine/WorkableTieredMachine.java index cdfe1dea696..20af76e40c5 100644 --- a/src/main/java/com/gregtechceu/gtceu/api/machine/WorkableTieredMachine.java +++ b/src/main/java/com/gregtechceu/...
7
7
0
[{"id": "G0", "claim": "Rename the static field LCRrecipeType to LCR_RECIPE_TYPE in InputSeparationTest, per the constant naming convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the static fields LCRrecipeType and CRrecipeType t...
null
GregTechCEu__GregTech-Modern__3833
GregTechCEu/GregTech-Modern
3,833
defect
3bebc218e3c53e1698cdca24c5e0ae3317edcc53
e22097cefca4bc9f203d2f3935f4be18f7fd774f
Fix AdjacencyBlockCondition
## What AdjacencyBlockCondition suffered the same problems that the AdjacencyFluidCondition had. This generalizes the solution that we implemented for the fluid condition and lets us used it for the block condition too Also: - Added tests for both and cleaned up the serialization tests - Added docs for Adjacen...
diff --git a/docs/content/Modpacks/Changes/v7.2.0.md b/docs/content/Modpacks/Changes/v7.2.0.md index 5b300fd434a..4d1435f49bc 100644 --- a/docs/content/Modpacks/Changes/v7.2.0.md +++ b/docs/content/Modpacks/Changes/v7.2.0.md @@ -27,5 +27,7 @@ Previously, rock breaker recipes used the `addData("fluidA", ...)` methods. ...
1
1
0
[{"id": "G0", "claim": "The renaming of encodeHolderSet to encodeSingleHolderSet serves no purpose and should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GregTechCEu__GregTech-Modern__3961
GregTechCEu/GregTech-Modern
3,961
defect
6c6131c379b058540fe9e870c6a7475f04032570
d21a67423e6532ac5a1dc3e491255d85f7b7bdcd
Read and Display Subtick Overclock Parallels separately from Hatch-based Parallels
## What When a Machine is performing recipes in Parallel, Parallels from hatches/coils/etc and Parallels from Subtick Overclocks are multiplied together into a single number. This makes it ambiguous where exactly your parallels are coming from. This separates Parallels and Subtick Parallels into two separate GTReci...
diff --git a/src/generated/resources/assets/gtceu/lang/en_ud.json b/src/generated/resources/assets/gtceu/lang/en_ud.json index 8aa7717610e..a13a915b714 100644 --- a/src/generated/resources/assets/gtceu/lang/en_ud.json +++ b/src/generated/resources/assets/gtceu/lang/en_ud.json @@ -1749,6 +1749,7 @@ "config.gtceu.opti...
10
9
3
[{"id": "G0", "claim": "The `parallels` field of OCResult already carries the subtick parallels, so adding a separate `subtickParallels` field to the record is redundant unless someone plans an OCLogic doing regular parallels, which should be a modifier instead.", "category": "design", "verdict": "supported", "priority...
null