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

Commit

Permalink
add pss exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
bdehri committed Aug 15, 2023
1 parent 4fb3a49 commit 0f3aa7b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .nancy-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ CVE-2019-10743 until=2021-10-17
CVE-2022-29153
CVE-2022-29153
sonatype-2021-1401

# pkg:golang/k8s.io/apiserver@v0.20.12
CVE-2020-8561 until=2023-10-01

# pkg:golang/google.golang.org/grpc@v1.36.1
CVE-2023-32731 until=2023-10-01
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 adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Added required exceptions fot PSS.

## [0.8.0] - 2022-09-14

### Changed
Expand Down
36 changes: 36 additions & 0 deletions helm/azure-scheduled-events-app/templates/pss-exceptions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: kyverno.io/v2alpha1
kind: PolicyException
metadata:
name: {{ include "resource.default.name" . }}-exceptions
namespace: {{ include "resource.default.namespace" . }}
spec:
exceptions:
- policyName: require-run-as-nonroot
ruleNames:
- run-as-non-root
- autogen-run-as-non-root
- policyName: restrict-seccomp-strict
ruleNames:
- check-seccomp-strict
- autogen-check-seccomp-strict
- policyName: disallow-capabilities-strict
ruleNames:
- adding-capabilities-strict
- autogen-adding-capabilities-strict
- require-drop-all
- autogen-require-drop-all
- policyName: disallow-privilege-escalation
ruleNames:
- privilege-escalation
- autogen-privilege-escalation
match:
any:
- resources:
kinds:
- DaemonSet
- ReplicaSet
- Pod
namespaces:
- {{ include "resource.default.namespace" . }}
names:
- {{ include "resource.default.name" . }}*

0 comments on commit 0f3aa7b

Please sign in to comment.