Skip to content

Commit ecd2e63

Browse files
feat: update issue map and tomls for kube-linter (#37)
Signed-off-by: Srijan Saurav <[email protected]> Co-authored-by: Srijan Saurav <[email protected]>
1 parent 13078d4 commit ecd2e63

File tree

11 files changed

+154
-1
lines changed

11 files changed

+154
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Hub of all open-source third-party static analyzers supported by DeepSource. Usa
66

77
| Analyzer name | Latest version | Language / Technology |
88
| :---------------------------------------------------------------------------- | :------------- | :-------------------- |
9-
| [stackrox/kube-linter](https://github.com/stackrox/kube-linter) | 0.6.4 | Kubernetes, Helm |
9+
| [stackrox/kube-linter](https://github.com/stackrox/kube-linter) | 0.7.6 | Kubernetes, Helm |
1010
| [aws-cloudformation/cfn-lint](https://github.com/aws-cloudformation/cfn-lint) | 0.83.3 | AWS CloudFormation |
1111
| [dart-lang/linter](https://github.com/dart-lang/sdk/tree/main/pkg/linter) | 3.2.0 | Dart, Flutter |
1212
| [crytic/slither](https://github.com/crytic/slither) | 0.10.0 | Solidity, Vyper |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
title = "ServiceMonitor selector mismatch"
3+
verbose_name = "dangling-servicemonitor"
4+
severity = "major"
5+
category = "antipattern"
6+
weight = 70
7+
description = """
8+
Indicates when a service monitor's selectors don't match any service. ServiceMonitors are a custom resource only used by the Prometheus operator (https://prometheus-operator.dev/docs/operator/design/#servicemonitor).
9+
10+
<!--more-->
11+
12+
## Remediation
13+
Check selectors and your services.
14+
"""
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
title = "Job TTL misconfigured"
3+
verbose_name = "job-ttl-seconds-after-finished"
4+
severity = "major"
5+
category = "antipattern"
6+
weight = 70
7+
description = """
8+
Indicates when standalone jobs do not set ttlSecondsAfterFinished and when jobs managed by cronjob do set ttlSecondsAfterFinished.
9+
10+
<!--more-->
11+
12+
## Remediation
13+
Set Job.spec.ttlSecondsAfterFinished. Unset CronJob.Spec.JobTemplate.Spec.ttlSecondsAfterFinished.
14+
"""
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
title = "Liveness probe port mismatch"
3+
verbose_name = "liveness-port"
4+
severity = "major"
5+
category = "antipattern"
6+
weight = 70
7+
description = """
8+
Indicates when containers have a liveness probe to a not exposed port.
9+
10+
<!--more-->
11+
12+
## Remediation
13+
Check which ports you've exposed and ensure they match what you have specified in the liveness probe.
14+
"""
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
title = "PDB unhealthy pod eviction policy"
3+
verbose_name = "pdb-unhealthy-pod-eviction-policy"
4+
severity = "major"
5+
category = "antipattern"
6+
weight = 70
7+
description = """
8+
Indicates when a PodDisruptionBudget does not explicitly set the unhealthyPodEvictionPolicy field.
9+
10+
<!--more-->
11+
12+
## Remediation
13+
Set unhealthyPodEvictionPolicy to AlwaysAllow. Refer to https://kubernetes.io/docs/tasks/run-application/configure-pdb/#unhealthy-pod-eviction-policy for more information.
14+
"""
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
title = "Missing/invalid priority class"
3+
verbose_name = "priority-class-name"
4+
severity = "major"
5+
category = "antipattern"
6+
weight = 70
7+
description = """
8+
Indicates when a deployment-like object does not use a valid priority class name
9+
10+
<!--more-->
11+
12+
## Remediation
13+
Set up the priority class name for your object to any accepted values.
14+
"""
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
title = "Readiness probe port mismatch"
3+
verbose_name = "readiness-port"
4+
severity = "major"
5+
category = "antipattern"
6+
weight = 70
7+
description = """
8+
Indicates when containers have a readiness probe to a not exposed port.
9+
10+
<!--more-->
11+
12+
## Remediation
13+
Check which ports you've exposed and ensure they match what you have specified in the readiness probe.
14+
"""
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
title = "Missing restart policy"
3+
verbose_name = "restart-policy"
4+
severity = "major"
5+
category = "antipattern"
6+
weight = 70
7+
description = """
8+
Indicates when a deployment-like object does not use a restart policy
9+
10+
<!--more-->
11+
12+
## Remediation
13+
Set up the restart policy for your object to 'Always' or 'OnFailure' to increase the fault tolerance.
14+
"""
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
title = "Privileged container allowed (SCC)"
3+
verbose_name = "scc-deny-privileged-container"
4+
severity = "critical"
5+
category = "security"
6+
weight = 90
7+
description = """
8+
Indicates when allowPrivilegedContainer SecurityContextConstraints set to true
9+
10+
<!--more-->
11+
12+
## Remediation
13+
SecurityContextConstraints has AllowPrivilegedContainer set to "true". Using this option is dangerous, please consider using allowedCapabilities instead. Refer to https://docs.openshift.com/container-platform/4.12/authentication/managing-security-context-constraints.html#scc-settings_configuring-internal-oauth for details.
14+
"""
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
title = "Startup probe port mismatch"
3+
verbose_name = "startup-port"
4+
severity = "major"
5+
category = "antipattern"
6+
weight = 70
7+
description = """
8+
Indicates when containers have a startup probe to a not exposed port.
9+
10+
<!--more-->
11+
12+
## Remediation
13+
Check which ports you've exposed and ensure they match what you have specified in the startup probe.
14+
"""

0 commit comments

Comments
 (0)