Skip to content

Commit 7fd9ed2

Browse files
authored
Merge branch 'master' into vap-test
2 parents c547053 + e3855f5 commit 7fd9ed2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1475
-5
lines changed

LICENSE

100644100755
File mode changed.

Makefile

100644100755
File mode changed.

NOTICE

100644100755
File mode changed.

README.md

100644100755
File mode changed.

SECURITY.md

100644100755
File mode changed.

artifacthub/library/general/allowedrepos/1.0.1/artifacthub-pkg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: k8sallowedrepos
33
displayName: Allowed Repositories
44
createdAt: "2023-10-30T20:59:57Z"
55
description: Requires container images to begin with a string from the specified list.
6-
digest: eaff16a982c2d3029b280b3d4061d82b55215ac648efaafa341e25c7c77b635f
6+
digest: 1ee1bb4b4fb6128bdcd6bd84c81d1d1e02b4b9c0f9bd3eb85f9fd30e82742dd1
77
license: Apache-2.0
88
homeURL: https://open-policy-agent.github.io/gatekeeper-library/website/allowedrepos
99
keywords:

artifacthub/library/general/allowedrepos/1.0.1/template.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ metadata:
77
metadata.gatekeeper.sh/version: 1.0.1
88
description: >-
99
Requires container images to begin with a string from the specified list.
10+
To prevent bypasses, ensure a '/' is added when specifying DockerHub repositories or custom registries.
11+
If exact matches or glob-like syntax are preferred, use the k8sallowedreposv2 policy.
1012
spec:
1113
crd:
1214
spec:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 1.0.2
2+
name: k8sallowedrepos
3+
displayName: Allowed Repositories
4+
createdAt: "2025-01-15T08:49:50Z"
5+
description: Requires container images to begin with a string from the specified list. To prevent bypasses, ensure a '/' is added when specifying DockerHub repositories or custom registries. If exact matches or glob-like syntax are preferred, use the k8sallowedreposv2 policy.
6+
digest: 626c7434f3b5f7593345580268fc8f6c68688b6c67efd6fe1eac7503bd166c9e
7+
license: Apache-2.0
8+
homeURL: https://open-policy-agent.github.io/gatekeeper-library/website/allowedrepos
9+
keywords:
10+
- gatekeeper
11+
- open-policy-agent
12+
- policies
13+
readme: |-
14+
# Allowed Repositories
15+
Requires container images to begin with a string from the specified list. To prevent bypasses, ensure a '/' is added when specifying DockerHub repositories or custom registries. If exact matches or glob-like syntax are preferred, use the k8sallowedreposv2 policy.
16+
install: |-
17+
### Usage
18+
```shell
19+
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/artifacthub/library/general/allowedrepos/1.0.2/template.yaml
20+
```
21+
provider:
22+
name: Gatekeeper Library
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resources:
2+
- template.yaml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: constraints.gatekeeper.sh/v1beta1
2+
kind: K8sAllowedRepos
3+
metadata:
4+
name: repo-is-openpolicyagent
5+
spec:
6+
match:
7+
kinds:
8+
- apiGroups: [""]
9+
kinds: ["Pod"]
10+
namespaces:
11+
- "default"
12+
parameters:
13+
repos:
14+
- "openpolicyagent/"

0 commit comments

Comments
 (0)