Skip to content

KubernetesPolicyViolation

Structure Class

KubernetesPolicyViolation dataclass

Bases: _SerdeShape

Contains an assessment of a Kubernetes policy violation.

Attributes

affected_resource class-attribute instance-attribute
affected_resource: str | None = ...

The Kubernetes resource that the violation affects.

exposure_vector class-attribute instance-attribute
exposure_vector: str | None = ...

How the misconfiguration exposes the resource.

granted_access class-attribute instance-attribute
granted_access: str | None = ...

The access that the violation grants.

misconfiguration_impact class-attribute instance-attribute
misconfiguration_impact: str | None = ...

The potential impact of the misconfiguration.

subject class-attribute instance-attribute
subject: str | None = ...

The Kubernetes subject, such as a user, a group, or a service account, that the violation involves.

violation_type class-attribute instance-attribute
violation_type: str | None = ...

The type of the violation.