Skip to content

Commit

Permalink
Add allowedreposv2 policy and update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yakirk committed Dec 17, 2024
1 parent 95673bd commit 6078050
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: k8sallowedrepos
displayName: Allowed Repositories
createdAt: "2023-10-30T20:59:57Z"
description: Requires container images to begin with a string from the specified list.
digest: eaff16a982c2d3029b280b3d4061d82b55215ac648efaafa341e25c7c77b635f
digest: 1ee1bb4b4fb6128bdcd6bd84c81d1d1e02b4b9c0f9bd3eb85f9fd30e82742dd1
license: Apache-2.0
homeURL: https://open-policy-agent.github.io/gatekeeper-library/website/allowedrepos
keywords:
Expand Down
2 changes: 2 additions & 0 deletions artifacthub/library/general/allowedrepos/1.0.1/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
metadata.gatekeeper.sh/version: 1.0.1
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.
spec:
crd:
spec:
Expand Down
2 changes: 2 additions & 0 deletions library/general/allowedrepos/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
metadata.gatekeeper.sh/version: 1.0.1
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.
spec:
crd:
spec:
Expand Down
2 changes: 2 additions & 0 deletions src/general/allowedrepos/constraint.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
metadata.gatekeeper.sh/version: 1.0.1
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.
spec:
crd:
spec:
Expand Down
4 changes: 3 additions & 1 deletion website/docs/validation/allowedrepos.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: Allowed Repositories
# Allowed Repositories

## Description
Requires container images to begin with a string from the specified list.
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.

## Template
```yaml
Expand All @@ -19,6 +19,8 @@ metadata:
metadata.gatekeeper.sh/version: 1.0.1
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.
spec:
crd:
spec:
Expand Down

0 comments on commit 6078050

Please sign in to comment.