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

Krakatoa/build: Generate new RSA keys for every container build #18

Merged
merged 1 commit into from
May 29, 2024

Conversation

wtfbbqhax
Copy link
Owner

@wtfbbqhax wtfbbqhax commented May 28, 2024

This commit removes the static assets build.rsa and build.rsa.pub from the repository and replaces them with a single use key that exists for that container image only.

This change is being done to reduce risk and encourage new best practice. In the future we will delete the private key after the build completes, thus preventing any more packages from being signed again.

This could be grown to make a secure remote repository too.

CHANGES:

Containerfile:

  • Remove manual copy of build.rsa.pub to the /etc/apk/keys directory.

  • Add a call to abuild-keygen after switching to the build user.

home/build/abuild/abuild.conf:

  • Add PACKAGER="wtfbbqhax/Krakatoa"

home/build/abuild/build.rsa:

  • Deleted

home/build/abuild/build.rsa.pub

  • Deleted

This commit removes the static assets `build.rsa` and `build.rsa.pub` from the
repository and replaces them with a single use key that exists for that
container image only.

This change is being done to reduce risk and encourage new best practice.
In the future we will delete the private key after the build completes, thus
preventing any more packages from being signed again.

This could be grown to make a secure remote repository too.

CHANGES:

Containerfile:

 * Remove manual copy of build.rsa.pub to the /etc/apk/keys directory.

 * Add a call to abuild-keygen after switching to the `build` user.

home/build/abuild/abuild.conf:

 * Add PACKAGER="wtfbbqhax/Krakatoa"

home/build/abuild/build.rsa:

 * Deleted

home/build/abuild/build.rsa.pub

 * Deleted

 This will allow me to
possiblyand keep a really tight leash.
@wtfbbqhax wtfbbqhax merged commit 50ca889 into main May 29, 2024
2 checks passed
@wtfbbqhax wtfbbqhax deleted the single-use-rsa-keys branch May 29, 2024 00:08
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.

1 participant