harbor/make/photon/prepare/utils
Daniel Jiang 2064a1cd6d Switch to basic authentication for registry
1. Add basic authorizer for registry which modify the request
to add basic authorization header to request based on configuration.
2. Set basic auth header for proxy when accessing registry
3. Switche the registry to use basic auth by default and use the basic
authorizer to access Harbor.
4. Make necessary change to test cases, particularly
"test_robot_account.py" and "docker_api.py", because the error is
changed after siwtched to basic auth from token auth.  #10604 is opened
to track the follow up work.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2020-01-31 21:46:47 +09:00
..
__init__.py Refacotr the prepare script base on the proposal https://github.com/goharbor/community/pull/22 2019-03-08 16:46:13 +08:00
cert.py Populate basic auth information for registry 2019-12-31 14:50:46 +08:00
chart.py Fix: prepare permission issue 2019-09-02 10:04:38 +08:00
clair_adapter.py build(clair): internal clair adapter when install with clair 2019-10-17 12:00:51 +08:00
clair.py Add healthcheck in Dockerfile* redis* jobservice 2019-08-06 13:16:12 +00:00
configs.py Switch to basic authentication for registry 2020-01-31 21:46:47 +09:00
core.py Clean up admiral-related code 2019-11-28 17:28:54 +08:00
db.py Fix: prepare permission issue 2019-09-02 10:04:38 +08:00
docker_compose.py Upgrade clair adapter to v1.0.0 2019-10-26 17:25:36 +00:00
jinja.py Disable redis and db containers if external db enabled 2019-08-26 17:59:13 +08:00
jobservice.py Add healthcheck in Dockerfile* redis* jobservice 2019-08-06 13:16:12 +00:00
log.py Add healthcheck in Dockerfile* redis* jobservice 2019-08-06 13:16:12 +00:00
misc.py Populate basic auth information for registry 2019-12-31 14:50:46 +08:00
nginx.py add make clean 2019-12-05 14:44:07 +08:00
notary.py Add healthcheck in Dockerfile* redis* jobservice 2019-08-06 13:16:12 +00:00
proxy.py Refacotr the prepare script base on the proposal https://github.com/goharbor/community/pull/22 2019-03-08 16:46:13 +08:00
redis.py Add healthcheck in Dockerfile* redis* jobservice 2019-08-06 13:16:12 +00:00
registry_ctl.py Add healthcheck in Dockerfile* redis* jobservice 2019-08-06 13:16:12 +00:00
registry.py Switch to basic authentication for registry 2020-01-31 21:46:47 +09:00