diff --git a/make/harbor.yml.tmpl b/make/harbor.yml.tmpl index cd5510113..4f7aafedd 100644 --- a/make/harbor.yml.tmpl +++ b/make/harbor.yml.tmpl @@ -21,8 +21,6 @@ https: # internal_tls: # # set enabled to true means internal tls is enabled # enabled: true -# # verify_client_cert used to decide whether verify client certificate -# verify_client_cert: false # # put your cert and key files on dir # dir: /etc/harbor/tls/internal diff --git a/make/photon/prepare/migrations/version_2_0_0/harbor.yml.jinja b/make/photon/prepare/migrations/version_2_0_0/harbor.yml.jinja index f4cc92bd8..44f859c53 100644 --- a/make/photon/prepare/migrations/version_2_0_0/harbor.yml.jinja +++ b/make/photon/prepare/migrations/version_2_0_0/harbor.yml.jinja @@ -37,8 +37,6 @@ https: # internal_tls: # # set enabled to true means internal tls is enabled # enabled: true -# # verify_client_cert used to decide whether verify client certificate -# verify_client_cert: false # # put your cert and key files on dir # dir: /etc/harbor/tls/internal diff --git a/make/photon/prepare/utils/configs.py b/make/photon/prepare/utils/configs.py index 7ec2da229..5a0cfadc9 100644 --- a/make/photon/prepare/utils/configs.py +++ b/make/photon/prepare/utils/configs.py @@ -342,7 +342,7 @@ def parse_yaml_config(config_file_path, with_notary, with_clair, with_trivy, wit if internal_tls_config and internal_tls_config.get('enabled'): config_dict['internal_tls'] = InternalTLS( internal_tls_config['enabled'], - internal_tls_config['verify_client_cert'], + False, internal_tls_config['dir'], configs['data_volume'], with_notary=with_notary, diff --git a/tests/hostcfg.sh b/tests/hostcfg.sh index 7bddccdb1..22ccacaf1 100755 --- a/tests/hostcfg.sh +++ b/tests/hostcfg.sh @@ -7,7 +7,6 @@ sudo sed "s/reg.mydomain.com/$IP/" make/harbor.yml.tmpl |sudo tee make/harbor.ym # enable internal tls echo "internal_tls:" >> make/harbor.yml echo " enabled: true" >> make/harbor.yml -echo " verify_client_cert: true" >> make/harbor.yml echo " dir: /etc/harbor/tls/internal" >> make/harbor.yml # TODO: remove it when scanner adapter support internal access of harbor