Data in secret corrupted after editing the Secret in the OpenShift Container Platform 4 - Management Console
Issue
-
Storing a Java Truststore (i.e.
truststore.p12or any other binary data) asSecretin Openshift is working fine as long as theSecretis not edited. As soon as any field from thesecretis changed over the GUI the file gets correupted and the application receives an exception like:java.io.IOException: Invalid keystore format. -
When modifying a
secretin the Management Console that has a binary file inclued (such as a keystore), the keystore will get corrupted post the modification and therefore impact application functionality.
Environment
- Red Hat OpenShift Container Platform (RHOCP) 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.