feat(security): converge sanitized Wazuh alert ingress

This commit is contained in:
ogt
2026-07-15 13:53:42 +08:00
parent 266d607a29
commit 748eb1fe3a
14 changed files with 1218 additions and 52 deletions

View File

@@ -747,8 +747,8 @@ class Settings(BaseSettings):
ENABLE_IWOOOS_WAZUH_MANAGER_POSTURE_EXECUTOR: bool = Field(
default=False,
description=(
"True=periodically enqueue the allowlisted no-write Wazuh manager "
"posture playbook into the existing Ansible controlled executor."
"True=periodically converge the allowlisted Wazuh sanitized alert "
"ingress before enqueueing the no-write manager posture playbook."
),
)
IWOOOS_WAZUH_MANAGER_POSTURE_FRESHNESS_HOURS: int = Field(
@@ -756,7 +756,7 @@ class Settings(BaseSettings):
ge=1,
le=24,
description=(
"Minimum freshness window between Wazuh manager posture executor runs."
"Minimum freshness window between Wazuh ingress and posture runs."
),
)
AWOOOP_ANSIBLE_CONTROLLED_APPLY_ALLOWED_RISK_LEVELS: str = Field(
@@ -812,6 +812,13 @@ class Settings(BaseSettings):
default="/etc/ssh-mcp/known_hosts",
description="known_hosts path for Ansible check-mode SSH transport.",
)
AWOOOP_ANSIBLE_BECOME_PASSWORD_FILE: str = Field(
default="/run/secrets/host112-become/password",
description=(
"Optional Ansible become password file. The value is consumed by "
"Ansible through its password-file contract and never placed in argv."
),
)
AWOOOP_ANSIBLE_CHECK_MODE_CANDIDATE_MAX_AGE_HOURS: int = Field(
default=24,
ge=1,