Repository navigation
Conversation
…stry and scan output
…dsWithHeaderVisualizer component
This reverts commit 82025cc.
- 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, | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.