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

Update ANSSI BP-028 to version 2.0 #10334

Merged

Conversation

vojtapolasek
Copy link
Collaborator

@vojtapolasek vojtapolasek commented Mar 14, 2023

Description:

  • reorganize and update ANSSI requirements in controls/anssi.yml
  • update profile versions and control file versions
  • update references in newly added rules

Rationale:

This PR introduces updated version of ANSSI profiles. The coverage is not 100% but the rules which are present in the profile are aligned with the security policy.

Reference: https://www.ssi.gouv.fr/guide/recommandations-de-securite-relatives-a-un-systeme-gnulinux/

Most changes were introduced by @yuumasato .

What still needs to be done?

[x] investigate problem where Ansible playbook for RHEL 7 is aborted

[x] gather rules which got removed during the upgrade process and remove ANSSI references

@vojtapolasek vojtapolasek added SLES SUSE Linux Enterprise Server product related. Highlight This PR/Issue should make it to the featured changelog. RHEL9 Red Hat Enterprise Linux 9 product related. Update Rule Issues or pull requests related to Rules updates. Update Profile Issues or pull requests related to Profiles updates. RHEL7 Red Hat Enterprise Linux 7 product related. RHEL8 Red Hat Enterprise Linux 8 product related. ANSSI ANSSI Benchmark related. labels Mar 14, 2023
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Used by openshift-ci bot. label Mar 14, 2023
@openshift-ci
Copy link

openshift-ci bot commented Mar 14, 2023

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

@github-actions
Copy link

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

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@yuumasato yuumasato self-assigned this Mar 20, 2023
vojtapolasek and others added 4 commits March 23, 2023 09:29
This keeps the same approach for ANSSI BP-028 profiles.
Add ANSSI references to rules that configure the IPv6 stack.
Remove ANSSI references from rules that are not selected anymore.
@vojtapolasek vojtapolasek marked this pull request as ready for review March 23, 2023 08:30
@vojtapolasek vojtapolasek requested review from a team as code owners March 23, 2023 08:30
@vojtapolasek vojtapolasek changed the title WIP: Update ANSSI BP-028 to version 2.0 Update ANSSI BP-028 to version 2.0 Mar 23, 2023
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Used by openshift-ci bot. label Mar 23, 2023
@yuumasato
Copy link
Member

@teacup-on-rockingchair Hi, have you had any involvement in the development of ANSSI profiles for SLE?
Do you have any thoughts regarding this update?

@yuumasato yuumasato requested a review from a team March 29, 2023 10:02
@yuumasato
Copy link
Member

yuumasato commented Mar 29, 2023

@dodys Hi, do you have any thoughts on this update?

Edit: I see that Ubuntu doesn't use the ANSSI Control file. So this PR won't affect Ubuntu's ANSSI profiles.
But you opinion is welcome anyways, :)

@yuumasato yuumasato requested review from a team and removed request for a team March 29, 2023 10:05
@yuumasato
Copy link
Member

@freddieRv Hi, do you have any thoughts on this update?

The ANSSI BP-028 profiles for OL will be updated to 2.0.

@yuumasato yuumasato added the Oracle Linux Oracle Linux product related. label Mar 29, 2023
@teacup-on-rockingchair
Copy link
Contributor

@teacup-on-rockingchair Hi, have you had any involvement in the development of ANSSI profiles for SLE? Do you have any thoughts regarding this update?

I did indeed, will try to provide feedback till end of the week, thanks for the heads up 🙇

Do we have CIS -like comparison between old and new revision, or just go over the requirement of the new spec?

@codeclimate
Copy link

codeclimate bot commented Mar 29, 2023

Code Climate has analyzed commit a9a8b1e 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 51.8% (0.0% change).

View more on Code Climate.

@yuumasato
Copy link
Member

I did indeed, will try to provide feedback till end of the week, thanks for the heads up bow

Do we have CIS -like comparison between old and new revision, or just go over the requirement of the new spec?

@teacup-on-rockingchair You mean generated by us? No.
But the 2.0 PDF has an Annex explaining changes from 1.2 to 2.0. (It is only in French for now)

Copy link
Member

@yuumasato yuumasato left a comment

Choose a reason for hiding this comment

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

Thank you for the fixes and improvements @vojtapolasek :)

Copy link
Contributor

@freddieRv freddieRv left a comment

Choose a reason for hiding this comment

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

Changes LGTM.
Thanks for the efforts guys!

@yuumasato yuumasato added this to the 0.1.68 milestone Apr 3, 2023
@yuumasato
Copy link
Member

@teacup-on-rockingchair Hi, have you had any involvement in the development of ANSSI profiles for SLE? Do you have any thoughts regarding this update?

I did indeed, will try to provide feedback till end of the week, thanks for the heads up bow

Do we have CIS -like comparison between old and new revision, or just go over the requirement of the new spec?

@teacup-on-rockingchair Hi, did you have a chance to look at the ANSSI 2.0 update?

@teacup-on-rockingchair
Copy link
Contributor

@teacup-on-rockingchair Hi, have you had any involvement in the development of ANSSI profiles for SLE? Do you have any thoughts regarding this update?

I did indeed, will try to provide feedback till end of the week, thanks for the heads up bow
Do we have CIS -like comparison between old and new revision, or just go over the requirement of the new spec?

@teacup-on-rockingchair Hi, did you have a chance to look at the ANSSI 2.0 update?

Did some initial review and tests LGTM 👍

Copy link
Member

@marcusburghardt marcusburghardt left a comment

Choose a reason for hiding this comment

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

I have checked all commits and the final control file. The changes are sane and the control file parameters are consistent with the referenced document. I didn't check each rule in details to confirm they are doing exactly what is expected from the requirement. But they were mostly just included in the controlfile. So, if any referenced rule needs updates, it is not in the scope of this PR.

@marcusburghardt
Copy link
Member

Overriding CODEOWNERS since a SUSE approver is not currently available. Also, we have a green light from one of the SUSE contributors: #10334 (comment)

@marcusburghardt marcusburghardt merged commit acc24a1 into ComplianceAsCode:master Apr 11, 2023
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ANSSI ANSSI Benchmark related. Highlight This PR/Issue should make it to the featured changelog. Oracle Linux Oracle Linux product related. RHEL7 Red Hat Enterprise Linux 7 product related. RHEL8 Red Hat Enterprise Linux 8 product related. RHEL9 Red Hat Enterprise Linux 9 product related. SLES SUSE Linux Enterprise Server product related. Update Profile Issues or pull requests related to Profiles updates. Update Rule Issues or pull requests related to Rules updates.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants