Skip to content

6.0 - #181

Merged
tymees merged 118 commits into
mainfrom
develop
Nov 16, 2026
Merged

6.0#181
tymees merged 118 commits into
mainfrom
develop

Conversation

@tymees

@tymees tymees commented Nov 16, 2026

Copy link
Copy Markdown
Member

No description provided.

tymees added 30 commits November 9, 2026 08:45
- Updated template tags to add `filter_params` for improved query parameter handling.
- Adjusted dashboard charts to preserve and isolate filters in links.
- Added tests for `param_replace` and `filter_params` to ensure correct behavior.
- Replaced manual parsing logic with `jc` across multiple collectors for commands like `lsblk`, `df`, `group`, `passwd`, and `free`.
- Simplified existing parsing methods and enhanced code readability.
- Added `stdout_str` and `stderr_str` properties for `LinuxShellCommandResult` to streamline command output handling.
- Introduced `IPTables` and `IPTablesChain` models for structured representation of iptables data.
- Implemented `IPTableFactCollector` to parse iptables rules using `jc`.
- Added `IPTablesPortAccess` model to summarize allowed/denied sources per port.
- Enhanced `IPTables` collector to include port access data derived from `INPUT` chain rules.
- Updated parsing logic to identify port-specific rules and categorize access permissions.
…nd port-based access analysis

- Added comprehensive chain traversal logic, mimicking iptables first-match behavior.
- Introduced detailed port-based access analysis for both allowed and denied sources.
- Refactored existing parsing methods to include new fields and improve precision.
- Updated artifact models to support more granular state representation (`default_open`, `default_closed`).
Previously this was used by the old scanner component, which called this endpoint over http inside the docker network
@@ -1,3 +1,6 @@
from dataclasses import dataclass
from typing import Any
from __future__ import annotations

from dataclasses import dataclass
from typing import TYPE_CHECKING, Any, Iterable

from __future__ import annotations

from dataclasses import dataclass, field
Comment on lines +14 to +24
from hosts.search import (
ColumnSpec,
derive_match_columns,
evaluate_columns,
format_value,
get_language_spec,
get_searchable_fields,
parse_column,
parse_query,
search_hosts_by_scan_fields,
)
parse_query,
search_hosts_by_scan_fields,
)
from hosts.search.constants import Cardinality, ValueType
Comment on lines +5 to +12
from hosts.search.constants import (
Cardinality,
FieldKind,
LogicalOperator,
Section,
TokenType,
ValueType,
)
@@ -0,0 +1,126 @@
import unittest
from datetime import datetime
from pydantic import BaseModel, ValidationError
Comment on lines +5 to +10
from humitifier_common.artefacts.registry.registry import (
_ArtefactRegistry,
ArtefactType,
fact,
metric,
)
Comment on lines +11 to +15
from humitifier_common.scan_data import (
ScanInput,
ScanOutput,
get_scan_output_class,
)
Comment on lines +40 to +50
from .search import (
ColumnSpec,
derive_match_columns,
evaluate_columns,
format_value,
get_language_spec,
get_searchable_fields,
parse_column,
parse_query,
search_hosts_by_scan_fields,
)
@tymees
tymees merged commit eb2ea9e into main Nov 16, 2026
28 checks passed
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.

1 participant