When attempting to update or install VMware Cloud Foundation (VCF) CLI plugins from a private, authenticated container registry (such as JFrog Artifactory), the operation fails with an authentication, unauthorized, or access denied error.
VCF 9.1
vSphere Kubernetes Service
Per Installing the VCF CLI in Internet Restricted Environments
Note: The VCF CLI supports uploading plugins to private registries that require authentication. However, your private registry must allow the CLI to pull the resulting images without authentication.
Add the private registry host to the VCF_CLI_AUTHENTICATED_REGISTRY environment variable within the VCF CLI configuration, and then authenticating locally.
1. Register the authenticated host in the VCF CLIvcf config set env.VCF_CLI_AUTHENTICATED_REGISTRY <jfrog-host>
Note: Provide the host name only. Do not include https://, paths, or image tags.
2. Authenticate with the private registry
docker login <jfrog-host>
3. Update the VCF Plugin Sourcevcf plugin source update default --uri <jfrog-host>/system-vcf/plugins/plugin-inventory:latest