-
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
New SLE 15 rule set_nftables_table #10128
New SLE 15 rule set_nftables_table #10128
Conversation
Hi @rumch-se. 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 Once the patch is verified, the new status will be reflected by the 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. |
There was a problem hiding this 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. I have a few suggestions. Please also add Automatus tests for this rule as well.
linux_os/guide/system/network/network-nftables/set_nftables_table/rule.yml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/network/network-nftables/set_nftables_table/rule.yml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/network/network-nftables/var_nftables_family.var
Outdated
Show resolved
Hide resolved
linux_os/guide/system/network/network-nftables/var_nftables_table.var
Outdated
Show resolved
Hide resolved
linux_os/guide/system/network/network-nftables/set_nftables_table/ansible/shared.yml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/network/network-nftables/set_nftables_table/rule.yml
Outdated
Show resolved
Hide resolved
{{{ ansible_instantiate_variables("var_nftables_table") }}} | ||
|
||
- name: Collect existing nftables | ||
ansible.builtin.shell: nft list tables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need ansible.builtin.shell
or will ansible.builtin.command
work? ansible.builtin.command
is preferred.
|
||
#Set nftables family name | ||
{{{ bash_instantiate_variables("var_nftables_family") }}} | ||
NETWORK_LEVEL=$var_nftables_family |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can be removed, and just the variables directly in your command.
|
||
#Set nftables table name | ||
{{{ bash_instantiate_variables("var_nftables_table") }}} | ||
TABLE_NAME=$var_nftables_table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
status: manual # rule is missing | ||
status: automated | ||
notes: | ||
The audit (OVAL check) cannot be automated, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a side note, if you are willing to not be SCAP compliant SCE (script check engine) content could be used on this rule to automate the check.
Hello @Mab879 |
Code Climate has analyzed commit 1fb9537 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 49.5% (0.0% change). View more on Code Climate. |
…ble.var Co-authored-by: Marcus Burghardt <[email protected]>
There was a problem hiding this 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!
@teacup-on-rockingchair can you please take a look at this? |
LGTM, not sure what I can add, besides maybe a clause on nftables package in the remediation for bash:
and ansible:
otherwise on my broken SLE15 setup the remediation passes, assuming nftables commands work, when there is no nft command at all. |
Overriding CODEOWNERS since an SUSE approver is not available currently. |
Description:
Rationale: