Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3211

Openshift properties related to passwords in EJB_TIMER cannot use literal $n

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.10.0.GA
    • 7.8.0.GA
    • Cloud
    • None
    • 2020 Week 43-45 (from Okt 19), 2020 Week 46-48 (from Nov 9)

    Description

      Customer is using this config map:

      ```
      apiVersion: app.kiegroup.org/v2
      kind: KieApp
      metadata:
      annotations:
      app.kiegroup.org: 7.8.1
      ...
      spec:
      ...
      servers:
      ...
      database:
      externalConfig:
      ...
      password: foobar$0 #notsecret
      ```
      Openshift RHPAM runs through entrypoint openshift-launch.sh

      The yaml template is parsed and set as env variables here and there. finally all end in standalone-openshift.xml

      This database password ends in:

      ```
      ...
      <xa-datasource ...>
      ...
      <security>
      ...
      <password>foobar/opt/eap/bin/openshift-launch.sh</password>
      </security>
      ...
      </xa-datasource>
      ```

      Looks like if you use a property like 'foobar$0' $0 gets replaced with script file name.

      $0 is the parameter in bash for script file name but only if you put in double quotes.

      Looks like we should support that, like property = "$PREFIXfoobar" gets PREFIX replaced.

      See:

      https://github.com/jboss-container-images/rhpam-7-openshift-image/blob/master/templates/rhpam710-kieserver-postgresql.yaml#L821

      ```

      • name: POSTGRESQL_PASSWORD
        value: "${KIE_SERVER_POSTGRESQL_PWD}"
        ```

      In that case maybe check if single quotes prevent the replacement. so one can use 'foobar$0' as literal

      Attachments

        Issue Links

          Activity

            People

              mdessi-1 Massimiliano Dessi
              afanjula@redhat.com Alberto Fanjul Alonso
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: