Skip to content

v5.2.2#2041

Merged
mlodic merged 26 commits intomasterfrom
develop
Dec 27, 2023
Merged

v5.2.2#2041
mlodic merged 26 commits intomasterfrom
develop

Conversation

@mlodic
Copy link
Member

@mlodic mlodic commented Dec 27, 2023

Checklist for creating a new release

  • (optional) If we changed/added Docker Analyzers, we need to configure Docker Hub / Dependabot properly.
  • Update CHANGELOG.md for the new version
  • Change version number in docs/source/schema.yml and docker/.env
  • Verify CI Tests
  • Create release for the branch develop. A Github action should automatically create a Twitter post.
    Write the following statement there (change the version number):
please refer to the [Changelog](https://github.com/intelowlproject/IntelOwl/blob/develop/.github/CHANGELOG.md#v331)

WARNING: The release will be live within an hour!
  • Wait for dockerHub to finish the builds
  • Merge the PR to the master branch. Note: Only use "Merge and commit" as the merge strategy and not "Squash and merge". Using "Squash and merge" makes history between branches misaligned.
  • Remove the "wait" statement in the release description.

drosetti and others added 21 commits December 7, 2023 15:18
Signed-off-by: 0ssigeno <[email protected]>
* adjusted toast

* fix test

---------

Co-authored-by: Daniele Rosetti <[email protected]>
* added healthcheck and pull button

* test draft

* frontend tests

* adjusted toasts
* added rule to short variable names

* fix

* fixed rules

* fixed rules

* added todo comment

* fix

* added note

* fixed short var names

* fixes

* fix

* fix

* fix

* comment
* First not tested prototype

* Added _monkeypatch() skeleton

* Fixed a wrong condition in parameter validation

* Added config() function to prepare data for request

* Added hasattr() check for attributes

* First successful run

- Added check on existence of API parameter
- Added authorization header
- Added checks on parameters existence

* Fix _api_name parameter check

* Fixed parameter configuration

* Removed unused if statement

* Added support for UNIX timestamps and relative dates

* Renamed dns0 service to separate services

* Completed checks for not set parameters

* Added checks of existence for all parameters

* Added default Accept format header

* Simplified regex to match single relative date

* Fixed date check by forcing format

* Modified _api_key to be non required

* Made _api_key optional to support 10 free queries/day

* Added /rrsets API

* Moved files into separate dns0/ folder

* Created module structure and base file

* Extracted a common Mixin and applied to subclasses

* Resolved performance issue flagged by deepsource

* Added absolute import path

* Substituted dateutils with dateparser and updated requirements

* Updated Usage.md

* Added explanation in Advanced-Usage.md

* Fix dump

Signed-off-by: 0ssigeno <[email protected]>

* Black

Signed-off-by: 0ssigeno <[email protected]>

* Added analyzer config migrations

* Added new analyzers to FREE_TO_USE_ANALYZERS playbook

* Removed dns query type check

* Removed unused variable 'query'

* Added explicit default value in 'limit' parameter

* Added DNS0 api docs reference

* Solved deepsource warnings

* Added custom user agent

* Removed DNS0_rrsets_data

* Solved deepsource warning

* Added example JSON data

* Generalization of ids

Signed-off-by: 0ssigeno <[email protected]>

* Fix dumpplugin migration generation

Signed-off-by: 0ssigeno <[email protected]>

* Excluding id

Signed-off-by: 0ssigeno <[email protected]>

* Excluding id in migration

Signed-off-by: 0ssigeno <[email protected]>

* Added default parameter in test

* Added link to the DNS0 doc in plugin description

* Fix pipeline test #1

* Fix pipeline test n2

* Fix pipeline test n3

* Fix pipeline test n4

* Fix pipeline test n5

* Fix pipeline test n6

* Fix pipeline test n7

* Fix pipeline test n8

* Fix pipeline test n9

* Fix pipeline test n10

* Fix pipeline test n11

* Fix pipeline test n12

* Fix pipeline test n13

* Fix pipeline test n14

* Fix pipeline test n15

* Fix pipeline test n16

* Fix pipeline test n17

* Removed unused q parameter

---------

Signed-off-by: 0ssigeno <[email protected]>
Co-authored-by: 0ssigeno <[email protected]>
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.7.0 to 5.0.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v4.7.0...v5.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: 0ssigeno <[email protected]>
Signed-off-by: 0ssigeno <[email protected]>
Signed-off-by: 0ssigeno <[email protected]>
* Elastic bi

Signed-off-by: 0ssigeno <[email protected]>

* Elastic bi + fix elastic package

Signed-off-by: 0ssigeno <[email protected]>

* Update api_app/queryset.py

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>

* Fix

Signed-off-by: 0ssigeno <[email protected]>

* Index template

Signed-off-by: 0ssigeno <[email protected]>

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

---------

Signed-off-by: 0ssigeno <[email protected]>
Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>
Copy link
Contributor

@code-review-doctor code-review-doctor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Worth considering though. View full project report here.

Comment on lines 913 to 915
sent_to_bi = models.BooleanField(
default=False, null=False, blank=False, editable=False
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sent_to_bi = models.BooleanField(
default=False, null=False, blank=False, editable=False
)
sent_to_bi = models.BooleanField(default=False, editable=False)

False is the default value Django uses for null, so null=False can be removed. Read more.

Similarly, redundant default arguments can be removed.

@codecov
Copy link

codecov bot commented Dec 27, 2023

Codecov Report

Attention: 176 lines in your changes are missing coverage. Please review.

Comparison is base (4bdc711) 75.63% compared to head (aefb8bb) 75.58%.
Report is 2 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2041      +/-   ##
==========================================
- Coverage   75.63%   75.58%   -0.06%     
==========================================
  Files         464      482      +18     
  Lines       13824    14437     +613     
  Branches     1431     1496      +65     
==========================================
+ Hits        10456    10912     +456     
- Misses       2805     2927     +122     
- Partials      563      598      +35     
Files Coverage Δ
...nager/migrations/0055_analyzerreport_sent_to_bi.py 100.00% <100.00%> (ø)
api_app/analyzers_manager/models.py 81.56% <100.00%> (+0.26%) ⬆️
api_app/analyzers_manager/serializers.py 100.00% <100.00%> (ø)
...ager/migrations/0027_connectorreport_sent_to_bi.py 100.00% <100.00%> (ø)
api_app/connectors_manager/models.py 92.59% <100.00%> (+0.59%) ⬆️
api_app/connectors_manager/serializers.py 100.00% <100.00%> (ø)
...nager/migrations/0014_ingestorreport_sent_to_bi.py 100.00% <100.00%> (ø)
api_app/ingestors_manager/models.py 83.63% <100.00%> (+0.61%) ⬆️
api_app/models.py 85.39% <100.00%> (+0.02%) ⬆️
..._manager/migrations/0021_pivotreport_sent_to_bi.py 100.00% <100.00%> (ø)
... and 30 more

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b630e8d...aefb8bb. Read the comment docs.

mlodic and others added 5 commits December 27, 2023 10:09
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Commits](github/codeql-action@v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [authlib](https://github.com/lepture/authlib) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/lepture/authlib/releases)
- [Changelog](https://github.com/lepture/authlib/blob/master/docs/changelog.rst)
- [Commits](authlib/authlib@v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: authlib
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Added IP support for DNS0_rrsets_data analyzer

* Added include_subdomain parameter

* Typo

* Restore original state

* Added alter migration to add a new supported type and new parameter

* fix deepsource
@mlodic mlodic merged commit 872b113 into master Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants