Srt 1928 fipsbugfix (#373)

* FIPS message bug fix

* FIPS message bug fix
This commit is contained in:
SHASHIKANTH THAMBRAHALLI
2023-01-25 15:56:07 +05:30
committed by GitHub Enterprise
parent e08a8121f1
commit 862427306b

View File

@@ -60,11 +60,15 @@ func ProcessFIPSType(logs *logger.Logger) {
if strings.EqualFold(fipsOverride, "false") || strings.EqualFold(fipsOverride, "0") { if strings.EqualFold(fipsOverride, "false") || strings.EqualFold(fipsOverride, "0") {
FIPSEnabledType = FIPS_ENABLED_OFF FIPSEnabledType = FIPS_ENABLED_OFF
} else if strings.EqualFold(fipsOverride, "true") || strings.EqualFold(fipsOverride, "1") { } else if strings.EqualFold(fipsOverride, "true") || strings.EqualFold(fipsOverride, "1") {
// This is the case where OS is not FIPS compliant but we have been asked to run MQ // This is the case where OS may or may not be FIPS compliant but we have been asked
// queue manager, web server in FIPS mode. This case can be used when running docker tests. // to run MQ queue manager, web server and Native HA in FIPS mode. This case can also
FIPSEnabledType = FIPS_ENABLED_ENV_VAR // be used when running docker tests. If FIPS is enabled on host, then don't modify
// the original value.
if FIPSEnabledType != FIPS_ENABLED_PLATFORM {
FIPSEnabledType = FIPS_ENABLED_ENV_VAR
}
} else if strings.EqualFold(fipsOverride, "auto") { } else if strings.EqualFold(fipsOverride, "auto") {
// This is the default case. Leave it to the OS default as determine above // This is the default case. Leave it to the OS default as determined above.
} else { } else {
// We don't recognise the value specified. Log a warning and carry on. // We don't recognise the value specified. Log a warning and carry on.
if logs != nil { if logs != nil {