feat: add policy deployment status tracking with cluster-level rule state monitoring and live firewall rule version comparison
Add policy_read_payload helper to build policy response with deployment status, implement nexafabric_rule_version to parse policy ID and version from rule comments, add policy_deployment_status to check active/stale/partial/unresolved states by comparing expected rules from preview against live firewall rules per cluster with version matching, extend PolicyRead schema with
This commit is contained in:
@@ -309,6 +309,7 @@ class PolicyRead(OrmModel):
|
||||
enforcement_mode: str
|
||||
definition: dict[str, Any]
|
||||
last_compiled: dict[str, Any] | None
|
||||
deployment_status: dict[str, Any] | None = None
|
||||
|
||||
|
||||
class WorkloadInsight(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user