Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-32401

Base64 data value for java keystore secret changing automatically

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 4.16
    • Management Console
    • None
    • Important
    • Yes
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      For some reason the changing on the PR https://github.com/openshift/console/pull/11890 has been overrided
      
      Issue:
      Secret created for java Keystore changing its base64 value inside secret when we edit that secret from the console and saving it again without doing any changes   

      Version-Release number of selected component (if applicable):

          4.16.0-0.nightly-2024-04-16-195622

      How reproducible:

          Always

      Steps to Reproduce:

      1.Create a dummy Java keystore for the test
        $ keytool -genkey -v -keystore original.jks -alias alias_name -keyalg RSA -keysize 2048 -validity 10000     
      2.Create a secret on the test project using a java key-store file 
        $ oc create secret generic test1 --from-file=data1=./original.jks   
      3. Check the secret, and take a backup.
        $ oc get secret test1 -o yaml > secret1.yaml
      4. Open OCP console, Go to Workload-->Secret-->Select project-->Click on test1 secret-->Action-->Edit secret-->Save it without changing anything
         Or Go to the Scrects page -> Click the Kebab button of the test1 secret -> choose "Edit secret" -> Save without change anything
      5. Check the secret again, and compare it with the original one. 
         $ oc get secret test1 -o yaml > secret2.yaml
      6. $diff secret1.yaml secret2.yaml

      Actual results:

      The value for key data1 is changing.
      

      Expected results:

      The value for key data1 should remain the same.
      

      Additional info:

       

      Attachments

        Activity

          People

            jhadvig@redhat.com Jakub Hadvig
            rhn-support-xiyuzhao Xiyun Zhao
            Xiyun Zhao Xiyun Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: