1 Reply Latest reply on Feb 10, 2016 8:56 AM by rareddy

    Teiid datasource encryption

    sanjay762k

      Do anyone know if it is possible to encrypt data source password in standalone-teiid.xml file? As I am using teiid to connect to Cassandra database.

       

      here is my configuration at standalone-teiid.xml

       

      <resource-adapter id="cassandra">

       

                          <module slot="main" id="org.jboss.teiid.resource-adapter.cassandra"/>

                          <transaction-support>NoTransaction</transaction-support>

                          <connection-definitions>

                              <connection-definition class-name="org.teiid.resource.adapter.cassandra.CassandraManagedConnectionFactory" jndi-name="java:/cassandraDS" enabled="true" use-java-context="true" pool-name="teiid-cassandra-ds">

                                  <config-property name="Port">

                                      9042

                                  </config-property>

                                  <config-property name="Keyspace">

                                     

                                  </config-property>

                                  <config-property name="Username">

                                     

                                  </config-property>

                                  <config-property name="Address">

                                     

                                  </config-property>

                                  <config-property name="Password">

                                      canIEncryptPassword???

                                  </config-property>

                              </connection-definition>

                          </connection-definitions>

                      </resource-adapter>

       

      I don't see any encrypt/decrypt logic at CassandraManagedConnectionFactory. I can add my own factory but I prefer is there are any existing solution available.

        • 1. Re: Teiid datasource encryption
          rareddy

          Use the "valult.sh" or "vault.cmd" in the "bin" directory where the EAP is installed. You can use that program to encrypt your password and place the encrypted password in the above resource-adapter configuration and restart server.

           

          Ramesh..