carvel-dev / carvel-dev/kbld

kbld unpackage fails to honor docker config with harbor v2

Open
#38 0 comments 0 reactions 2 assignees Claimed by @cari-lynn View on GitHub
bug
Dominant language
Go
Stars
329
Forks
52
PR merge metrics
No merged PRs in 30d

Description

## Context

```bash
$ kbld version
kbld version 0.24.0

Succeeded
```

1. We upgraded one of our harbor instances to v2 and kbld suddenly stopped working.
1. Our config was relying on the [user's docker config](https://github.com/k14s/kbld/blob/develop/docs/auth.md#via-docker-config).
1. Thankfully `v0.23.0+` supports environment variables and it looks like it honors those if they are present.

Our suspicion is that `kbld` is not honoring the credentials across redirects.

### Failure

```
kbld: Error: Importing image gcr.io/cf-networking-images/cf-k8s-networking/routecontroller@sha256:ed4b3e351a31313ebf974439e4fb43210281a02f0a9125cb8ea880c572385b5f:
Importing image as example.com/pull-requests/tas-for-kubernetes@sha256:ed4b3e351a31313ebf974439e4fb43210281a02f0a9125cb8ea880c572385b5f:
Writing image:
Retried 5 times:
HEAD https://example.com/v2/pull-requests/tas-for-kubernetes/blobs/sha256:2278c072850b5981cc98736548509e528ee6fca05bda90d75119ee953c8facf9: unsupported status code 401
```

> Note: Edited internal host for privacy.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.