Data in secret corrupted after editing the Secret in the OpenShift Container Platform 4 - Management Console
Issue
-
Storing a Java Truststore (i.e.
truststore.p12
or any other binary data) asSecret
in Openshift is working fine as long as theSecret
is not edited. As soon as any field from thesecret
is changed over the GUI the file gets correupted and the application receives an exception like:java.io.IOException: Invalid keystore format.
-
When modifying a
secret
in 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.