Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

[feature] implement kim-native credentials #71

Merged
merged 1 commit into from
Sep 1, 2021

Conversation

dweomer
Copy link
Contributor

@dweomer dweomer commented Sep 1, 2021

Introduce kim builder login that works very much like docker login
but instead stores the resulting Docker config.json in a kubernetes
secret in the builder namespace. This secret is rendered to disk in a
temp directory for build operations (to satisfy buildkit) but is
leveraged as an in-memory keyring for shipping auth credentials for
push / pull operations. If the secret setup by the login cli
operation does not exist, kim reverts to the existing behavior of
consulting the ${DOCKER_CONFIG}/config.json for registry credentials.

Addresses #64
Fixes #22

Signed-off-by: Jacob Blain Christen jacob@rancher.com

Introduce `kim builder login` that works very much like `docker login`
but instead stores the resulting Docker `config.json` in a kubernetes
secret in the builder namespace. This secret is rendered to disk in a
temp directory for `build` operations (to satisfy buildkit) but is
leveraged as an in-memory keyring for shipping auth credentials for
`push` / `pull` operations. If the secret setup by the `login` cli
operation does not exist, kim reverts to the existing behavior of
consulting the `${DOCKER_CONFIG}/config.json` for registry credentials.

Addresses rancher#64

Signed-off-by: Jacob Blain Christen <jacob@rancher.com>
@dweomer dweomer merged commit 6bc1724 into rancher:main Sep 1, 2021
@dweomer dweomer deleted the feat/64/builder-login branch September 1, 2021 05:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

auth: docker-registry secrets
1 participant