docs: @VisibleForTesting
    RegistryAuth anyRegistryAuth(final Path configPath) throws IOException {
      final ImmutableCollection<RegistryAuth> registryAuths =
          authForAllRegistries(configPath).configs().values();
      return registryAuths.isEmpty()
          ? RegistryAuth.builder().build()
          : registryAuths.iterator().next();
    }