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

Pci dss shadow rule #9756

Merged
merged 4 commits into from
Nov 4, 2022

Conversation

anivan-suse
Copy link
Contributor

Description:

Add new rule to PCI-DSS-4

  • ensure_shadow_group_empty

@openshift-ci openshift-ci bot added the needs-ok-to-test Used by openshift-ci bot. label Nov 2, 2022
@openshift-ci
Copy link

openshift-ci bot commented Nov 2, 2022

Hi @anivan-suse. 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/test-infra repository.

@github-actions
Copy link

github-actions bot commented Nov 2, 2022

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

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

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@jan-cerny jan-cerny self-assigned this Nov 3, 2022
@@ -0,0 +1,4 @@
# platform = multi_platform_sle

grep ^shadow:[^:]*:[^:]*:[^:]+ /etc/group
Copy link
Collaborator

Choose a reason for hiding this comment

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

The CI fail seems a legit problem:

214/263 Test #215: sle15-bash-shellcheck .................................................***Failed   15.39 sec

In /__w/content/content/build/sle15/fixes/bash/ensure_shadow_group_empty.sh line 3:
grep ^shadow:[^:]*:[^:]*:[^:]+ /etc/group
     ^-----------------------^ SC2062: Quote the grep pattern so the shell won't interpret it.

For more information:
  https://www.shellcheck.net/wiki/SC2062 -- Quote the grep pattern so the she...

Please fix this

Comment on lines +22 to +23
cce@sle12: CCE-92213-8
cce@sle15: CCE-91344-2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove the used CCE from shared/references/cce-sle12-avail.txt and shared/references/cce-sle15-avail.txt.

Comment on lines 39 to 40
Remove all users from the shadow group, and change the primary group of any
users with shadow as their primary group.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This sentence is more a fixtext than ocil.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Used by openshift-ci bot. label Nov 4, 2022
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Used by openshift-ci bot. label Nov 4, 2022
@jan-cerny jan-cerny added this to the 0.1.65 milestone Nov 4, 2022
@jan-cerny jan-cerny added SLES SUSE Linux Enterprise Server product related. New Rule Issues or pull requests related to new Rules. labels Nov 4, 2022
@codeclimate
Copy link

codeclimate bot commented Nov 4, 2022

Code Climate has analyzed commit 2562f99 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 46.7% (0.0% change).

View more on Code Climate.

@jan-cerny jan-cerny merged commit 9b7602a into ComplianceAsCode:master Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ok-to-test Used by openshift-ci bot. New Rule Issues or pull requests related to new Rules. SLES SUSE Linux Enterprise Server product related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants