-
Notifications
You must be signed in to change notification settings - Fork 706
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
Issue generating new content #6398
Comments
maybe you can start reading the discussion in this issue: #6337 basically CentOS is a in the |
Thank you @ggbecker! I just generated my profile with your advice and it ran successfully. Do you have any advice on how I could potentially modify the guide and report to reflect it being a CentOS instance? If there isn't a built-in method for doing so, I'll just automate that on my end. |
I don't really understand what kind of modifications you want to do. Maybe you can add some examples to illustrate. These files are responsible for handling these derivative products. You can take a look: https://github.com/ComplianceAsCode/content/blob/master/ssg/build_derivatives.py |
Thanks @ggbecker! I'll take a look at those scripts. I have another semi-related issue with adding Ubuntu20.04. I am adding a Ubuntu20.04 product at the moment following the directions specified here and am running into this issue when specifying rules within my profile: |
The rule is probably missing the This property will say in which benchmark the rule will get into. We even have a utility to modify this parameter across multiple files. I think you can even try using the matching option the tool provides to match everything from ubuntu1804 so every rule from this product will be applicable to ubuntu2004 which is most likely what's in reality will be. |
@Chalmiller As a FYI, I'm actively working on getting a CIS Level 1 Profile working for Ubuntu 20.04 (this is my fork and I broke out all the relevant rules in the profile) and would welcome any help porting/confirming tests. I am by no means trying to declare dibs on Ubuntu 20.04 but I'd hate for us to be duplicating work. I've debated about opening a WIP PR here but I didn't know when it would be appropriate given there's still a lot of work to do. |
I don't see why not? WIP PRs are better than looking at other branches. |
@redhatrises Fair enough, WIP PR started as #6416 |
Awesome, thank you @Caligatio! I'll take a look and utilize what you have in place. @ggbecker @redhatrises @Caligatio Thank you so much! I got the CentOS7 profile running and everything looks great. I've since moved on to CentOS8 using
|
There is an issue with the CPEs for derivative products that should be fixed by #6447. I believe after that gets merged it will solve your issue. You may even try the changes from that pull request.
The way we introduce CPEs to the project got changed a bit recently. Here is the documentation: https://complianceascode.readthedocs.io/en/latest/manual/developer/06_contributing_with_content.html?highlight=cpe#applicability-by-cpe and you can also get inspired by the pull request that introduced the new way of adding CPEs: #6304 |
Awesome, I'll take a look at the pull request now. As an aside, do you happen to know if an Amazon Linux product is in the works? I've tried adding one following the guide listed in my initial post here, but I'm getting this runtime error Here is the full stack trace:
@ggbecker Would you mind double checking me on whether I am specifying these environment variables correctly?
|
I don't know exactly what the error is and I realized that the instructions on |
Maybe you are still interested in contributing a new amazon linux product to the project. This is a very fresh PR that introduced a new product and can be used as a template: #10548 I closing this ticket for now due to inactivity. |
Description of problem:
I am attempting to generate a custom policy for CentOS7 following the guide. Given that the CentOS-7 CIS benchmarks are very limited compared to the RHEL7 benchmarks, I would like to just use the RHEL7 CIS benchmarks to generate my profile content. Is there a way to do so following the guide's example, or should I just use the SCAP workbench to do so? My main reason for not already doing so is that down the line I will need to incorporate custom rules into my profile.
The text was updated successfully, but these errors were encountered: