Skip to content
/ TIM Public

TARA Integration Module and custom JWT management

License

Notifications You must be signed in to change notification settings

buerokratt/TIM

Repository files navigation

TARA-integration module installation and configuration guide.

0. Used variables description

  • ${PROJECT_ROOT} - root folder of the project

1. Dependencies

1.1 Postgres database

In order to run TIM you need Postgres database.

You can set one up using Docker from out Third-party-components repository.

1.2 ID-log

In order to change the source code and compile outside Docker you'll need ID-log.

Note! You will not need it to run Docker.

2. Configuration

Spring Boot applications support externalized configuration through *.properties files.

Application configuration can be found here: ${PROJECT_ROOT}/src/main/resources/application.properties.

2.0 Use security.allowlist.jwt to define allowed participants to access TIM

If there are issues with Ruuter connection to TIM:
Go to src -> main -> resources -> application.properties & modify security.allowlist.jwt value to have container names and relevant service URL
for example:
security.allowlist.jwt=ruuter-v1-public,ruuter-v1-private,ruuter-v2-private,ruuter-v2-public,dmapper,resql,tim,tim-postgresql,chat-widget,customer-service,127.0.0.1,::1

2.1 Certificates generation

Note! This step is only required if you run TIM outside Docker. Skip to Postgres configuration

Note! Both keystore password and alias password should be the same.

2.1.1 Tomcat SSL support

Tomcat SSL certificate is generated in Docker with:

keytool -genkeypair -alias tomcat -keyalg RSA -keysize 2048 -keystore "keystore.jks" -validity 3650
  • The generated keystore should be configured in the application.properties

2.1.2 Certificate for JWT signature

JWT certificate is generated in Docker with:

keytool -genkeypair -alias jwtsign -keyalg RSA -keysize 2048 -keystore "jwtkeystore.jks" -validity 3650

relevant configuration properties:

jwt-integration.signature.key-store=classpath:jwtkeystore.jks
jwt-integration.signature.key-store-password=ppjjpp
jwt-integration.signature.keyStoreType=JKS
jwt-integration.signature.keyAlias=jwtsign

2.1.3 Changing Keystore password

To change keystore password, update Dockerfile and configuration with new password.

2.2 Postgresql configuration

TIM requires connection to Postgres database to run.

2.2.1 Setup Postgres

Follow Postgres setup instructions.

2.2.2 Update properties

Update application.properties with following properties to match your Postgres configuration.

spring.datasource.url=jdbc:postgresql://localhost:9876/tim
spring.datasource.username=tim
spring.datasource.password=123

3. Running in Docker

Run docker with docker-compose up -d

Note! Some configuration changes may require you to rebuild docker image using docker-compose build for them to take effect.

Licence

See licence here.

About

TARA Integration Module and custom JWT management

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages