Skip to content

Struggling with configuring authentication for proxy registry #52

Open
@StefanKock

Description

@StefanKock

Hello,

We would like to use this tool to funnel access to public repositories over our own proxy registry (which is a Harbor instance). The purpose of our proxy registry is to handle authentication towards Dockerhub etc. and to cache artifacts to be resilient against downtimes or artifact removal of registries outside our control.

harbor-container-webhook looks to be exactly we need, but we struggle to set up the authentication against our proxy registry.

Challenges:

  1. We don't want/need checkUpstream: true because the access to the upstream repo is often restricted by rate limit, auth, paywall or firewall.
  2. We struggle to have authSecretName in the correct format. Providing a working example in the documentation would be helpful.
  3. We set authSecretName but it seems to be only in use with checkUpstream: true (see code). Is this correct? Why? Can it be changed?
  4. We are confused if authSecretName is used for the matched repo (upstream) or the replaced repo (own proxy).

It would be helpful to get some guidance on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions