Enabling authentication for a Service Locator client - 8.0

Talend ESB Infrastructure Services Configuration Guide

Version
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend ESB
Talend Runtime
Content
Design and Development
Installation and Upgrade

To enable authentication for a client, define user names and passwords (corresponding to the ones on the server) by adding authentication properties in the Service Locator configuration file <container>/etc/org.talend.esb.locator.cfg.

From Talend Runtime 8.0 onwards, usernames and passwords in OSGi configurations are resolved as references to environment variables. For example:
  • in a container, where a consumer is looking up services from the Service Locator server, add:
    authentication.name=${env:TESB_LOCATOR_AUTHENTICATION_USERNAME:-${TESB_LOCATOR_AUTHENTICATION_USERNAME:-sluser}}                    
    authentication.password=${env:TESB_LOCATOR_AUTHENTICATION_PASSWORD:-${TESB_LOCATOR_AUTHENTICATION_PASSWORD}}
  • in a container, where a Web Service is adding or deleting services from the Service Locator server, add:
    authentication.name=${env:TESB_LOCATOR_AUTHENTICATION_USERNAME:-${TESB_LOCATOR_AUTHENTICATION_USERNAME:-slservice}}
    authentication.password=${env:TESB_LOCATOR_AUTHENTICATION_PASSWORD:-${TESB_LOCATOR_AUTHENTICATION_PASSWORD}}
For the username and password, first the OS environment is queried. If the parameter is not set as an OS environment variable, the Java system variables set in etc/custom.properties are queried. For the username, but not for the password, there is finally a literal default value.