Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce encrypted volume store support #43

Merged
merged 3 commits into from
Sep 4, 2023

Conversation

deviantony
Copy link
Member

@deviantony deviantony commented Sep 2, 2023

This PR implements support for storing Docker registry secrets via an encrypted volume store.

When k2d is started with the K2D_STORE_REGISTRY_BACKEND=volume it will generate or retrieve the content of an encryption key under /var/lib/k2d/volume-encryption.key and use it to encrypt Docker registry secrets at rest.

When this environment variable is not specified, k2d will use the previously introduced memory store for registry secrets (see #17)

These secrets are then decrypted when needed (e.g. to pull an image from a private registry or when inspecting them).

Related to #17

@deviantony deviantony linked an issue Sep 2, 2023 that may be closed by this pull request
@deviantony deviantony marked this pull request as draft September 2, 2023 09:28
@deviantony deviantony marked this pull request as ready for review September 4, 2023 07:58
@deviantony deviantony merged commit 37106d5 into develop Sep 4, 2023
1 check passed
@deviantony deviantony deleted the feat-encrypted-volume-store branch September 4, 2023 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Private Registries
1 participant