Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
chore: fixed false positive security errors (#9411)
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
  • Loading branch information
odubajDT committed Jan 10, 2023
1 parent 74f793f commit dbb9986
Show file tree
Hide file tree
Showing 14 changed files with 99 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/.kubescape/controls-inputs.json
Expand Up @@ -3,7 +3,8 @@
"ecr.*amazonaws.com",
".*.gcr.io",
".*azurecr.io",
"docker.io"
"docker.io",
"docker.keptn.sh"
],
"max_critical_vulnerabilities": [
"5"
Expand Down Expand Up @@ -59,7 +60,9 @@
"_key_",
"_secret_"
],
"sensitiveValuesAllowed": [],
"sensitiveValuesAllowed": [
"secret-service:8080"
],
"servicesNames": [
"nifi-service",
"argo-server",
Expand Down
82 changes: 82 additions & 0 deletions .github/.kubescape/exceptions.json
Expand Up @@ -14,5 +14,87 @@
}
}
]
},
{
"name": "auto-map-service-account",
"policyType": "postureExceptionPolicy",
"actions": [
"alertOnly"
],
"resources": [
{
"designatorType": "Attributes",
"attributes": {
"kind": "ServiceAccount",
"name": "keptn-nats"
}
},
{
"designatorType": "Attributes",
"attributes": {
"kind": "Deployment",
"name": "keptn-mongo"
}
}
],
"posturePolicies": [
{
"controlID": "C-0034"
}
]
},
{
"name": "ingress-egress-blocked",
"policyType": "postureExceptionPolicy",
"actions": [
"alertOnly"
],
"resources": [
{
"designatorType": "Attributes",
"attributes": {
"kind": "Deployment"
}
},
{
"designatorType": "Attributes",
"attributes": {
"kind": "StatefulSet"
}
}
],
"posturePolicies": [
{
"controlID": "C-0030"
}
]
},
{
"name": "immutable-container-filesystem",
"policyType": "postureExceptionPolicy",
"actions": [
"alertOnly"
],
"resources": [
{
"designatorType": "Attributes",
"attributes": {
"kind": "Deployment",
"name": "api-gateway-nginx"
}
},
{
"designatorType": "Attributes",
"attributes": {
"kind": "Deployment",
"name": "keptn-mongo"
}
}
],
"posturePolicies": [
{
"controlID": "C-0017"
}
]
}
]
1 change: 1 addition & 0 deletions installer/manifests/keptn/templates/api-gateway-nginx.yaml
Expand Up @@ -366,6 +366,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: api-gateway-nginx
namespace: {{ .Release.Namespace }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: api-gateway-nginx
spec:
Expand Down
1 change: 1 addition & 0 deletions installer/manifests/keptn/templates/api-service.yaml
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: api-service
namespace: {{ .Release.Namespace }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: api-service
spec:
Expand Down
1 change: 1 addition & 0 deletions installer/manifests/keptn/templates/approval-service.yaml
Expand Up @@ -4,6 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: approval-service
namespace: {{ .Release.Namespace }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: approval-service
spec:
Expand Down
1 change: 1 addition & 0 deletions installer/manifests/keptn/templates/bridge.yaml
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: bridge
namespace: {{ .Release.Namespace }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: bridge
spec:
Expand Down
Expand Up @@ -4,6 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: lighthouse-service
namespace: {{ .Release.Namespace }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: lighthouse-service
spec:
Expand Down
1 change: 1 addition & 0 deletions installer/manifests/keptn/templates/mongodb-datastore.yaml
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: mongodb-datastore
namespace: {{ .Release.Namespace }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: mongodb-datastore
spec:
Expand Down
Expand Up @@ -4,6 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: remediation-service
namespace: {{ .Release.Namespace }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: remediation-service
spec:
Expand Down
1 change: 1 addition & 0 deletions installer/manifests/keptn/templates/resource-service.yaml
Expand Up @@ -18,6 +18,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: resource-service
namespace: {{ .Release.Namespace }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: resource-service
spec:
Expand Down
1 change: 1 addition & 0 deletions installer/manifests/keptn/templates/secret-service.yaml
Expand Up @@ -32,6 +32,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: secret-service
namespace: {{ .Release.Namespace }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: secret-service
spec:
Expand Down
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: shipyard-controller
namespace: {{ .Release.Namespace }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: shipyard-controller
spec:
Expand Down
Expand Up @@ -4,6 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: statistics-service
namespace: {{ .Release.Namespace }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: statistics-service
spec:
Expand Down
1 change: 1 addition & 0 deletions installer/manifests/keptn/templates/webhook-service.yaml
Expand Up @@ -4,6 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: webhook-service
namespace: {{ .Release.Namespace }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: webhook-service
spec:
Expand Down

0 comments on commit dbb9986

Please sign in to comment.