gardener / gardener-extension-registry-cache

Gardener extension controller which deploys pull-through caches for container registries.
Apache License 2.0
7 stars 20 forks source link

Add support for authenticating with Amazon ECR private registry using repository policies and/or IAM policies #240

Open m-the-magnificent opened 3 months ago

m-the-magnificent commented 3 months ago

How to categorize this issue?

/area security /kind enhancement

What would you like to be added: I would like the registry cache to be able to pull and cache images where

  1. the upstream registry is an Amazon ECR private registry, and,
  2. access is managed by Repository policies,
  3. without explicit credentials being used.

In this use case, the AWS account where the shoot is deployed, and the registry cache pod is running, already has pull access to the repositories in Amazon ECR private registry via repository policies.

Why is this needed:

ialidzhikov commented 2 months ago

As we talked offline, the limitation comes from the Distribution project, see https://github.com/distribution/distribution/issues/4281.