mirror of
https://github.com/minio/minio.git
synced 2025-11-29 13:28:17 -05:00
fips: enforce FIPS-compliant TLS ciphers in FIPS mode (#20131)
This commit enforces FIPS-compliant TLS ciphers in FIPS mode by importing the `fipsonly` module. Otherwise, MinIO still accepts non-FIPS compliant TLS connections.
This commit is contained in:
committed by
GitHub
parent
b3a94c4e85
commit
4f5dded4d4
@@ -138,10 +138,6 @@ func TLSCurveIDs() []tls.CurveID {
|
||||
if !Enabled {
|
||||
curves = append(curves, tls.X25519) // Only enable X25519 in non-FIPS mode
|
||||
}
|
||||
curves = append(curves, tls.CurveP256)
|
||||
if go19 {
|
||||
// With go1.19 enable P384, P521 newer constant time implementations.
|
||||
curves = append(curves, tls.CurveP384, tls.CurveP521)
|
||||
}
|
||||
curves = append(curves, tls.CurveP256, tls.CurveP384, tls.CurveP521)
|
||||
return curves
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user