Skip to content

Commit

Permalink
Minor improvements to Falco model
Browse files Browse the repository at this point in the history
  • Loading branch information
marwinski committed Feb 28, 2025
1 parent 29226df commit 7530243
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions dso/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,21 +562,24 @@ class ExceptionTemplate:
template: str

@dataclasses.dataclass(frozen=True)
class ClusterNode:
cluster: str
node: str
class Node:
name: str
count: int

@dataclasses.dataclass(frozen=True)
class Cluster:
name: str
nodes: list[Node]

@dataclasses.dataclass(frozen=True)
class FalcoEventGroup(Finding):
"""
FalcoEventGroup represents a group of Falco events that are similar in
nature. In almost all cases those are false posities and can be ignored.
Falco exceptions can be defined but they can be silenced here.
"""
rule: str
message: str
nodes: list[ClusterNode]
clusters: list[Cluster]
landscape: str
project: str
priority: enum.StrEnum
Expand Down
1 change: 1 addition & 0 deletions github/compliance/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
_label_malware = 'malware/clamav'
_label_sast = 'compliance/sast'
_label_diki = 'compliance/diki'
_label_falco = 'security/falco'

_label_no_responsible = 'cfg/policy-violation/no-responsible'
_label_no_rule = 'cfg/policy-violation/no-rule'
Expand Down

0 comments on commit 7530243

Please sign in to comment.