Skip to content

Help needed - PAX.JDBC.POOL - how to encrypt password in Karaf? #368

@jgebal

Description

@jgebal

Hi
I'm totally new to PAX.JDBC, Jaca and Karaf but I have inherited a Karaf service that I need to maintain. The service is a SOAP data provider that is connecting to a database.
The whole thing is developed and deployed from Talend Open Studio ESB into Karaf container as a kar file.
The trouble I am facing is that the passwords in the configuration file for the connection pool are stored as plain text.

When trying to encrypt them I face some issues. I cannot really find a working guideline for setting up Jasypt with Karaf and using it with PAX.JDBC.CONFIG for connection pool.

When I put a password encrypted by encrypted by tesb-encryptor-command into the cfc file, the DataSource is not created.
There is no errors in the log file.

I am using PAX.JDBC version 1.5.7.

The DEBUG level log when Password is in plain text is:
scratch_90.txt

The DEBUG level log when Password is encrypted is:
scratch_91.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions