Add Windows Server vs Client differentiation, installed server roles introspection, dedicated /client-info directory, and best practice baseline analyzer
CI Test Suite / Run Component Tests & Pipeline Verification (push) Failing after 1m50s

This commit is contained in:
2026-10-11 09:37:05 +02:00
parent bcaae4a9ee
commit cccf928f29
11 changed files with 1902 additions and 38 deletions
+13 -2
View File
@@ -88,14 +88,25 @@ def get_recent_windows_logs(hours: int = 24, state: Optional[dict] = None) -> li
return collector.collect_logs(hours=hours)
try:
from src.common.system_info import get_os_details
except ImportError:
try:
from common.system_info import get_os_details
except ImportError:
get_os_details = lambda: {"os_type": "windows"}
def send_encrypted_logs_over_socket(config: dict, logs: list):
"""Streams logs to the LOGAR hub over mTLS or encrypted TCP envelope."""
return transport_send_encrypted_logs(config=config, logs=logs, os_type="windows")
node_os = get_os_details().get("os_type", "windows")
return transport_send_encrypted_logs(config=config, logs=logs, os_type=node_os)
def ensure_enrolled(config: dict, machine_id: str) -> bool:
"""Proactively ensures client certificate enrollment with the Hub if enrollment_secret is available."""
return transport_ensure_enrolled(config=config, machine_id=machine_id, os_type="windows")
node_os = get_os_details().get("os_type", "windows")
return transport_ensure_enrolled(config=config, machine_id=machine_id, os_type=node_os)
def main():