Configuration Promotion tool integration with FusionLucidworks Platform
This type of Fusion integration lets you connect self-hosted Fusion instances to the Lucidworks Configuration Promotion tool.
You must satisfy the prerequisites and complete all of the procedures in the order described in this topic to implement the Lucidworks Configuration Promotion tool.
This topic is specific to integrating the Lucidworks Platform with Fusion for the use of the Configuration Promotion tool. To configure an general integration for Lucidworks Platform with Fusion, follow the procedures in Fusion integrations.To configure an integration that uses Lucidworks Commerce Studio, follow the procedures in the Commerce Studio integration with Fusion topic. |
Prerequisites
To create an integration, you must have the following prerequisites in place:
-
Admin privileges to a self-hosted Fusion environment running Fusion 5.9.8 or later.
-
A Fusion application that contains usable data.
-
Workspace Owner permissions in a Lucidworks Platform environment.
1. Create a GitHub token for configuration promotion
To set up the Configuration Promotion tool, you must generate a GitHub token.
-
Sign in to GitHub with an account that has access to the integrated systems repository.
-
In GitHub, click your profile icon, and then click Settings.
-
Navigate to Developer Settings > Personal Access Tokens > Tokens (classic).
-
Click Generate new token and then select Generate new token (classic).
-
In the Note field, enter details about the token.
-
In the Expiration field, select the period of time the token is active. Lucidworks recommends configuring a long duration in line with your organization’s security pratices. You must generate and configure a new token for your Fusion integration every time your token expires.
-
In the Select scopes section, select the repo checkbox. This ensures the token has all required permissions.
-
Click Generate token.
-
Copy the generated token and save it in a secure location.
Your GitHub organization may need to authorize your token. |
For more information, see Managing your personal access tokens.
2. Set up GitHub branch protection (optional)
Lucidworks recommends enabling GitHub branch protection for your production (PROD) branch. This protects a branch with requested changes from being promoted until that request has been reviewed.
To configure branch protections, see About protected branches.
The configuration promotion tool looks at GitHub to see if the branch is ready to merge. The tool can integrate with any GitHub automations that change the merge-ready status of the branch.
3. Configure the integration
Complete the following steps to create an integration for the Lucidworks Configuration Promotion tool with Fusion.
-
Sign into Lucidworks Platform as a workspace owner.
-
Navigate to Settings > Fusion Integrations.
-
Click Connect New Fusion.
-
On the New Fusion Integration screen, enter a user-defined value in the Name field to identify the integration. For example,
Lucidworks Demo Dev
. -
In the API URL field, enter the URL of your Fusion instance. For example,
https://FUSION_INSTANCE.com
. Do not enter a path after.com
. -
In the Environment field, enter the environment for the Fusion instance. The default value is Development.
-
Optional: In the Tags field, enter a description that identifies the integration. This is especially helpful if you create multiple integrations for different purposes. To add multiple tags, enter a tag and press Enter to display additional fields in which you can values.
-
All fields in the GitHub section are required if you’re setting up the Configuration Promotion tool.
-
In the GitHub Branch URL field, enter the URL from GitHub for your self-hosted Fusion install. The format is
https://github.com/ORGANIZATION_NAME/REPOSITORY_NAME/tree/BRANCH_NAME
. For example,https://github.com/company_name/fusion_install/tree/lucidworks_demo_dev
. -
In the GitHub Token field, enter the personal access token granted privileges to the GitHub organization linked to your self-hosted Fusion install.
-
-
Click the Enable Fusion Configuration Promotion field to ON to allow files or instances to be promoted from development to a staging or production environment.
-
Click Add. If the value in the API URL field is:
-
Not valid, the integration is not created, and it is not displayed on the Fusion Integrations screen.
-
Valid, the Instructions to Connect with Fusion screen displays:
-
-
Copy both the JWK Set URL value and the Issuer URL value to a secure location. These values must be used to create the Create a Fusion security JWT realm for Lucidworks Platform.
-
Click Close.
-
Verify the new integration displays on the Fusion Integrations screen.
To edit the integration, hold the pointer over the integration, click the pencil icon, enter the changes, and click Save. To delete the integration, hold the pointer over the integration and click the trash can icon. |
4. Create a Fusion security JWT realm
To complete required fields in the integration, you must create a Fusion security realm.
-
Sign in to your Fusion instance as an admin.
-
Click the Fusion application to connect with the Lucidworks Configuration Promotion tool.
-
Navigate to System > Access Control > Security Realms.
-
Click Add Security Realm.
-
In the Name field, enter a user-defined value to identify the connection. For example, Lucidworks Configuration Promotion tool JWT realm.
-
In the Type field, select jwt.
-
Select the Enabled checkbox if it is not already selected.
-
Do not select the Ephemeral Users checkbox. Ephemeral users are not created in Zookeeper during login. If selected, auto-create users has no effect.
-
Select the Auto-Create Users checkbox. If selected, Fusion user accounts are auto-created when users successfully authenticate the first time. If not selected, user accounts must be created manually.
-
In the Roles field, select the roles that this realm provides after successfully authenticating a user by default.
-
In the JWT Issuer field, paste the Issuer URL value generated in the Configure the integration procedure.
-
In the JWK Set URL field, paste the JWKS URL value generated in the Configure the integration procedure.
-
Do not enter values (default is blank) in any of the following fields:
-
Signing Key
-
Groups Key
-
Groups Mapping
-
User ID Attribute
-
-
Click Save.
5. Verify the Configuration Promotion tool integration with Fusion
When the Fusion security JWT realm is created, complete the following steps to verify the Fusion information is displayed.
-
Sign into Lucidworks Platform as a workspace owner.
-
Navigate to Settings > Fusion Integrations.
-
Hold the pointer over the integration and click the pencil icon.
-
Verify the information is accurate.
The information in the Instructions section must match the values in the Additional URLs JWKS URL and Issuer URL fields.