-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: background audit config, severity and category annotations.
Updates policy metadata.yml file adding the new configuration to enabled background audit checks and adds two new annotations used by the audit scanner in its reports. Signed-off-by: José Guilherme Vanz <[email protected]>
- Loading branch information
Showing
1 changed file
with
14 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
rules: | ||
- apiGroups: [""] | ||
apiVersions: ["v1"] | ||
resources: ["pods"] | ||
operations: ["CREATE"] | ||
- apiGroups: | ||
- '' | ||
apiVersions: | ||
- v1 | ||
resources: | ||
- pods | ||
operations: | ||
- CREATE | ||
mutating: false | ||
contextAware: false | ||
executionMode: kubewarden-wapc | ||
|
@@ -11,24 +15,14 @@ annotations: | |
io.artifacthub.displayName: Flexvolume Drivers Psp | ||
io.artifacthub.resources: Pod | ||
io.artifacthub.keywords: psp, container, runtime, flex volume, flex | ||
# kubewarden specific | ||
io.kubewarden.policy.ociUrl: ghcr.io/kubewarden/policies/flexvolume-drivers-psp | ||
# io.kubewarden.hidden-ui: "true" | ||
# rest | ||
io.kubewarden.policy.title: flexvolume-drivers-psp | ||
io.kubewarden.policy.description: Replacement for the Kubernetes Pod Security Policy that controls the allowed `flexVolume` drivers | ||
io.kubewarden.policy.author: "Kubewarden developers <[email protected]>" | ||
io.kubewarden.policy.description: Replacement for the Kubernetes Pod Security Policy | ||
that controls the allowed `flexVolume` drivers | ||
io.kubewarden.policy.author: Kubewarden developers <[email protected]> | ||
io.kubewarden.policy.url: https://github.com/kubewarden/flexvolume-drivers-psp-policy | ||
io.kubewarden.policy.source: https://github.com/kubewarden/flexvolume-drivers-psp-policy | ||
io.kubewarden.policy.license: Apache-2.0 | ||
io.kubewarden.policy.usage: | | ||
This policy allows to provide a list of allowed Flex Volume drivers. | ||
The configuration supports a list of allowed flex volume drivers. An example follows: | ||
```yaml | ||
allowedFlexVolumes: | ||
- driver: example/lvm | ||
- driver: example/cifs | ||
``` | ||
If the pod to be evaluated has a different driver on any `flexVolume` volume, it will be rejected. | ||
io.kubewarden.policy.category: PSP | ||
io.kubewarden.policy.severity: medium |