Skip to content

Conversation

@teacup-on-rockingchair
Copy link
Contributor

Description:

Add use_kerberos_security_all_exports to SLE15 HIPAA profile

Rationale:

Add ansible,bash remediation and tests for use_kerberos_security_all_exports

@openshift-ci
Copy link

openshift-ci bot commented Nov 22, 2021

Hi @teacup-on-rockingchair. 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.

Details

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.

@openshift-ci openshift-ci bot added the needs-ok-to-test Used by openshift-ci bot. label Nov 22, 2021
@github-actions
Copy link

This datastream diff is auto generated by the check Compare DS/Generate Diff

Click here to see the full diff
New datastream adds bash remediation for rule 'xccdf_org.ssgproject.content_rule_use_kerberos_security_all_exports'.
New datastream adds ansible remediation for rule 'xccdf_org.ssgproject.content_rule_use_kerberos_security_all_exports'.

@jan-cerny jan-cerny self-assigned this Nov 22, 2021
do
correct_export=""
if [ "$(grep -c "sec=" <<<"$nfs_export")" -eq 0 ]; then
correct_export="$(echo $nfs_export|sed -e 's/sec=[^\,\)]*/sec=krb5\:krb5i\:krbp5/')"
Copy link
Collaborator

Choose a reason for hiding this comment

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

It should be krb5p, not krbp5.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be fixed in should be fixed in a59ed41

for nfs_export in "${nfs_exports[@]}"
do
correct_export=""
if [ "$(grep -c "sec=" <<<"$nfs_export")" -eq 0 ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

You probably swap the command in the if branch with the command in the else branch. If the count of sec= in the string is 0, it won't make sense to try replacing sec= by sed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should be fixed in a59ed41

@@ -0,0 +1,3 @@
# platform = multi_platform_all

Copy link
Collaborator

Choose a reason for hiding this comment

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

Many test scenarios fail when bash remediation is used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thx, obviously there was some bad copy-pasting from my test machine, should be fixed in a59ed41

- Confused logic fixed when to replace sec parameter and when to add
- Fixed type on krb5p value

Thanks to @jan-cerny for the feedback
@jan-cerny jan-cerny added this to the 0.1.60 milestone Nov 23, 2021
@jan-cerny jan-cerny merged commit 6c3aece into ComplianceAsCode:master Nov 23, 2021
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants