Ensuring Valid Credentials for LCA Handlers

Problem

When developing a custom Life Cycle Action (LCA) handler, the handler may fail to access necessary dependencies if the credentials in the settings.xml file are incorrect or improperly configured.

Solution

 1. Verify Network Connectivity: Ensure there are no network issues or firewall settings preventing access to external repositories.

 2. Configure Credentials Securely: Instead of hardcoding credentials in the settings.xml file, use IAM roles with temporary security credentials for enhanced security.

 3. Update settings.xml: If using hardcoded credentials, ensure the settings.xml file is correctly configured:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
   <servers>
       <server>
           <id>reltio-libs-public</id>
           <username>read.only.life-cycle-framework</username>
           <password>********</password>
       </server>
   </servers>
</settings> 

*Note: Replace ******** with the actual password. If the password is unknown, contact your Customer Success Manager.

  1. Add Maven Dependency: Include the necessary Maven dependency in your pom.xml file:

<dependency>
   <groupId>com.reltio</groupId>
   <artifactId>life-cycle-framework</artifactId>
   <version>2016.2.2.0.0</version>
</dependency> 

 

 5. Build and Deploy the JAR: Compile your LCA handler into a JAR file and deploy it to an S3 bucket. Then, register the JAR file within the LCA framework. For detailed steps, refer to Reltio's LCA Handler documentation.

6. Register the Action: Use the LCA Service API to register your custom action:

 

POST:{lifecycleServiceURL}/api/{tenantId}/actions

 

*Refer to the Register Actions documentation for detailed API usage.

Best Practices:

  • Avoid Hardcoding Credentials: Use IAM roles with temporary security credentials for enhanced security. For more information, see LCA as AWS Lambda: Identity and Access Management.
  • Minimize Reltio API Calls: Reduce the number of Reltio API calls within your LCA to improve performance. Refer to Best Practices for LCA.
  • Ensure Efficient Execution: Design your LCA to execute within acceptable time limits to prevent performance degradation.

Additional Resources:

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.