Skip to main content

Documentation Portal

Security

TrendMiner users can either exist locally or via an external Identity Provider. An overview of all users can be found under the "Security" section in ConfigHub.

The user overview shows the username, full name, email address and the identity provider. Specific users can be searched through via the top right search bar above the table.

Creating users 

Only local users can be created via ConfigHub. In the case of an external Identity Provider (IdP), the users are synced instead and should be managed via the IdP. 

To create users you will need to go to the user-menu under the "security" section. From there users can be added via the "+add user"-button.

Note

Usernames need to be unique and cannot be changed afterwards.

1__Secruity_Post_2021_R3_1.png

Password policy

When creating users locally, the password needs to adhere to the following rules:

  • Have a minimum length of 8 characters

  • Contain at least one uppercase character

  • Contain at least one lowercase character

  • Contain at least one digit

  • Contain at least one special character

  • Not have been recently used in the previous three passwords

Configuring User details 

From the user overview an user can be clicked to see more detail in the side-panel. Here more options can be performed such as:

  • Editing user details (local users only)

  • Change passwords (local users only)

  • Change roles (e.g. give users admin rights)

  • Unlock the user after the user consecutively failed to enter his password correctly.

  • Delete the user from TrendMiner (local users only).

Group management allows the creation of a collection of users and other groups (i.e. nested groups). An overview of all existing groups can be found under the "Security"-section in ConfigHub. 

The group overview shows the groupname and path of the groups so that it can be linked to its corresponding identity provider. 

Specific groups can be searched through via the top right search bar above the table.

Creating Groups 

Creating Groups is only allowed on a local level. In case of an external provider the groups are managed and synced into TrendMiner from the IdP itself. 

It is possible to create local groups and assign users coming from LDAP or SAML or locally, to local groups and use access management to configure datasource access at group level.

To create a new group you will need to go to the groups-menu under the "security" section. From there groups can be added via the "+add group"-button.

Note

A group can have only one parent group.

2__Secruity_Post_2021_R3_1.png

Configuring Group details 

From the group overview a group can be clicked to see more detail in the side-panel. Here more options can be performed such as:

  • Edit the name of a group

  • Delete the group

  • Add existing users/groups as member to that group

Note

These actions can only be done for Local Groups. Groups synced from an external IdP are non-editable and should be managed from the IdP itself.

Warning

Deleting a group will also delete all subgroups. A modal will be shown when this is the case. In case you want to keep the subgroups you will need to remove them first from the member list.

Creating Clients 

TrendMiner allows the creation of a client and secret in order to generate a token to be used in external API calls. 

To create a new client you will need to go to the clients-menu under the "security" section. From there clients can be created via the "+add client"-button. 

You will be asked to enter a name (client ID) for your client which will be used for external references. Once the client is created you can click on it to:

  • Edit the client ID

  • Show the secret of the client

  • Generate a new secret

  • Delete the client

Note

Regenerating a secret will invalidate your old secret and tokens. This action cannot be undone.

Clients need to be added to a domain/entity in the Access management menu just as users/groups to allow access to the data.

Fetch Token 

A token can be fetched via curl or any other means. An example is shown below.

Note

A new token needs to be fetched when the token expires after 5 minutes.

Template:

curl --request POST \   
  --url 'https://YOUR_DOMAIN/oauth/token' \
  --header 'content-type: application/x-www-form-urlencoded' \   
  --data grant_type=client_credentials \   
  --data client_id=YOUR_CLIENT_ID \   
  --data client_secret=YOUR_CLIENT_SECRET

Example:

curl --request POST \     
     --url 'https://trendminer.example.net/auth/realms/trendminer/protocol/openid-connect/token' \     
     --header 'content-type: application/x-www-form-urlencoded' \     
     --data grant_type=client_credentials \     
     --data client_id=external-client \     
     --data client_secret=35c07824-5e11-40f5-88f0-0b578b940b43

Response token:

{  
 "access_token":
"eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJwcXZ1UXBpQkpiOGpRMVZQcU9PMDdFNDFCb25IRGxNZ01YY0NockZJbkhFIn0.eyJleHAiOjE2MzYwMjkzNDYsImlhdCI6MTYzNjAyOTA0NiwianRpIjoiMWQzNWUyNGQtMGQ4Zi00MWI1LThkYzgtZTYzZmIxZDk3MTEzIiwiaXNzIjoiaHR0cHM6Ly90bS1waXBlbGluZS1wbGVhc3VyZTMxLnRyZW5kbWluZXIubmV0L2F1dGgvcmVhbG1zL3RyZW5kbWluZXIiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiMTRlODRmODUtZjc5YS00YjIyLTg4MzktYWM5OWRkOWQzY2U1IiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiZXh0ZXJuYWwtY2xpZW50IiwiYWNyIjoiMSIsInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZh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
 "not-before-policy": 1571391000,   
 "scope": "email profile" 
3__Secruity_Post_2021_R3_1.png

The Access Management menu allows you to manage access permissions centrally per domain. Opening the menu returns an overview of all set access permissions. 

To create a new access permission, click the “Add entry” button situated at the top of the page and fill in the necessary details in the pop-up:

  • Domain: DATASOURCE or TIMESERIES_BUILDER

  • Entity:

    • Using the DATASOURCE domain: Enter the name of the Historian Connection, as configured in TrendMiner or use "ALL" to indicate the collection of all Historian Connections).

    • Using TIMESERIES_BUILDER domain: add the "MACHINELEARNINGMODEL" and/or "NOTEBOOK" Entity.

  • Members: Users, groups or clients you want to grant access permission for the domain.

    4__Secruity_Post_2021_R3_1.png

To edit an existing access permission, click on the entry you want to edit and click “Edit” in the options menu. 

To remove an existing access permission, click on the entry you want to delete and click “Delete” in the options menu.

To enable HTTPS, three things are required:

  • Private key

  • CSR for that private key

  • Certificate chain

TrendMiner only supports PEM certificates. OpenSSL can be used to convert certificates in a different format to PEM. 

Once these prerequisites are fulfilled, HTTPS can be enabled via the "Action" menu on the top right.

Note

Enabling HTTPS will temporarily render ConfigHub unusable until the service restart has completed. A manual refresh of ConfigHub is necessary. Press F5 to try to load the interface again. Retry until this succeeds.

Note

Certificate chain: If the certificate is issued directly by the root CA, upload the root CA, otherwise upload the intermediate CA which signed the certificate.

Screenshot_2023-12-08_at_16_48_01.png

When uploading new trusted certificates via Security - Certificates and HTTPS is enabled, SSL can be reloaded by selecting “Reload SSL” in the Actions menu of the screen.

For a more detailed guide of what is, why and how to use SSL in TrendMiner, please consult our support documents.

Certificate signing request (CSR)

Via ConfigHub a CSR can be generated.

To start, clicking the Actions menu and select “Certificate signing request”. A side panel will open to download or generate the CSR.

Screenshot_2023-12-08_at_16_58_16.png

At the top of the side panel, you can download the CSR when it is generated on the server.

Below this section, information to generate the CSR can be provided. There are 2 options to generate a CSR, using

  • Alternative names

    With this option, it is allowed to provide alternative fully qualified domain names to be protected using the certificate. These are optional, the server name of the installation is the primary domain used.

  • Wildcard

    This options allow for HTTPS on all subdomains of the provided wildcard domain. This domain is required. 

When no private key is available yet, one will be generated. Uploading a new private key, might break current HTTPS/SSL and pending Certificate signing requests (CSR).

If TrendMiner needs to communicate with SSL enabled services (Plant Integrations, LDAP, ...) that are using self signed certificates or certificates issued by an internal CA, it's not possible to verify the trust chain of these certificates.  

To be able to verify the trust chain please upload the root CA and optionally one or multiple intermediate CA certificates. The same is needed when using SAML with certificates issued by an internal CA.

6__Secruity_Post_2021_R3_1.png

Detailed information on identity providers can be found here.

Detailed information on the ConfigHub password config can be found here.