Paramiko is not compatible with FIPS mode or system with strict crypto policies. Therefore we should not use Paramiko in tests. All tests should be rewritten to use OpenSSH client.
test_ssh_key_connection
test_integration.test_commands
test_selinux_user_optimized
test_integration.test_user_permissions
test_integration.test_otp
test_webui
Since multiple tests use SSH it makes sense to create a simple API for the problem. The interface should support private key and password based logins. For password based logins we can use sshpass helper. To isolate from the testing environment, the API should use its own config file and directory for pubkey, privkey, known hosts file, and settings.
sshpass
Metadata Update from @cheimes: - Issue tagged with: fips, testblocker
master:
ipa-4-8:
Metadata Update from @fcami: - Issue assigned to fcami
Metadata Update from @fcami: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/4938 - Issue set to the milestone: None (was: FreeIPA 4.8.3)
Metadata Update from @fcami: - Custom field changelog adjusted to Paramiko is not compatible with FIPS mode, therefore convert most tests to using ssh directly. The only non-converted test is the 2-prompt OTP test because sshpass does not support 2-prompt password authentication.
Filed https://pagure.io/freeipa/issue/8431
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Metadata Update from @fcami: - Custom field changelog adjusted to Paramiko is not compatible with FIPS mode, therefore convert most tests to using ssh directly. The only non-converted test is the 2-prompt OTP test because sshpass does not support 2-prompt password authentication ( https://pagure.io/freeipa/issue/8431 ). (was: Paramiko is not compatible with FIPS mode, therefore convert most tests to using ssh directly. The only non-converted test is the 2-prompt OTP test because sshpass does not support 2-prompt password authentication.)