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

Added check for GNUtls in FIPS140 mode #678

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pablo-herranz
Copy link

@pablo-herranz pablo-herranz commented Nov 29, 2024

Verify that FIPS bci container is in FIPS140 mode to be compliant with Vendor Affirmation tests

https://progress.opensuse.org/issues/167683

[CI:TOXENVS] fips

Copy link
Contributor

@grisu48 grisu48 left a comment

Choose a reason for hiding this comment

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

We need to really stick with the requirements on this topic.

@@ -195,6 +195,10 @@ def test_gnutls_binary(container_per_test: ContainerData) -> None:
"mv fips-test-gnutls /bin/fips-test-gnutls"
)

assert "NOT" not in container_per_test.connection.check_output(
Copy link
Contributor

@grisu48 grisu48 Dec 2, 2024

Choose a reason for hiding this comment

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

This check is wrong. The requirement states:

should return "library is in FIPS140-3 mode"or "library is in FIPS140-2 mode" or "library is in FIPS140 mode"

So just checking for NOT is not what the requirement states. We need to be rigorous here.

@pablo-herranz pablo-herranz marked this pull request as draft December 2, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants