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

Re-enable runtime check on network related sysctls #11722

Merged

Conversation

yuumasato
Copy link
Member

Description:

Rationale:

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Used by openshift-ci bot. label Mar 15, 2024
Copy link

openshift-ci bot commented Mar 15, 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

Copy link

Start a new ephemeral environment with changes proposed in this pull request:

rhel8 (from CTF) Environment (using Fedora as testing environment)
Open in Gitpod

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

Copy link

github-actions bot commented Mar 15, 2024

🤖 A k8s content image for this PR is available at:
ghcr.io/complianceascode/k8scontent:11722
This image was built from commit: 00023fb

Click here to see how to deploy it

If you alread have Compliance Operator deployed:
utils/build_ds_container.py -i ghcr.io/complianceascode/k8scontent:11722

Otherwise deploy the content and operator together by checking out ComplianceAsCode/compliance-operator and:
CONTENT_IMAGE=ghcr.io/complianceascode/k8scontent:11722 make deploy-local

@marcusburghardt marcusburghardt added the OpenShift OpenShift product related. label Apr 18, 2024
@yuumasato yuumasato marked this pull request as ready for review April 22, 2024 17:55
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Used by openshift-ci bot. label Apr 22, 2024
@yuumasato
Copy link
Member Author

This is ready for reviews, the fix on Compliance Operator side works.

@yuumasato yuumasato requested review from Vincent056 and rhmdnd April 22, 2024 17:56
@xiaojiey
Copy link
Collaborator

/lgtm
As this PR has been verified in ComplianceAsCode/compliance-operator#497.

@jan-cerny
Copy link
Collaborator

@rhmdnd @Vincent056 Any volunteers?

@yuumasato You'll probably have to rebase this to resolve the CI checks.

Copy link
Contributor

@Vincent056 Vincent056 left a comment

Choose a reason for hiding this comment

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

/lgtm

@yuumasato
Copy link
Member Author

yuumasato commented May 22, 2024

I can rebase the PR, but I'd rather have this one merged after ComplianceAsCode/compliance-operator#497
CC: @Vincent056 @rhmdnd

When the CO's "scanner" pod has "HostNetwork" option set to true, these
sysctls are visible with values matching Host syctls.
@yuumasato yuumasato force-pushed the rhcos4_sysctl_check_runtime branch from 2e33816 to 00023fb Compare June 28, 2024 16:01
@yuumasato
Copy link
Member Author

Rebased after merge of ComplianceAsCode/compliance-operator#497
CC: @Vincent056 @rhmdnd

Copy link

codeclimate bot commented Jun 28, 2024

Code Climate has analyzed commit 00023fb and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 59.4% (0.0% change).

View more on Code Climate.

Copy link
Contributor

@Vincent056 Vincent056 left a comment

Choose a reason for hiding this comment

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

/lgtm

@rhmdnd rhmdnd added this to the 0.1.74 milestone Jul 12, 2024
@rhmdnd
Copy link
Collaborator

rhmdnd commented Jul 12, 2024

/test

@rhmdnd
Copy link
Collaborator

rhmdnd commented Jul 12, 2024

/test e2e-aws-rhcos4-high

We should be able to exercise this in the e2e suite now that ComplianceAsCode/compliance-operator#497 landed and should be available through the latest container images in the upstream container registry.

@rhmdnd
Copy link
Collaborator

rhmdnd commented Jul 12, 2024

/test e2e-aws-rhcos4-high

Copy link
Collaborator

@rhmdnd rhmdnd left a comment

Choose a reason for hiding this comment

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

/lgtm

e2e assertions worked as expected:

    helpers.go:872: Result - Name: e2e-high-worker-sysctl-net-ipv6-conf-all-accept-ra - Status: PASS - Severity: medium
    helpers.go:1060: Rule e2e-high-worker-sysctl-net-ipv6-conf-all-accept-ra matched expected result
    helpers.go:872: Result - Name: e2e-high-worker-sysctl-net-ipv6-conf-all-accept-redirects - Status: PASS - Severity: medium
    helpers.go:1060: Rule e2e-high-worker-sysctl-net-ipv6-conf-all-accept-redirects matched expected result
    helpers.go:872: Result - Name: e2e-high-worker-sysctl-net-ipv6-conf-all-accept-source-route - Status: PASS - Severity: medium
    helpers.go:1060: Rule e2e-high-worker-sysctl-net-ipv6-conf-all-accept-source-route matched expected result
    helpers.go:872: Result - Name: e2e-high-worker-sysctl-net-ipv6-conf-default-accept-ra - Status: PASS - Severity: medium
    helpers.go:1060: Rule e2e-high-worker-sysctl-net-ipv6-conf-default-accept-ra matched expected result
    helpers.go:872: Result - Name: e2e-high-worker-sysctl-net-ipv6-conf-default-accept-redirects - Status: PASS - Severity: medium
    helpers.go:1060: Rule e2e-high-worker-sysctl-net-ipv6-conf-default-accept-redirects matched expected result
    helpers.go:872: Result - Name: e2e-high-worker-sysctl-net-ipv6-conf-default-accept-source-route - Status: PASS - Severity: medium
    helpers.go:1060: Rule e2e-high-worker-sysctl-net-ipv6-conf-default-accept-source-route matched expected result

@rhmdnd rhmdnd merged commit 916bfa4 into ComplianceAsCode:master Jul 12, 2024
89 of 95 checks passed
@yuumasato yuumasato deleted the rhcos4_sysctl_check_runtime branch July 24, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OpenShift OpenShift product related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants