Skip to content

ROX-24283: enable strictfipsruntime in Konflux builds#12909

Merged
BradLugo merged 1 commit intomasterfrom
blugo/strictfipsruntime
Jan 27, 2025
Merged

ROX-24283: enable strictfipsruntime in Konflux builds#12909
BradLugo merged 1 commit intomasterfrom
blugo/strictfipsruntime

Conversation

@BradLugo
Copy link
Contributor

@BradLugo BradLugo commented Oct 4, 2024

Description

Enables the strictfipsruntime build flag for Konflux builds.

For more info about the strictfipsruntime flag, see this doc (there might be a better resource but this is the one David and I found), and for our general research regarding the linked ticket, see this doc.

Related scanner v2 PR: stackrox/scanner#1709

User-facing documentation

  • CHANGELOG is updated OR update is not needed
  • documentation PR is created and is linked above OR is not needed

Testing and quality

  • the change is production ready: the change is GA or otherwise the functionality is gated by a feature flag
  • CI results are inspected

How I validated my change

Verified the build works via Konflux CI and verified the check-payload results of the following images:

  • quay.io/rhacs-eng/main:4.7.x-121-gfd7fbe926b-fast
  • quay.io/rhacs-eng/scanner-v4:4.7.x-121-gfd7fbe926b-fast
  • quay.io/rhacs-eng/roxctl:4.7.x-121-gfd7fbe926b-fast
  • quay.io/rhacs-eng/stackrox-operator:4.7.0-121-gfd7fbe926b-fast

@openshift-ci
Copy link

openshift-ci bot commented Oct 4, 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

@rhacs-bot
Copy link
Contributor

rhacs-bot commented Oct 4, 2024

Images are ready for the commit at 5bb384c.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.7.x-545-g5bb384cb5d.

@rhacs-bot
Copy link
Contributor

Images are ready for the commit at f786eec.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.6.x-655-gf786eec249.

@codecov
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.88%. Comparing base (ec83633) to head (5bb384c).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12909   +/-   ##
=======================================
  Coverage   48.88%   48.88%           
=======================================
  Files        2496     2496           
  Lines      180746   180746           
=======================================
+ Hits        88355    88359    +4     
+ Misses      85374    85370    -4     
  Partials     7017     7017           
Flag Coverage Δ
go-unit-tests 48.88% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davdhacs
Copy link
Contributor

davdhacs commented Oct 7, 2024

/ok-to-test

@davdhacs
Copy link
Contributor

davdhacs commented Oct 7, 2024

/ok-to-test

it doesn't need this, I was adding it as an un-needed ack or approval for testing this.

@davdhacs
Copy link
Contributor

davdhacs commented Oct 7, 2024

/test ?

@openshift-ci
Copy link

openshift-ci bot commented Oct 7, 2024

@davdhacs: The following commands are available to trigger required jobs:

  • /test gke-nongroovy-e2e-tests
  • /test shell-unit-tests

The following commands are available to trigger optional jobs:

  • /test aks-qa-e2e-tests
  • /test aro-qa-e2e-tests
  • /test eks-qa-e2e-tests
  • /test gke-nongroovy-compatibility-tests
  • /test gke-operator-e2e-tests
  • /test gke-perf-scale-tests
  • /test gke-qa-e2e-tests
  • /test gke-race-condition-qa-e2e-tests
  • /test gke-scale-tests
  • /test gke-scanner-v4-tests
  • /test gke-sensor-integration-tests
  • /test gke-ui-e2e-tests
  • /test gke-upgrade-tests
  • /test gke-version-compatibility-tests
  • /test ibmcloudz-4-14-qa-e2e-tests
  • /test ibmcloudz-4-15-qa-e2e-tests
  • /test ibmcloudz-4-16-qa-e2e-tests
  • /test ocp-4-12-compliance-e2e-tests
  • /test ocp-4-12-ebpf-qa-e2e-tests
  • /test ocp-4-12-nongroovy-e2e-tests
  • /test ocp-4-12-operator-e2e-tests
  • /test ocp-4-12-qa-e2e-tests
  • /test ocp-4-12-scanner-v4-tests
  • /test ocp-4-12-sensor-integration-tests
  • /test ocp-4-12-ui-e2e-tests
  • /test ocp-4-17-compliance-e2e-tests
  • /test ocp-4-17-crun-qa-e2e-tests
  • /test ocp-4-17-ebpf-qa-e2e-tests
  • /test ocp-4-17-fips-qa-e2e-tests
  • /test ocp-4-17-nongroovy-e2e-tests
  • /test ocp-4-17-operator-e2e-tests
  • /test ocp-4-17-qa-e2e-tests
  • /test ocp-4-17-scanner-v4-tests
  • /test ocp-4-17-sensor-integration-tests
  • /test ocp-4-17-ui-e2e-tests
  • /test ocp-dev-preview-compliance-e2e-tests
  • /test ocp-dev-preview-ebpf-qa-e2e-tests
  • /test ocp-dev-preview-fips-qa-e2e-tests
  • /test ocp-dev-preview-nongroovy-e2e-tests
  • /test ocp-dev-preview-operator-e2e-tests
  • /test ocp-dev-preview-qa-e2e-tests
  • /test ocp-dev-preview-scanner-v4-tests
  • /test ocp-dev-preview-sensor-integration-tests
  • /test ocp-dev-preview-ui-e2e-tests
  • /test ocp-next-candidate-compliance-e2e-tests
  • /test ocp-next-candidate-ebpf-qa-e2e-tests
  • /test ocp-next-candidate-fips-qa-e2e-tests
  • /test ocp-next-candidate-nongroovy-e2e-tests
  • /test ocp-next-candidate-operator-e2e-tests
  • /test ocp-next-candidate-qa-e2e-tests
  • /test ocp-next-candidate-scanner-v4-tests
  • /test ocp-next-candidate-sensor-integration-tests
  • /test ocp-next-candidate-ui-e2e-tests
  • /test ocp-stable-scanner-v4-compliance-e2e-tests
  • /test ocp-stable-scanner-v4-ebpf-qa-e2e-tests
  • /test ocp-stable-scanner-v4-nongroovy-e2e-tests
  • /test ocp-stable-scanner-v4-operator-e2e-tests
  • /test ocp-stable-scanner-v4-perf-scale-tests
  • /test ocp-stable-scanner-v4-qa-e2e-tests
  • /test ocp-stable-scanner-v4-scanner-v4-tests
  • /test ocp-stable-scanner-v4-sensor-integration-tests
  • /test ocp-stable-scanner-v4-ui-e2e-tests
  • /test osd-aws-qa-e2e-tests
  • /test osd-gcp-qa-e2e-tests
  • /test powervs-4-13-qa-corebpf-e2e-tests
  • /test powervs-4-14-qa-corebpf-e2e-tests
  • /test powervs-4-15-qa-corebpf-e2e-tests
  • /test powervs-qa-corebpf-e2e-tests
  • /test rosa-hcp-qa-e2e-tests
  • /test rosa-qa-e2e-tests
  • /test ui-component-tests

Use /test all to run the following jobs that were automatically triggered:

  • pull-ci-stackrox-stackrox-master-gke-nongroovy-e2e-tests
  • pull-ci-stackrox-stackrox-master-gke-operator-e2e-tests
  • pull-ci-stackrox-stackrox-master-gke-qa-e2e-tests
  • pull-ci-stackrox-stackrox-master-gke-scanner-v4-tests
  • pull-ci-stackrox-stackrox-master-gke-sensor-integration-tests
  • pull-ci-stackrox-stackrox-master-gke-upgrade-tests
  • pull-ci-stackrox-stackrox-master-ocp-4-12-nongroovy-e2e-tests
  • pull-ci-stackrox-stackrox-master-ocp-4-12-operator-e2e-tests
  • pull-ci-stackrox-stackrox-master-ocp-4-12-qa-e2e-tests
  • pull-ci-stackrox-stackrox-master-ocp-4-12-scanner-v4-tests
  • pull-ci-stackrox-stackrox-master-ocp-4-17-nongroovy-e2e-tests
  • pull-ci-stackrox-stackrox-master-ocp-4-17-operator-e2e-tests
  • pull-ci-stackrox-stackrox-master-ocp-4-17-qa-e2e-tests
  • pull-ci-stackrox-stackrox-master-ocp-4-17-scanner-v4-tests
Details

In response to this:

/test ?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@davdhacs
Copy link
Contributor

davdhacs commented Oct 7, 2024

/test ocp-4-17-fips-qa-e2e-tests

1 similar comment
@davdhacs
Copy link
Contributor

/test ocp-4-17-fips-qa-e2e-tests

@davdhacs
Copy link
Contributor

/test ocp-4-17-fips-qa-e2e-tests ocp-4-17-qa-e2e-tests

@BradLugo BradLugo marked this pull request as ready for review October 29, 2024 02:26
@BradLugo BradLugo force-pushed the blugo/strictfipsruntime branch from f786eec to 5137c9e Compare October 29, 2024 02:26
@BradLugo BradLugo changed the title WIP: test strictfipsruntime chore: enable strictfipsruntime in Konflux builds Oct 29, 2024
Copy link
Contributor

@davdhacs davdhacs left a comment

Choose a reason for hiding this comment

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

+1

@tommartensen tommartensen added the konflux-build Run Konflux in PR. Push commit to trigger it. label Oct 29, 2024
Copy link
Contributor

@tommartensen tommartensen left a comment

Choose a reason for hiding this comment

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

Added the konflux-build label and an empty commit to trigger Konflux pipelines.
I am Requesting Changes to avoid this PR to be merged without green Konflux builds.

@BradLugo BradLugo marked this pull request as draft October 30, 2024 04:20
@BradLugo BradLugo changed the title chore: enable strictfipsruntime in Konflux builds ROX-24283: enable strictfipsruntime in Konflux builds Oct 30, 2024
Copy link
Contributor

@porridge porridge left a comment

Choose a reason for hiding this comment

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

No issues from myself apart from missing . at the end of sentences in comments.

@BradLugo
Copy link
Contributor Author

Sorry @porridge, I just misclicked and re-requested a review from you instead of Misha

@BradLugo BradLugo requested a review from msugakov November 20, 2024 19:22
Copy link
Contributor

@davdhacs davdhacs left a comment

Choose a reason for hiding this comment

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

+1

@BradLugo BradLugo force-pushed the blugo/strictfipsruntime branch from 116ad4f to 0bb5541 Compare January 21, 2025 00:57
@BradLugo
Copy link
Contributor Author

Hi yall! Apologies for the delay. Could you give another round of reviews?

I'm also not entirely sure what's going on with Konflux. Any pointers on how to resolve those errors?

Copy link
Contributor

@msugakov msugakov left a comment

Choose a reason for hiding this comment

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

Please don't forget the label #12909 (comment)

@davdhacs
Copy link
Contributor

Please don't forget the label #12909 (comment)

+1 It is not required to have this on 4.6.x, but it will be nice to have it so that we get a alternative/preview of the konflux fips check (although it looks like the konflux fips check is not available yet: tasks like the operator check are added but not visible in the catalog afaict: konflux-ci/build-definitions#1681)

@BradLugo BradLugo added the backport-for-4.6-konflux-release https://redhat-internal.slack.com/archives/C05TS9N0S7L/p1730134914487439 label Jan 21, 2025
Copy link
Contributor

@davdhacs davdhacs left a comment

Choose a reason for hiding this comment

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

+1
I did not find konflux built images for this (to verify the tags on the binaries), but when the konflux builds work I expect this to apply like it did before.

@tommartensen
Copy link
Contributor

I did not find konflux built images for this (to verify the tags on the binaries), but when the konflux builds work I expect this to apply like it did before.

--> quay.io/rhacs-eng/main:4.7.x-478-g0bb5541ed3-fast and similar.
I can't run check-payload locally for some reason

Error: cannot use command "podman image mount" with the remote podman client

I am going to leave the validation of the Konflux images up to you.

@davdhacs
Copy link
Contributor

I did not find konflux built images for this (to verify the tags on the binaries), but when the konflux builds work I expect this to apply like it did before.

--> quay.io/rhacs-eng/main:4.7.x-478-g0bb5541ed3-fast and similar. I can't run check-payload locally for some reason

Error: cannot use command "podman image mount" with the remote podman client

I am going to leave the validation of the Konflux images up to you.

ty for the ref. I'll try it. And np, I want to finish making a github-action so we can run and share the results easily (#13765 -- I veered into having it check across multiple versions in that PR. I intend to restore a simple action we can run ad-hoc on an image).

@davdhacs
Copy link
Contributor

davdhacs commented Jan 23, 2025

A run of check-payload directly on the main image passes (and shows no warning that the strictfipsruntime tag is missing): https://github.com/stackrox/stackrox/actions/runs/12939946035/job/36093214095#step:11:1

@BradLugo BradLugo force-pushed the blugo/strictfipsruntime branch from 0bb5541 to 5bb384c Compare January 27, 2025 19:08
@BradLugo BradLugo enabled auto-merge (squash) January 27, 2025 19:09
@BradLugo
Copy link
Contributor Author

Rebasing + resolving conflicts. Enabled auto-merge.

@BradLugo BradLugo merged commit a566ce2 into master Jan 27, 2025
79 checks passed
@BradLugo BradLugo deleted the blugo/strictfipsruntime branch January 27, 2025 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/helm area/operator area/scanner backport-for-4.6-konflux-release https://redhat-internal.slack.com/archives/C05TS9N0S7L/p1730134914487439 konflux-build Run Konflux in PR. Push commit to trigger it. ok-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants