Skip to content

Cannot push (login) to Harbor #280

@greyarch

Description

@greyarch

Actual behavior
Kaniko cannot login to Harbor the same way the old kaniko could - with credentials in /kaniko/.docker/config.json.

Instead I get an error:

error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: checking push permission for "<my-harbor-url>/<my-project>/<my-image>:<image-tag>": POST https://<my-harbor-url>/<my-project>/<my-image>/blobs/uploads/: UNAUTHORIZED: unauthorized to access repository: <my-project>/<my-image>, action: push: unauthorized to access repository: <my-project>/<my-image>, action: push

This happens at the beginning of the build process.

Expected behavior
I expect it to work as it used to. This is a regression.

To Reproduce
I am running this in a gitlab pipeline, using the martizih/kaniko:v1.25.5-debug image as a job image. This is because I need a shell for the gitlab job.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions