Support for basic auth

Bug #1788892 reported by Tim Van Steenburgh
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Docker Registry Charm
Fix Released
Medium
Kevin W Monroe

Bug Description

The charm currently supports only authentication with a token server.
A common implementation uses native basic authentication with htpasswd: https://docs.docker.com/registry/deploying/#native-basic-auth
The authentication info could then be passed to kubernetes-worker through the relation.

Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :

From mthaddon:

"We definitely want this to be done via a juju relation. We should be able to relate a registry to the kubernetes-worker charm and have authentication handled via that."

Revision history for this message
Kevin W Monroe (kwmonroe) wrote :

I'm working on the k8s side of this right now, but I just finished a WIP wiki that walks you through using basic auth and tls with a k8s registry:

https://github.com/juju-solutions/bundle-canonical-kubernetes/wiki/WIP:-Private-Docker-Registry

There's more that will tuck under the magic of "juju relate k8s-worker docker-registry", but if anyone wanted to try an authenticated registry today, that'd be the place to start.

Revision history for this message
Kevin W Monroe (kwmonroe) wrote :

Basic auth is now supported in the stable docker-registry charm:

https://jujucharms.com/u/containers/docker-registry

And can be configured as described in the readme:

https://github.com/CanonicalLtd/docker-registry-charm#authentication

With kubernetes-worker revision 385 or greater, a relation can be made between the registry and k8s-worker which will enable the worker to login to the registry with the configured basic auth.

Changed in layer-docker-registry:
status: New → Fix Committed
Changed in layer-docker-registry:
importance: Undecided → Medium
assignee: nobody → Kevin W Monroe (kwmonroe)
Revision history for this message
Kevin W Monroe (kwmonroe) wrote :

This has made its way into the latest stable docker-registry and k8s charms.

Changed in layer-docker-registry:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.