Currently, BoxLite only supports anonymous authentication (RegistryAuth::Anonymous) when pulling OCI images. This prevents users from pulling images from private registries that require authentication.
This is a significant limitation in the following scenarios:
Private Container Registries: Organizations using private registries (Alibaba Cloud ACR, AWS ECR, Google GCR, Azure ACR, Harbor, JFrog Artifactory) cannot use BoxLite to pull their images.
Enterprise Environments: Many enterprises require authentication for all registry access, even for pulling public images.
Security Compliance: Some organizations mandate authenticated pulls for audit trails and access control.
Proposed design: The simplest and most user-friendly approach is to read credentials from Docker's configuration file ~/.docker/config.json