Skip to content

Commit

Permalink
Fix security concerns
Browse files Browse the repository at this point in the history
Signed-off-by: QuentinBisson <[email protected]>
  • Loading branch information
QuentinBisson committed Jun 27, 2023
1 parent 898dd5d commit 679eb61
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 66 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s

## [Unreleased]

### Fixed

- Fix security concerns.

## [1.2.0] - 2023-06-27

### Added
Expand Down
41 changes: 0 additions & 41 deletions helm/sloth/templates/kyverno-policy-exception.yaml

This file was deleted.

55 changes: 42 additions & 13 deletions helm/sloth/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,6 @@
"imagePullSecrets": {
"type": "array"
},
"kyvernoPolicyExceptions": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"namespace": {
"type": "string"
}
}
},
"labels": {
"type": "object"
},
Expand Down Expand Up @@ -149,10 +138,50 @@
"type": "object",
"properties": {
"container": {
"type": "null"
"type": "object",
"properties": {
"allowPrivilegeEscalation": {
"type": "boolean"
},
"capabilities": {
"type": "object",
"properties": {
"drop": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"seccompProfile": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
}
}
},
"pod": {
"type": "null"
"type": "object",
"properties": {
"runAsNonRoot": {
"type": "boolean"
},
"runAsUser": {
"type": "integer"
},
"seccompProfile": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
}
}
}
}
},
Expand Down
24 changes: 12 additions & 12 deletions helm/sloth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ customSloConfig:
# effect: NoSchedule

securityContext:
pod: null
# fsGroup: 100
# runAsGroup: 1000
# runAsNonRoot: true
# runAsUser: 100
container: null
# allowPrivilegeEscalation: false

# Enable Kyverno PolicyException
kyvernoPolicyExceptions:
enabled: true
namespace: giantswarm
pod:
runAsNonRoot: true
runAsUser: 65534
seccompProfile:
type: RuntimeDefault
container:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL

0 comments on commit 679eb61

Please sign in to comment.