Kobi Java Starters Migration from 2.5 to 2.6.6
Features
- Static site common file (js & css)
- Security annotation (Xss)
- Registration with security header allowing to use an Api Gateway.
Steps to migrate your project
Maven configuration
In the pom.xml
file, update :
- the version of
kobi-starters
to2.6.6
- the version of
janino
to3.1.2
if you use janino library
|
|
Kobi starter include
If you are overwriting Spring Boot with a version lower than 2.2.6 and use Janino library, you should use
We recommend you to use the version provided by the Kobi starter.
spring boot
2.2.8 version.If you are overwriting Spring Boot with a version lower than 2.2.6 and use Janino library, you should use
janino
3.1.0 version.We recommend you to use the version provided by the Kobi starter.
Vault configuration
You can add some headers when your application register to Kobi Registry API.
In your vault configuration, add one or more headers like this :
|
|
You can enable the registration debug logging to see the request’s details :
|
|
To register through the api gateway, you have to add your application in the api gateway (https://developer.leroymerlin.fr/) then ask for access to API Kobi registry (v2)
(Repeat this operation for each environment).
Once you have access to the Kobi Registry API through the api gateway, you will be given an api key and routing gateway header.
Here is an example of configuration with a Gateway API :
|
|