datreeio / datree

Prevent Kubernetes misconfigurations from reaching production (again 😤 )! From code to cloud, Datree provides an E2E policy enforcement solution to run automatic checks for rule violations. See our docs: https://hub.datree.io
https://datree.io
Apache License 2.0
6.39k stars 363 forks source link

Datree update causing validation errors on non-existent fields in deployment files #889

Closed IAMManuel closed 1 year ago

IAMManuel commented 1 year ago

Hello,

I'm writing to report an issue that we've encountered with a recent Datree update. We use Datree to validate our deployment files, and after the update, we started seeing validation errors on non-existent fields.

Specifically, Datree is now validating fields that do not exist in our deployment files, causing unnecessary errors and slowing down our development process. We believe this is due to a recent update in Datree's validation rules.

We would like to request that the validation rules be updated to exclude non-existent fields in the deployment file, or to provide an option to disable this type of validation. This would help us maintain our development speed and prevent unnecessary errors.

I've attached a lite version of our deployment file. As you could see, we don't use anything from the like of GitHub secrets, Heroku secrets, Okta secrets and others in our file.

You can check the raw log and the yml file in the zip datree.zip

adifayer commented 1 year ago

Hey @IAMManuel, thank you for reporting on this issue! I was able to reproduce the bug, we're working on a fix as we speak :)

adifayer commented 1 year ago

@IAMManuel Can you please share which CLI version you used before the upgrade? (the version that doesn't reproduce the bug)