Fix configure_opensc_nss_db bash remediation#7017
Fix configure_opensc_nss_db bash remediation#7017freddieRv wants to merge 1 commit intoComplianceAsCode:masterfrom
Conversation
Signed-off-by: Federico Ramirez <federico.r.ramirez@oracle.com>
|
Hi @freddieRv. 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. DetailsInstructions 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. |
|
Changes identified: Show detailsRule configure_opensc_nss_db: Recommended tests to execute: |
|
I've tried to do something similar in the past (#4776) regarding this rule, but faced some technical aspects of this module that the way of configuring it was not really something that worked. I don't remember exactly the details but I can try to find conversations with maintainer to illustrate better. Have you tried to do a functional testing with this using smart cards? |
This is an excerpt from what I got from one of the maintainers: |
|
@ggbecker Thanks for the feedback and the extra information. I was not aware of #4776.
I have not. My goal with this PR was to bring the bash remediation to what it intended to do. I am also not quite familiar with this module. Only after some digging I found the However after reading the info you provided:
I believe the oval check could use some updating too. |
| # disruption = low | ||
|
|
||
| PKCSSW=$(/usr/bin/pkcs11-switch) | ||
| PKCSSW="/usr/bin/pkcs11-switch" |
There was a problem hiding this comment.
This script is in the opensc package so if the package is not installed the remediation will do result in error.
@ggbecker do you think that installing the opensc package in this remediation is a good idea? Installation of opensc feels like a different rule, however without the package we can't perform remediation of this one.
There was a problem hiding this comment.
@mildas Probably yes, Imagine that somebody will update the rule in the future and this test will be executed by the CTF.
In theory, we have no confirmation that this rule is useful. Because the OVAL check looks for the |
I would say so. The rule itself is very controversial and I couldn't find the proper solution back in the days. Although the check/remediation could be properly aligned, there is no evidence that the configuration actually works. |
Description:
pkcs11-switchand to runpkcs11-switch openscinside ofifstatementmodutilsincepkcs11-switch openscdoes not update/etc/pki/nssdb/pkcs11.txt. Without this update rule results infaileven after successfully running the remediationRationale: