Skip to content

Commit

Permalink
Use Karton persistent headers for 'quality' and 'share_3rd_party' (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 committed Jul 20, 2023
1 parent 902276c commit 72cb7e6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
depends_on:
- postgres
- redis
image: certpl/mwdb:v2.9.1
image: certpl/mwdb:v2.10.0
restart: on-failure
env_file:
# NOTE: use gen_vars.sh in order to generate this file
Expand All @@ -22,7 +22,7 @@ services:
build:
context: .
dockerfile: deploy/docker/Dockerfile-web
image: certpl/mwdb-web:v2.9.1
image: certpl/mwdb-web:v2.10.0
ports:
- "80:80"
restart: on-failure
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
author = 'CERT Polska'

# The full version, including alpha/beta/rc tags
release = '2.9.1'
release = '2.10.0'


# -- General configuration ---------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions mwdb/core/karton.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def send_file_to_karton(file) -> str:
headers={
"type": "sample",
"kind": "raw",
},
headers_persistent={
"quality": feed_quality,
"share_3rd_party": file.share_3rd_party,
},
Expand Down Expand Up @@ -81,6 +83,8 @@ def send_config_to_karton(config) -> str:
"type": "config",
"kind": config.config_type,
"family": config.family,
},
headers_persistent={
"share_3rd_party": config.share_3rd_party,
},
payload={
Expand All @@ -105,6 +109,8 @@ def send_blob_to_karton(blob) -> str:
headers={
"type": "blob",
"kind": blob.blob_type,
},
headers_persistent={
"share_3rd_party": blob.share_3rd_party,
},
payload={
Expand Down
2 changes: 1 addition & 1 deletion mwdb/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
except IOError:
git_revision = ""

app_version = "2.9.1"
app_version = "2.10.0"
app_build_version = f"{app_version}+{git_revision}" if git_revision else app_version
4 changes: 2 additions & 2 deletions mwdb/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mwdb/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mwdb-web",
"version": "2.9.1",
"version": "2.10.0",
"private": true,
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ PyYAML==6.0.1
redis==4.5.4
boto3==1.24.38
typed-config==1.1.0
karton-core==5.1.0
karton-core==5.2.0
Authlib==0.15.4
prance==0.21.8.0 # apispec unpinned dependency
pyJWT==2.4.0
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""

setup(name="mwdb-core",
version="2.9.1",
version="2.10.0",
description="MWDB Core malware database",
long_description=LONG_DESCRIPTION,
author="CERT Polska",
Expand Down

0 comments on commit 72cb7e6

Please sign in to comment.