mirror of
https://github.com/distribution/distribution.git
synced 2026-01-29 21:40:32 +00:00
Integrate auth.AccessController into registry app
This changeset integrates the AccessController into the main registry app. This includes support for configuration and a test implementation, called "silly" auth. Auth is only enabled if the configuration is present but takes measure to ensure that configuration errors don't allow the appserver to start with open access.
This commit is contained in:
@@ -7,14 +7,14 @@ import (
|
||||
_ "net/http/pprof"
|
||||
"os"
|
||||
|
||||
"github.com/gorilla/handlers"
|
||||
|
||||
log "github.com/Sirupsen/logrus"
|
||||
|
||||
"github.com/bugsnag/bugsnag-go"
|
||||
"github.com/gorilla/handlers"
|
||||
"github.com/yvasiyarov/gorelic"
|
||||
|
||||
"github.com/docker/docker-registry"
|
||||
_ "github.com/docker/docker-registry/auth/silly"
|
||||
_ "github.com/docker/docker-registry/auth/token"
|
||||
"github.com/docker/docker-registry/configuration"
|
||||
_ "github.com/docker/docker-registry/storagedriver/filesystem"
|
||||
_ "github.com/docker/docker-registry/storagedriver/inmemory"
|
||||
|
||||
Reference in New Issue
Block a user