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

How to build entry point without SPIRE? #8034

Open
xnox opened this issue Jun 7, 2024 · 0 comments
Open

How to build entry point without SPIRE? #8034

xnox opened this issue Jun 7, 2024 · 0 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@xnox
Copy link

xnox commented Jun 7, 2024

Feature request

Could you please add build tags to be able to compile entry point without SPIRE support? Or split spire support into a secondary binary?

Use case

FIPS requires cryptographic functionality to use FIPS validated implementations. One way to comply with this requirement is to do that (for example by compiling entry point with go-fips OpenSSL tool chain, or Microsoft/go tool chain). However that puts additional runtime requirements on the shell-image and task image from which entry point is executed.

Alternative way to comply is to not do any cryptography. As far as I can tell prior to introduction of SPIRE support entry point did not do any cryptography.

It would help if one could use go build tags to build entry point without SPIRE support, or to have spire support in a separate binary (i.e. entrypoint-spire). Which one reexecs too, or calls out to. Or even built as a go plugin.

Currently as is shell-image must be FIPS capable (i.e. cgd.dev/chainguard-private/busybox-fips instead of just busybox) and the tasks too, even when SPIRE is not used and/or tasks do not do any cryptography. As FIPS binaries init crypto subsystem and perform self tests before main function is executed even if later none of the spire codepaths are triggered.

@xnox xnox added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant