kubewarden / trusted-repos-policy

A Kubewarden policy that restricts what registries, tags and images can pods on your cluster refer to
https://kubewarden.io
Apache License 2.0
5 stars 3 forks source link
hacktoberfest kubernetes kubernetes-compliance kubernetes-security kubewarden-policy policy-as-code webassembly

Kubewarden Policy Repository Stable

Kubewarden policy that allows to restrict what repositories, tags and images pods in your cluster can refer to.

What the policy allows to restrict

The policy configuration allows to mix and match several filters: registries, tags, and images.

When both an allow list and a reject list is supported, only one can be provided at the same time for that specific filter.

Examples

registries:
  allow:
  - registry.my-corp.com
registries:
  reject:
  - docker.io
tags:
  reject:
  - latest
images:
  reject:
  - quay.io/etcd/etcd:v3.4.12
images:
  allow:
  - quay.io/coreos/etcd:v3.4.12@sha256:7ed2739c96eb16de3d7169e2a0aa4ccf3a1f44af24f2bb6cad826935a51bcb3d
  - quay.io/bitnami/redis:6.0@sha256:82dfd9ac433eacb5f89e5bf2601659bbc78893c1a9e3e830c5ef4eb489fde079