CMP-3765: ocp-virt: add rule to enforce MAC spoof filtering #847
Hi @stu-gott. Thanks for your PR.
I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.
<details>
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.
</details>
@stu-gott: This pull request references CMP-3765 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.
<details>
In response to this:
>Add rules to enforce the usage of MAC spoof filtering. This covers SRIOV devices and Network Attachment Definitions in two separate rules.
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 openshift-eng/jira-lifecycle-plugin repository.
</details>
Should be able to add this to the kustomization and TailoredProfile and it will get looped in automatically with oc apply -k
https://github.com/ComplianceAsCode/compliance-operator/blob/master/config/samples/custom-rules/openshift-virtualization/kustomization.yaml
https://github.com/ComplianceAsCode/compliance-operator/blob/master/config/samples/custom-rules/openshift-virtualization/tailored-profile.yaml
Should be able to add this to the kustomization and TailoredProfile and it will get looped in automatically with oc apply -k
https://github.com/ComplianceAsCode/compliance-operator/blob/master/config/samples/custom-rules/openshift-virtualization/kustomization.yaml
https://github.com/ComplianceAsCode/compliance-operator/blob/master/config/samples/custom-rules/openshift-virtualization/tailored-profile.yaml
If this isn't defined will it default to true? If we set !has(s.spec.config.macspoofcheck) will that also be okay?
Thanks for the PR - just a few comments inline!
This is a great hint. The OpenShift documentation is slightly ambiguous as to whether or not the default is true or false. Let me do some digging.
The default value is false, so the rule is written correctly I think.
Stale PRs are closed after 21d of inactivity.
If this PR is still relevant, comment to refresh it or remove the stale label.
Mark the PR as fresh by commenting /remove-lifecycle stale.
If this PR is safe to close now please do so with /close.
/lifecycle stale
Stale PRs rot after 14d of inactivity.
Mark the PR as fresh by commenting /remove-lifecycle rotten.
Rotten PRs close after an additional 7d of inactivity.
If this PR is safe to close now please do so with /close.
/lifecycle rotten
/remove-lifecycle stale
/remove-lifecycle rotten
Stale PRs are closed after 21d of inactivity.
If this PR is still relevant, comment to refresh it or remove the stale label.
Mark the PR as fresh by commenting /remove-lifecycle stale.
If this PR is safe to close now please do so with /close.
/lifecycle stale
Stale PRs rot after 14d of inactivity.
Mark the PR as fresh by commenting /remove-lifecycle rotten.
Rotten PRs close after an additional 7d of inactivity.
If this PR is safe to close now please do so with /close.
/lifecycle rotten
/remove-lifecycle stale
/remove-lifecycle rotten
Stale PRs are closed after 21d of inactivity.
If this PR is still relevant, comment to refresh it or remove the stale label.
Mark the PR as fresh by commenting /remove-lifecycle stale.
If this PR is safe to close now please do so with /close.
/lifecycle stale
/remove-lifecycle stale
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: <a href="https://github.com/ComplianceAsCode/compliance-operator/pull/847#" title="Author self-approved">stu-gott</a>
Once this PR has been reviewed and has the lgtm label, please assign taimurhafeez for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
<details open>
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
</details>
<!-- META={"approvers":["taimurhafeez"]} -->
@rhmdnd please note new activity on this ancient issue. Sorry for the delay.
@rhmdnd @jhrozek @xiaojiey? What's the proper review workflow?
rhmdnd
stu-gott
Add rules to enforce the usage of MAC spoof filtering. This covers SRIOV devices and Network Attachment Definitions in two separate rules.