Restricting image pull access to only approved sources on OCP4

Solution Verified - Updated -

Issue

  • How to restrict image pull access to only approved sources (allowlist / whitelist).
  • The documentation describes allowedRegistriesForImport in the image.config.openshift.io/cluster resource. Would this function as an allowlist / whitelist?
  • How can I limit the repositories allowed to be pulled from a certain registry?

Environment

  • Red Hat OpenShift Container Platform (OCP) 4.2
  • Red Hat OpenShift Container Platform (OCP) 4.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content