-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert block-ephemeral-containers to cel
Signed-off-by: Chandan-DK <[email protected]>
- Loading branch information
1 parent
7252230
commit 9d45ca0
Showing
2 changed files
with
19 additions
and
17 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,22 +1,23 @@ | ||
name: block-ephemeral-containers | ||
name: block-ephemeral-containers-cel | ||
version: 1.0.0 | ||
displayName: Block Ephemeral Containers | ||
createdAt: "2023-04-10T20:30:03.000Z" | ||
displayName: Block Ephemeral Containers in CEL expressions | ||
description: >- | ||
Ephemeral containers, enabled by default in Kubernetes 1.23, allow users to use the `kubectl debug` functionality and attach a temporary container to an existing Pod. This may potentially be used to gain access to unauthorized information executing inside one or more containers in that Pod. This policy blocks the use of ephemeral containers. | ||
install: |- | ||
```shell | ||
kubectl apply -f https://raw.githubusercontent.com/kyverno/policies/main/other/block-ephemeral-containers/block-ephemeral-containers.yaml | ||
kubectl apply -f https://raw.githubusercontent.com/kyverno/policies/main/other-cel/block-ephemeral-containers/block-ephemeral-containers.yaml | ||
``` | ||
keywords: | ||
- kyverno | ||
- Other | ||
- CEL Expressions | ||
readme: | | ||
Ephemeral containers, enabled by default in Kubernetes 1.23, allow users to use the `kubectl debug` functionality and attach a temporary container to an existing Pod. This may potentially be used to gain access to unauthorized information executing inside one or more containers in that Pod. This policy blocks the use of ephemeral containers. | ||
Refer to the documentation for more details on Kyverno annotations: https://artifacthub.io/docs/topics/annotations/kyverno/ | ||
annotations: | ||
kyverno/category: "Other" | ||
kyverno/kubernetesVersion: "1.23" | ||
kyverno/category: "Other in CEL" | ||
kyverno/kubernetesVersion: "1.26-1.27" | ||
kyverno/subject: "Pod" | ||
digest: a49007b59da49fb5d9551a5d9874a091036d3413dfe263924645c64d2aa9d415 | ||
digest: 13da34209be549d9904eb9142840242db2ae000b1935e8c3c84d23368886fab9 | ||
createdAt: "2024-03-20T08:34:56Z" |
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