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

Add al2023 product #12006

Merged
merged 28 commits into from
Jun 27, 2024
Merged

Conversation

hipponix
Copy link
Contributor

@hipponix hipponix commented May 20, 2024

Description:

  • Add AL2023 Product
  • Add CIS level 1 and level 2 controls

Rationale:

  • AWS is now supporting AL2023 and announced is end of life for AL2
  • Al2023 product is missing in the existing catalog

Review Hints:

./build_product -j 8 al2023

@openshift-ci openshift-ci bot added the needs-ok-to-test Used by openshift-ci bot. label May 20, 2024
Copy link

openshift-ci bot commented May 20, 2024

Hi @hipponix. Thanks for your PR.

I'm waiting for a ComplianceAsCode 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.

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.

Copy link

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

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

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@marcusburghardt marcusburghardt added the New Product Issues or pull requests related to new Products. label May 21, 2024
@hipponix
Copy link
Contributor Author

@marcusburghardt should you need more work here from my end or even split it into multiple PRs to ease you review process, just let me know.
This is my first PR here and might have (mistakenly) skipped needed practices.
Best
Mirco

@marcusburghardt
Copy link
Member

@marcusburghardt should you need more work here from my end or even split it into multiple PRs to ease you review process, just let me know. This is my first PR here and might have (mistakenly) skipped needed practices. Best Mirco

Hi @hipponix , first thanks for the contribution.
I didn't have a time to review this PR (likely others project maintainers neither). We should manage it soon.

Copy link

github-actions bot commented May 29, 2024

🤖 A k8s content image for this PR is available at:
ghcr.io/complianceascode/k8scontent:12006
This image was built from commit: 1324b12

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:12006

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

@hipponix
Copy link
Contributor Author

@marcusburghardt should you need more work here from my end or even split it into multiple PRs to ease you review process, just let me know. This is my first PR here and might have (mistakenly) skipped needed practices. Best Mirco

Hi @hipponix , first thanks for the contribution. I didn't have a time to review this PR (likely others project maintainers neither). We should manage it soon.

no intent to put some pressure here, thanks @marcusburghardt ! I noticed there are quite a few PRs to be processed so you maintainers might be very busy.

@Mab879 Mab879 self-assigned this May 29, 2024
@Mab879 Mab879 added this to the 0.1.74 milestone May 29, 2024
Copy link
Member

@Mab879 Mab879 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR.

Please take a look at my comments. They boil down the following:

  1. Ensure fully qualified collection name (FCQN) for Ansible
  2. If you don't want rules in a profile backed by a control file, it might be bested to move them to the related_rules section on each control.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Used by openshift-ci bot. label May 30, 2024
@hipponix hipponix requested review from a team as code owners May 31, 2024 10:03
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Used by openshift-ci bot. label May 31, 2024
Copy link
Contributor

@dodys dodys left a comment

Choose a reason for hiding this comment

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

you will need to rebase your branch as it has a bunch of commits from master on it.

@dodys
Copy link
Contributor

dodys commented May 31, 2024

@hipponix do not merge master into your feature branch, that creates unnecessary commits, please rebase your branch instead

@openshift-merge-robot openshift-merge-robot added the needs-rebase Used by openshift-ci bot. label Jun 3, 2024
@hipponix hipponix force-pushed the 11785-create-al2023-product branch from 4d98497 to 49176c4 Compare June 4, 2024 10:50
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Used by openshift-ci bot. label Jun 4, 2024
@dodys
Copy link
Contributor

dodys commented Jun 5, 2024

/packit build

@openshift-merge-robot openshift-merge-robot added the needs-rebase Used by openshift-ci bot. label Jun 7, 2024
@Mab879
Copy link
Member

Mab879 commented Jun 10, 2024

@hipponix a quick rebase on master to resolve the conflicts in .github/workflows/gate_fedora.yml should get this a good state for a full review.

Copy link
Contributor

@Xeicker Xeicker left a comment

Choose a reason for hiding this comment

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

No extra comments, apart from already suggested changes it LGTM

@hipponix hipponix force-pushed the 11785-create-al2023-product branch from 49176c4 to 498ef66 Compare June 11, 2024 11:59
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Used by openshift-ci bot. label Jun 11, 2024
Copy link
Contributor

@dodys dodys left a comment

Choose a reason for hiding this comment

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

a few minor things to fix

build_product Outdated
@@ -378,6 +378,7 @@ all_cmake_products=(
MACOS1015
OPENEMBEDDED
OPENEULER2203
AL2023
Copy link
Contributor

Choose a reason for hiding this comment

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

indentation issue and also not alphabetically ordered.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done - Thanks!

CMakeLists.txt Outdated
@@ -466,6 +468,9 @@ endif()
if(SSG_PRODUCT_UOS20)
add_subdirectory("products/uos20" "uos20")
endif()
if(SSG_PRODUCT_AL2023)
Copy link
Contributor

Choose a reason for hiding this comment

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

needs to be sorted alphabetically

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done - Thanks!

ocp4
ocp4 \
uos20 \
al2023
Copy link
Contributor

Choose a reason for hiding this comment

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

needs to be sorted alphabetically and is including twice the uos20

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done - Thanks!

@@ -170,7 +170,8 @@ jobs:
rhel9 \
rhel10 \
uos20 \
ocp4
ocp4 \
Copy link
Contributor

Choose a reason for hiding this comment

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

needs to be sorted alphabetically

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done - Thanks!

hipponix and others added 22 commits June 25, 2024 11:32
…nstalled/ansible/shared.yml


thanks

Co-authored-by: Matthew Burket <[email protected]>
…nstalled/ansible/shared.yml


thanks

Co-authored-by: Matthew Burket <[email protected]>
…nstalled/ansible/shared.yml


thanks

Co-authored-by: Matthew Burket <[email protected]>
…nstalled/ansible/shared.yml


thanks

Co-authored-by: Matthew Burket <[email protected]>
…nstalled/ansible/shared.yml


thanks

Co-authored-by: Matthew Burket <[email protected]>
…nf by pointing to aws servers"

This reverts commit e745325.
… file - Add build/.gitkeep back - Remove AL2023 from building derivates
@hipponix hipponix force-pushed the 11785-create-al2023-product branch from 8e44b5c to 1324b12 Compare June 25, 2024 11:33
@hipponix
Copy link
Contributor Author

Thanks @Mab879 and @0intro for supporting here.
It should be ok now .. and if not, let me know.
Waiting for your feedback!

@Mab879 Mab879 added the Highlight This PR/Issue should make it to the featured changelog. label Jun 26, 2024
Copy link

codeclimate bot commented Jun 26, 2024

Code Climate has analyzed commit 1324b12 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
Member

@Mab879 Mab879 left a comment

Choose a reason for hiding this comment

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

LGTM.

Thanks for the hard work.

I am waving the following tests:

  • Automatus Ubuntu 22.04 - not related to this PR
  • Compare DS / Generate Diff - new product, nothing to compare
  • Automatus CS8 - expected, not related to this PR
  • Automatus CS9 - rule for amazon linux not found, expected
  • Automatus Fedora - rule for amazon linux not found, expected
  • Automatus SLE15 - rule for amazon linux not found, expected
  • Build, Test on Fedora Rawhide - expected

@Mab879
Copy link
Member

Mab879 commented Jun 27, 2024

@dodys You still have request for changes out.

Everything look good to you?

Copy link
Contributor

@dodys dodys left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!
and thanks @0intro and @hipponix for working together on it!

@Mab879 Mab879 merged commit e2a9877 into ComplianceAsCode:master Jun 27, 2024
81 of 88 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Highlight This PR/Issue should make it to the featured changelog. needs-ok-to-test Used by openshift-ci bot. New Product Issues or pull requests related to new Products.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants