Skip to content

FIPS mode + manager.env.ssl=false causes Manager to error out. #1208

@irgama

Description

@irgama

Environment
Platform: EKS
Kubernetes/Platform Version(s): 1.31

Describe the bug
Upon upgrading to v5.4.2 the manager container crashes during initialization. Error log below:
FIPS mode detected (via /proc/sys/crypto/fips_enabled). 2025-01-22 15:01:09,594|INFO |MANAGER|apache.pekko.event.slf4j.Slf4jLogger(applyOrElse:117): Slf4jLogger started Exception in thread "main" java.lang.ExceptionInInitializerError at org.apache.pekko.http.scaladsl.HttpExt.sslTlsStage(Http.scala:858) at org.apache.pekko.http.scaladsl.HttpExt.sslTlsServerStage(Http.scala:845) at org.apache.pekko.http.scaladsl.HttpExt.fuseServerBidiFlow(Http.scala:114) at org.apache.pekko.http.scaladsl.HttpExt.bindAndHandle(Http.scala:253) at org.apache.pekko.http.scaladsl.HttpExt.bindAndHandleImpl(Http.scala:309) at org.apache.pekko.http.scaladsl.HttpExt.bindAndHandleAsync(Http.scala:374) at org.apache.pekko.http.scaladsl.HttpExt.bindAndHandleAsyncImpl(Http.scala:387) at org.apache.pekko.http.scaladsl.ServerBuilder$Impl.bind(ServerBuilder.scala:160) at com.neu.core.BootedCore.$init$(Core.scala:35) at com.neu.web.Rest$.<clinit>(Rest.scala:8) at com.neu.web.Rest.main(Rest.scala) Caused by: java.security.NoSuchAlgorithmException: Default SSLContext not available at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:159) at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:185) at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:110) at org.apache.pekko.stream.scaladsl.TLSPlacebo$.<clinit>(TLS.scala:232) ... 11 more

To Reproduce
Steps to reproduce the behavior:

  1. Enabled FIPS mode.
  2. Disable Manager SSL. (This is done because we have a LB in front of it that handles SSL)
  3. Use 5.4.2 image.
    Expected behavior
    Manager to be able to run without SSL enabled (i.e. as http) in order to allow our LB to handle SSL into/out of the cluster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UINeuVector manager repo's tasks, including UI and seb serverbugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions