I am new to kubernetes and trying to deploy harbor on minikube using their official helm chart. I would like to use my custom docker authentication server when the docker client tries to authenticate with the harbor registry. Is there a way to configure this ?, from their docs i could not find a way to provide my auth server/ tokenRealm
as one one would if using the docker registry image.
Their configmap shows that these values have been hardcoded, why do they not provide an option to configure this, is there a work around?
harbor-helm/templates/registry/registry-cm.yaml
auth:
htpasswd:
realm: harbor-registry-basic-realm
path: /etc/registry/passwd
HTTP/1.1 401 Unauthorized
Content-Type: application/json; charset=utf-8
Docker-Distribution-Api-Version: registry/2.0
Www-Authenticate: Basic realm="harbor-registry-basic-realm" # this should be my auth server address
Date: Fri, 27 Dec 2024 10:04:58 GMT
Content-Length: 87