Migrating to 2.6.0
Migration Guide
Here you can find the needed steps to upgrade your current Witboost installation to v2.6.0. Please refer to the release notes for a detailed list of changes and improvements. This guide is intended for users who are currently running Witboost version 2.5.0 or earlier and wish to upgrade to version 2.6.0.
Follow these steps to migrate from the previous version to Witboost version 2.6.0:
Backup Your Data
Before starting the migration, ensure you have a complete backup of your database and configuration files.
Update Dependencies
Ensure all the dependencies in the Helm files are updated to their compatible versions for 2.6.0. Refer to the published Helm chart for details.
Upgrade Steps
Extension Manager
Secrets
New secrets have been introduced for the sensitive headers webhooks
functionality.
Add the new section notifications.webhooks.secrets
(under appConfig in the ui block of the values.yaml file of the Witboost Chart) like this:
notifications:
webhooks:
...
secrets:
key: '${CORE_USER_CONFIG_KEY}'
iv: '${CORE_USER_CONFIG_IV}'
If there was no notifications.webhooks
section in your values.yaml
file, you must create it and add the secrets
section as described above.
The default configuration provided above will leverage the same secrets defined for the user config
functionality, since they are fully compatible, but you can change them if you prefer.
To generate them:
-
key
: Can be any 32 bytes hexadecimal key. The following command can be used to generate such a key in a terminal:> node -p 'require("crypto").randomBytes(32).toString("hex")'
-
iv
: Can be any 16 bytes hexadecimal key. The following command can be used to generate such a key in a terminal:> node -p 'require("crypto").randomBytes(16).toString("hex")'
Permissions
In order to access the new Webhooks
Extension Manager section, you must assign the platform.extensions.webhooks.edit
permission to your administrator role.
CustomUrlPicker
The implementation of the CustomUrlPicker
offset
param has been changed to reflect the originally intended behaviour defined in the Custom URL Picker API specification.
Previously, offset
was incorrectly implemented in the CustomUrlPicker
as a page, sending an offset
increased by 1 to retrieve the next batch of items.
Now, the current offset
implementation treats it as an actual offset, meaning each request will include an offset
exactly equal to the number of already fetched items and thus to be skipped, as defined by the Custom URL Picker API specification.
If you previously implemented your microservices assuming offset
behaved as a page instead of an actual offset, you can defer migrating the microservices by adding mesh.builder.ui.remoteProvider.oldOffsetBehaviour
(under appConfig in the ui block of the values.yaml file of the Witboost Chart) and setting it to true
. This will enforce the old behaviour on components interfacing with the Custom URL Picker API specification, such as CustomUrlPicker
and the new Remote
provider on the EntitySearchPicker
.