-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for custom registries, registry auth
Add auth support for registries through a config file with the same format as used by Docker and Kubernetes. The implementation uses the existing auth implementations for select registries as fallback, assuming all other repositories allow anonymous access or that auth is configured. For now, there's only partial support for HTTP-based registries as there is no nice way to configure what registries use HTTP. Additional work could look at how the Docker CLI handles this. With this change, images with IPs (IPv4 or IPv6) in their name should be supported. There's currently only partial support for such images in the UI.
- Loading branch information
1 parent
96b2107
commit 301831c
Showing
24 changed files
with
740 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
/*.sqlite* | ||
/*.boltdb | ||
/docker.sock | ||
/integration/zot/htpasswd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"distSpecVersion": "1.0.1", | ||
"storage": { | ||
"rootDirectory": "/tmp/zot/storage" | ||
}, | ||
"log": { | ||
"level": "debug" | ||
}, | ||
"http": { | ||
"address": "0.0.0.0", | ||
"port": "9090", | ||
"auth": { | ||
"htpasswd": { | ||
"path": "/etc/zot/htpasswd" | ||
}, | ||
"apikey": true | ||
} | ||
}, | ||
"extensions": { | ||
"sync": { | ||
"enable": true, | ||
"registries": [ | ||
{ | ||
"urls": ["https://docker.io/library"], | ||
"onDemand": true | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"auths": { | ||
"http://localhost:9090/v2/": { | ||
"username": "username", | ||
"password": "password" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.