-
Notifications
You must be signed in to change notification settings - Fork 157
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
feat: add fips-operator-check task #1681
Conversation
task/fips-operator-check/0.1/fips-operator-check-step-action.yaml
Outdated
Show resolved
Hide resolved
756ee03
to
ee556cf
Compare
c350bbf
to
1be8abc
Compare
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.
Nit: There are some long jq
lines in here. Is there any way that we can improve those?
I'll have to review the stepAction later.
task/fips-operator-bundle-check/0.1/fips-operator-bundle-check.yaml
Outdated
Show resolved
Hide resolved
task/fips-operator-bundle-check/0.1/fips-operator-bundle-check.yaml
Outdated
Show resolved
Hide resolved
task/fips-operator-bundle-check/0.1/fips-operator-bundle-check.yaml
Outdated
Show resolved
Hide resolved
task/fips-operator-bundle-check/0.1/fips-operator-bundle-check.yaml
Outdated
Show resolved
Hide resolved
task/fips-operator-bundle-check/0.1/fips-operator-bundle-check.yaml
Outdated
Show resolved
Hide resolved
capabilities: | ||
add: | ||
- SETFCAP | ||
script: | |
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.
This script is doing a lot of work that would be great to unit test. Would you be opposed to putting it in an image (or elsewhere) where we can add tests? Even if it is something like https://github.com/konflux-ci/oras-container/blob/main/.tekton/test.yaml . This would also enable better reusability of functionality like getting all related images.
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.
Would moving parts of the script as functions to the konflux-test image utils be acceptable?
The bash functions there can be unit tested.
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.
+1 to Kruno's idea. We already have a few functions there which will be used in the new fbc task we will introduce. I'll work on creating those functions
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.
Yes, I think that would work. I understand that this is a balance between technical debt and doing more of what we have been doing.
I think that there is likely some technical debt of the current validate-fbc
task where some of that functionality can be moved to the utils as well. :)
task/fips-operator-bundle-check/0.1/fips-operator-bundle-check.yaml
Outdated
Show resolved
Hide resolved
1be8abc
to
a004f49
Compare
task/fips-operator-bundle-check/0.1/fips-operator-bundle-check.yaml
Outdated
Show resolved
Hide resolved
c473776
to
43bea9c
Compare
43bea9c
to
fdd4578
Compare
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.
CODEOWNERS changes LGTM, for the rest I'll defer to @konflux-ci/integration-service-maintainers
/ok-to-test |
5760539
to
82b0df6
Compare
stepactions/fips-operator-check-step-action/0.1/fips-operator-check-step-action.yaml
Outdated
Show resolved
Hide resolved
82b0df6
to
65dd7e6
Compare
65dd7e6
to
6b9c1fb
Compare
Refers to CVP-4333. This task uses the check-payload tool to verify if an operator bundle image is FIPS compliant.It utilizes Tekton stepAction because the code will be reused for checking FBC fragments in the fbc-validation check. Signed-off-by: Yashvardhan Nanavati <[email protected]>
6b9c1fb
to
c94a207
Compare
@dirgim @arewm @hongweiliu17 The task image have now been updated and all suggested changes have been made. Can I please request a final review? |
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
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.
I didn't fully re-review, but I resolved the lingering thread.
Thanks!
/ok-to-test |
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 for the CODEOWNERS change
Refers to CVP-4333. This task uses the check-payload tool to verify if an operator bundle image is FIPS compliant.It utilizes Tekton stepAction because the code will be reused for checking FBC fragments in the fbc-validation check.