-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(query): covered additional deprecated API versions in k8s rule #4830
Conversation
Scan submitted to Checkmarx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, @Churro 🙂
Your observations are always on point 🚀 Thank you so much for sharing them and contributing to KICS!
I would suggest including even more deprecated API versions If you do not mind. The comment below addresses my suggestion. Let me know what you think about it, please.
"ClusterRoleBinding": "rbac.authorization.k8s.io/v1", | ||
"Role": "rbac.authorization.k8s.io/v1", | ||
"RoleBinding": "rbac.authorization.k8s.io/v1", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}, | |
"batch/v1beta1": { | |
"CronJob": "batch/v1", | |
}, | |
"policy/v1beta1": { | |
"PodDisruptionBudget": "policy/v1", | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good suggestion, thank you! I also thought about these two additions but hesitated due to the fact that the substitutes for these deprecations were only introduced with Kubernetes v1.21. In other words, someone still running v1.20 would not be able to apply the recommended version without running into unforeseen issues. It seems that the 1.20 branch is also still maintained until 2022-02-28.
I'd therefore suggest to add the two deprecations you suggested only when 1.25 is released. Would you prefer having them added already now or would it be better to wait?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right. It would be better to add it when 1.25 is released! Thank you so much 😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Problem
Ingress
inextensions/v1beta1
recommendsapps/v1
but correct would benetworking.k8s.io/v1
negative.yaml
includes an Ingress withnetworking.k8s.io/v1beta1
but this API version is also deprecatedProposed Changes
I submit this contribution under the Apache-2.0 license.