Skip to content

[Feature] Verify illegal policy additions and updates in the webhook #237

@Danny-Wei

Description

@Danny-Wei

Is your feature request related to a problem? Please describe.
The handling of illegal policy addition and update actions is implemented too late in the controller. Such erroneous modifications can disrupt the policy's state and lead to inconsistencies in the system.

Describe the solution you'd like
Implement pre-validation checks in the webhook to intercept illegal policy addition and update actions at an early stage. This proactive verification will prevent invalid operations from propagating further, ensuring the consistency and integrity of policy states.

Describe alternatives you've considered
None

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions