kyma-project / community

Provides general guidelines, contributing, and maintaining rules for all who add content to Kyma.
https://kyma-project.io/community/
Apache License 2.0
44 stars 108 forks source link

Integration of Policy-based Rules for Resource Validation in Kyma Dashboard #889

Closed valentinvieriu closed 8 months ago

valentinvieriu commented 9 months ago

Decision log

Name Description
Title Integration of Policy-based Rules for Resource Validation in Kyma Dashboard
Due date 2024-02-14
Status Proposed on 2024-02-14
Decision type Binary
Affected decisions None

Decision Record: Policy-based Rules Integration for Kyma Cluster Scanning and Guidance

Decision Log

Name Description
Title Implementing Policy-based Rules for Kyma Cluster Scanning and Guidance
Due date 2024-03-31
Status Proposed on 2024-02-14
Decision type Binary
Affected decisions None

Context

Kyma Dashboard currently has an unreleased feature, Scan My Cluster, that uses Policy-based rules imported from Datree and custom rules to scan the Kyma cluster and provide guidance on which Kubernetes resources are not following the selected rules. This feature allows for dynamic deployment of rules along with any Kyma module, enabling users to customize the scanning and guidance process based on their specific requirements.

The choice of Datree's solution was motivated by their extensive range of open-source built-in policies and the ease with which JSON Schema can be consumed on the frontend, aligning with the declarative language of Kubernetes resources.

The purpose of this decision is to determine whether to finish the implementation of this feature for Kyma Dashboard and plan to use the same mechanics for the upcoming Kyma Companion AI feature.

Decision

The decision is to proceed with the implementation of the Policy-based Rules Integration for Scan My Cluster feature for Kyma Dashboard and plan to use the same mechanics for the Kyma Companion AI feature. This decision involves:

The integration aims to provide users with actionable feedback on resource configurations that do not align with selected rules, thereby facilitating compliance with best practices and organizational standards.

Consequences

Advantages:

Disadvantages:

pbochynski commented 8 months ago

I am ok with the policy based rules, but without hard dependency to Datree project (as it seems to be not actively maintained)

valentinvieriu commented 8 months ago

Thank you for the confirmation. By silent agreement, this decision record is approved.