These configuration changes are only necessary when you have installed Talend Identity and Access Management as a
system service.
Make these changes for the OIDC and the SCIM services of Talend Identity and Access Management.
Procedure
-
Locate the Talend Identity and Access Management
service systemd files in the
/etc/systemd/system folder.
The file names are:
- talend-iam-oidc-8.0.1.service
- talend-iam-scim-8.0.1.service
The number
8.0.1 represents the installed version used in this example.
-
Open the service files in a text editor using sudo privileges,
as the files are owned by the root user.
For example, the content of the
talend-iam-oidc-8.0.1.service file is:
# systemd descriptor file for IAM service
[Unit]
Description=Talend Identity Access management service (OIDC)
Before=runlevel3.target runlevel5.target
After=local-fs.target remote-fs.target network-online.target time-sync.target postgresql.target systemd-journald-dev-log.socket
Wants=network-online.target
Conflicts=shutdown.target
[Service]
Type=simple
Restart=no
KillMode=process
Restart=no
Environment=SPRING_PROFILES_ACTIVE=onpremise
ExecStart=/usr/lib/jvm/jre-17/bin/java -Dfile.encoding=UTF-8 -Dspring.mvc.locale=en_US -server -Xms2048m -Xmx2048m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:+DisableExplicitGC -Dencryption.keys.file=config/keys.properties -jar lib/oidc.jar
#ExecStop=
User=talenduser
Group=talendgroup
WorkingDirectory=/opt/Talend-8.0.1/iam
SuccessExitStatus=143 SIGKILL
[Install]
WantedBy=multi-user.target
-
Locate the Environment=SPRING_PROFILES_ACTIVE=onpremise
line.
- Add the keystore settings after the existing line:
Environment=SPRING_PROFILES_ACTIVE=onpremise
Environment=SERVER_SSL_KEYSTORE=/keystore/server.jks
Environment=SERVER_SSL_KEYSTOREPASSWORD=Password1
Environment=SERVER_SSL_KEYPASSWORD=Password2
ExecStart=/usr/lib/jvm/jre-17/bin/java -Dfile.encoding=UTF-8 -Dspring.mvc.locale=en_US -server -Xms2048m -Xmx2048m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:+DisableExplicitGC -Dencryption.keys.file=config/keys.properties -jar lib/oidc.jar
-
Save the talend-iam-oidc-8.0.1.service file.
-
Repeat the operations for the talend-iam-scim-8.0.1.service
file.
- After saving both files, run the following command to reload the systemd
environment:
sudo systemctl daemon-reload
- Restart both services with the following commands:
sudo systemctl stop talend-iam-oidc-8.0.1.service
sudo systemctl stop talend-iam-scim-8.0.1.service
sudo systemctl start talend-iam-oidc-8.0.1.service
sudo systemctl start talend-iam-scim-8.0.1.service