Skip to content

Ensure application settings in tests adhere to FIPS requirements

Stan Hu requested to merge sh-application-settings-fips into master

What does this MR do and why?

When running tests in FIPS mode, ApplicationSetting by default has invalid SSH key size restrictions. We now ensure the FactoryBot creates a ApplicationSetting that conforms to FIPS requirements.

This can be tested via:

FIPS_MODE=true bundle exec rspec spec/services/application_settings/update_service_spec.rb spec/models/application_setting_spec.rb

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Stan Hu

Merge request reports