-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add FIPS env var to build crossbuild images for FIPS compliance #495
Conversation
This pull request does not have a backport label. Could you fix it @michel-laterman? 🙏
|
It looks like the builds are inconsistent; specifically the pcap installation For the last buildkite execution debian11 failed when installing pcap with fips set to false
yet when fips was set to true the debian11 build succeeded There is also inconsistent behaviour when compared across builds, i.e the previous commit (where I fixed a typo in the label) https://buildkite.com/elastic/golang-crossbuild/builds/723 There is also an issue with the main branch around pcap, as well as other PRs (like #494) |
The most recent attempt had a segfault when compiling
This image was correctly built previously |
I've been told you can configure the ![]() how did I know the type?
How can you change the machine type?
agents:
provider: "gcp"
agents:
provider: "gcp"
machineType: "<CHANGEME>" And |
I tried to use I've updated the x86_64 builders to |
buildkite test this |
I don't think increasing instance sizes helps |
I've tried running |
@michel-laterman what our next options are then? |
This pull request is now in conflicts. Could you fix it? 🙏
|
292a823
to
a112df9
Compare
I've squashed my changes and rebased onto #502, i'll let this run (as a sanity check) but will likely need to disable ppc builds on debian12 in order to get this working |
Add FIPS env var that will use the microsoft/go toolchain instead of the standard upstream go toolchain for crossbuild images. Images created in this way will have CGO enabled by default and have GOEXPERIMENT=systemcrypto set so that binaries created in the image are FIPS compliant by default.
fbd89f8
to
80c95b4
Compare
Rebased on main now that #504 has been merged |
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💛 Build succeeded, but was flaky
Failed CI Steps
History
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Create images that use the microsoft/go toolchain instead of the upstream go one so that crossbuild images can be used in order to make FIPS compliant binaries.
FIPS images can be created by setting
FIPS=true
, i.e.:Images will have their tag extension end in
-fips