2 Replies Latest reply on Nov 12, 2014 9:23 AM by rhauch

    Encrypting JDBC Connection details for Modeshape

    deepak_a

      All,

       

      I am using Modeshape 3.8.0 Final and infirnispan 5.3.0.Final.

      My modeshape-repository-config.json refers to the infinispan-config.xml.

       

       

      infinispan uses stringKeyedJdbcStore, the JDBC connection details are specified as follows

       

      <stringKeyedJdbcStore  xmlns="urn:infinispan:config:jdbc:5.2"  fetchPersistentState="false" ignoreModifications="false" purgeOnStartup="false">
      <connectionPool driverClass="oracle.jdbc.driver.OracleDriver"
      connectionUrl="jdbc:oracle:thin:@localhost:1521:xe"
      username="test" password="test"/>

       

       

      I would like to know how to encrypt the password?

      Currently its a clearText and I need to store as an encrypted string.

       

      Is this supported out of the box?

       

       

      regards

        • 1. Re: Encrypting JDBC Connection details for Modeshape
          hchiorean

          I'm not convinced this is possible via the Infinispan XML configuration file (nevertheless please address this question on the Infinispan forums).

          A possible workaround is to use environment variables as opposed to clear-case strings. e.g. username="${username}" password="${password}"

          • 2. Re: Encrypting JDBC Connection details for Modeshape
            rhauch

            Horia Chiorean wrote:

             

            I'm not convinced this is possible via the Infinispan XML configuration file (nevertheless please address this question on the Infinispan forums).

            A possible workaround is to use environment variables as opposed to clear-case strings. e.g. username="${username}" password="${password}"

            Or, use a container that securely manages data sources for you.