Skip to content

Commit 44f07b7

Browse files
authored
Merge pull request #55 from ASTRAOS-de/dev
Dev
2 parents 5d27a67 + b75ca69 commit 44f07b7

38 files changed

Lines changed: 283 additions & 429 deletions

.github/workflows/build_test_linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
- main
66
- dev
77
pull_request:
8-
branches:
9-
- main
108
jobs:
119
build_test_linux:
1210
name: ${{ matrix.python-version }} on ${{ matrix.os }}
@@ -15,8 +13,10 @@ jobs:
1513
fail-fast: false
1614
matrix:
1715
os: [ "ubuntu-latest" ]
18-
python-version: [ "3.11",
19-
"3.10",
16+
python-version: [
17+
"3.12",
18+
"3.13",
19+
"3.14"
2020
]
2121

2222
steps:

.github/workflows/build_test_macos.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
- main
66
- dev
77
pull_request:
8-
branches:
9-
- main
108
jobs:
119
build_test_macos:
1210
name: ${{ matrix.python-version }} on ${{ matrix.os }}
@@ -15,8 +13,9 @@ jobs:
1513
fail-fast: false
1614
matrix:
1715
os: [ "macos-14" ]
18-
python-version: [ "3.11",
19-
"3.10",
16+
python-version: [ "3.12",
17+
"3.13",
18+
"3.14"
2019
]
2120

2221
steps:

.github/workflows/formatting.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
- main
77
- dev
88
pull_request:
9-
branches:
10-
- main
119

1210
jobs:
1311
build:
@@ -16,10 +14,10 @@ jobs:
1614
steps:
1715
- uses: actions/checkout@v4.2.0
1816

19-
- name: Setup py-3.11
17+
- name: Setup py-3.14
2018
uses: actions/setup-python@v4
2119
with:
22-
python-version: '3.11'
20+
python-version: '3.14'
2321
cache: 'pip'
2422
cache-dependency-path: |
2523
requirements/requirements.*.txt

.github/workflows/publish_dev.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
ref: ${{ github.event.pull_request.base.ref }}
125125

126126
- name: Setup Docker buildx
127-
uses: docker/setup-buildx-action@v3
127+
uses: docker/setup-buildx-action@v4
128128

129129
- name: Log into registry ${{ env.REGISTRY }}
130130
uses: docker/login-action@v3
@@ -143,12 +143,10 @@ jobs:
143143
type=raw,value=latest-dev
144144
145145
- name: Build and push Docker image
146-
uses: docker/build-push-action@v5
146+
uses: docker/build-push-action@v6
147147
with:
148148
context: .
149149
push: true
150150
tags: ${{ steps.meta.outputs.tags }}
151151
labels: ${{ steps.meta.outputs.labels }}
152152
file: ./docker/dockerfiles/Dockerfile.${{ matrix.container }}
153-
cache-from: type=gha
154-
cache-to: type=gha,mode=max

.github/workflows/publish_main.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
echo "major_minor=v${MAJOR}.${MINOR}" >> "$GITHUB_OUTPUT"
150150
151151
- name: Setup Docker buildx
152-
uses: docker/setup-buildx-action@v3
152+
uses: docker/setup-buildx-action@v4
153153

154154
- name: Log into registry ${{ env.REGISTRY }}
155155
uses: docker/login-action@v3
@@ -170,12 +170,10 @@ jobs:
170170
type=raw,value=latest
171171
172172
- name: Build and push Docker image
173-
uses: docker/build-push-action@v5
173+
uses: docker/build-push-action@v6
174174
with:
175175
context: .
176176
push: true
177177
tags: ${{ steps.meta.outputs.tags }}
178178
labels: ${{ steps.meta.outputs.labels }}
179179
file: ./docker/dockerfiles/Dockerfile.${{ matrix.container }}
180-
cache-from: type=gha
181-
cache-to: type=gha,mode=max

.github/workflows/test_coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ "ubuntu-latest" ]
20-
python-version: [ "3.11" ]
20+
python-version: [ "3.14" ]
2121
permissions:
2222
issues: write
2323
pull-requests: write
@@ -55,7 +55,7 @@ jobs:
5555
if: steps.pip-cache.outputs.cache-hit != 'true'
5656
run: |
5757
python -m pip install --upgrade pip
58-
python -m pip install -r requirements/requirements.dev.txt -r requirements/requirements.detector.txt -r requirements/requirements.logcollector.txt -r requirements/requirements.prefilter.txt -r requirements/requirements.inspector.txt -r requirements/requirements.logserver.txt
58+
python -m pip install -r requirements/requirements.dev.txt -r requirements/requirements.detector.txt -r requirements/requirements.logcollector.txt -r requirements/requirements.prefilter.txt -r requirements/requirements.inspector.txt -r requirements/requirements.logserver.txt -r requirements/requirements.alerter.txt
5959
6060
- name: Test
6161
run: |

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353

5454
## Getting Started
5555

56+
### Requirements
57+
58+
HAMSTRING currently supports Python 3.12 through 3.14.
59+
5660
#### Run **HAMSTRING** using Docker Compose:
5761
```sh
5862
HOST_IP=127.0.0.1 docker compose -f docker/docker-compose.yml --profile prod up

config.yaml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,33 +46,33 @@ pipeline:
4646
max_workers: 1
4747
instances:
4848
dga_collector:
49-
max_workers: 2
49+
max_workers: 1
5050
domainator_collector:
51-
max_workers: 2
51+
max_workers: 1
5252
log_filtering.prefilter:
5353
executor: thread
54-
max_workers: 2
54+
max_workers: 1
5555
instances:
5656
dga_filter:
57-
max_workers: 2
57+
max_workers: 1
5858
no_filter:
59-
max_workers: 2
59+
max_workers: 1
6060
data_inspection.inspector:
6161
executor: thread
6262
max_workers: 2
6363
instances:
6464
dga_inspector:
65-
max_workers: 2
65+
max_workers: 1
6666
no_inspector:
67-
max_workers: 2
67+
max_workers: 1
6868
data_analysis.detector:
6969
executor: thread
70-
max_workers: 2
70+
max_workers: 1
7171
instances:
7272
RF-dga_detector:
73-
max_workers: 2
73+
max_workers: 1
7474
domainator:
75-
max_workers: 3
75+
max_workers: 2
7676
domainator_attributor:
7777
max_workers: 1
7878
domainator_attributor_behaviour:
@@ -83,12 +83,10 @@ pipeline:
8383
max_workers: 1
8484
pipeline.alerter:
8585
executor: thread
86-
max_workers: 2
86+
max_workers: 1
8787
instances:
8888
generic:
89-
max_workers: 2
90-
attributor:
91-
max_workers: 2
89+
max_workers: 1
9290
monitoring.agent:
9391
executor: thread
9492
max_workers: 2
@@ -197,7 +195,7 @@ pipeline:
197195
use_scaler: false
198196
checksum: a4aac4c585f1e614c3cf0d737e80b960c5de6e87b253f7cdd07125d9ce486476
199197
base_url: https://heibox.uni-heidelberg.de/d/0d5cbcbe16cd46a58021/
200-
threshold: 0.05
198+
threshold: 0.5
201199
consume_from: inspector
202200
inspector_name: "domainator_inspector"
203201
next_detectors:
@@ -218,7 +216,7 @@ pipeline:
218216
use_scaler: false
219217
checksum: d8f302edc166ecc80985838a30b5dff16ccc83480ea3c2480652f49c8f6b5e9b
220218
base_url: https://heibox.uni-heidelberg.de/d/0d5cbcbe16cd46a58021/
221-
threshold: 0.05
219+
threshold: 0.5
222220
consume_from: detector
223221
detector_name: "domainator"
224222
next_detectors: ""
@@ -236,7 +234,7 @@ pipeline:
236234
use_scaler: false
237235
checksum: 9a0970b4160b22f4c3c5ac99760f0ace5500dd25c5a195ff13254ad3c11d5dcd
238236
base_url: https://heibox.uni-heidelberg.de/d/0d5cbcbe16cd46a58021/
239-
threshold: 0.05
237+
threshold: 0.5
240238
consume_from: detector
241239
detector_name: "domainator"
242240
next_detectors: ""
@@ -254,7 +252,7 @@ pipeline:
254252
use_scaler: false
255253
checksum: 360bd26881beabce7e7581963240915de807c48b5e4a3501a657139f2ecb8a8b
256254
base_url: https://heibox.uni-heidelberg.de/d/0d5cbcbe16cd46a58021/
257-
threshold: 0.05
255+
threshold: 0.5
258256
consume_from: detector
259257
detector_name: "domainator"
260258
next_detectors: ""
@@ -288,7 +286,7 @@ pipeline:
288286
protocols:
289287
- dns
290288
interfaces:
291-
- eth0
289+
- wlp3s0
292290

293291
environment:
294292
kafka_brokers:
12.7 MB
Binary file not shown.

docker/docker-compose.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,19 @@
11
services:
2-
zookeeper:
3-
extends:
4-
file: "docker-compose/base/docker-compose.kafka.yml"
5-
service: zookeeper
6-
72
kafka1:
83
extends:
94
file: "docker-compose/base/docker-compose.kafka.yml"
105
service: kafka1
11-
depends_on:
12-
zookeeper:
13-
condition: service_healthy
146

157
kafka2:
168
extends:
179
file: "docker-compose/base/docker-compose.kafka.yml"
1810
service: kafka2
19-
depends_on:
20-
zookeeper:
21-
condition: service_healthy
2211

2312

2413
kafka3:
2514
extends:
2615
file: "docker-compose/base/docker-compose.kafka.yml"
2716
service: kafka3
28-
depends_on:
29-
zookeeper:
30-
condition: service_healthy
3117
clickhouse-server:
3218
extends:
3319
file: "docker-compose/base/docker-compose.clickhouse.yml"
@@ -305,8 +291,6 @@ networks:
305291
volumes:
306292
ch_data:
307293
ch_logs:
308-
kafka-data1:
309-
kafka-data2:
310-
kafka-data3:
311-
zk-data:
312-
zk-txn-logs:
294+
kafka-broker-data1:
295+
kafka-broker-data2:
296+
kafka-broker-data3:

0 commit comments

Comments
 (0)