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

This change adds requirements for FIPS #306

Merged

Conversation

bshephar
Copy link
Collaborator

This change ensures the heat-operator is built with FIPS compliance.

Copy link
Contributor

openshift-ci bot commented Jan 30, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@bshephar bshephar marked this pull request as ready for review January 31, 2024 12:26
@openshift-ci openshift-ci bot requested review from dprince and lewisdenny January 31, 2024 12:26
Dockerfile Outdated
@@ -1,5 +1,5 @@
# Build the manager binary
ARG GOLANG_BUILDER=golang:1.19
ARG GOLANG_BUILDER=quay.io/projectquay/golang:1.20
ARG OPERATOR_BASE_IMAGE=gcr.io/distroless/static:nonroot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might need to switch to distroless/base. Try building this image locally and running a container with it. The manager should actually run (and error out).

With ironic-operator I got the following until I changed the base image:

exec container process (missing dynamic library?) '/manager': No such file or directory

Copy link
Contributor

openshift-ci bot commented Feb 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bshephar, rebtoor

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

- Changed the build image to ubi9/go-toolkit
- Changed the base image to ubi9/minimal
- Added the default GO_BUILD_EXTRA_ARGS="-tags strictfipsruntime"
- Added the GO_BUILD_EXTRA_ENV_ARGS build argument to allow custom build arguments at build time. It defaults to "CGO_ENABLED=1 GO111MODULE=on"
- Those default parameters have been added to enable FIPS compliance
- Fixed indentation
- Removed TARGETOS and TARGETARCH env vars.
- Added DOCKER_BUILD_ARGS variable in Makefile to pass custom parameters during podman build
- Added export FAIL_FIPS_CHECK=true in .prow_ci.env file

Signed-off-by: Brendan Shephard <[email protected]>
@rebtoor
Copy link
Contributor

rebtoor commented Feb 6, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Feb 6, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 244c345 into openstack-k8s-operators:main Feb 6, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants