You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.
Table of contents
Subpages
This chapter describes how to configure Blueriq Studio before getting started.
License
Before you can start Blueriq you have to copy a valid license file into the license directory. The license file is called “license.aql”. You can find the directory here: [Blueriq installation directory]\Studio\Configuration\License.
Security and User Management
During the installation of Blueriq Studio you have chosen a security mode. This paragraph will explain how to configure each security mode.
Blueriq supports three types of security modes:
- NTLM authentication and authorization:
The authorization and authentication is done against active directory. Active directory groups can be mapped to a Blueriq Studio role.
- NTLM authentication and custom authorization:
The authorization and authentication is done against active directory. Each active directory user can be mapped to a Blueriq Studio role.
- Custom Authentication:
The authorization and authentication is managed in Blueriq Studio. Users can be created in Blueriq Studio and mapped to a Blueriq Studio role.
To activate changes restart the Studio server.
Logging
If any problem occurs with authorization or authentication you can use the audit.log to trace and find the cause.
Secure the administration page
By default the administration page is not secured, which means that any user that can access the environment on which Studio or the Runtime is located can also access the administration page. A user can download/upload the repository through the administration page, so you might want to allow only specific users to access this page.
To achieve this you have two possibilities:
- You can secure the administration page through Studio [editor].
- You can restrict the administration page to all Studio users.
IIS
First open the Internet Information Services (IIS) Manager from the Start menu on the machine where Blueriq is installed.
Browse to the administration site by expanding the tree on the left as shown below and double click Authentication.
By default IIS allows Anonymous access to the site.
Disable Anonymous Authentication and enable Basic Authentication by right clicking the appropriate authentication and choosing enable/disable.
Now when you browse to the administration page, a popup will be shown asking for credentials. But first we must specify which users and/or groups can access the administration page.
To do this, first return to the administration site and select authorization rules.
Please note: if you do not see authorization rules as shown below, you must first enable this feature in IIS.
By default all users have access.
Remove the entry allowing all users access by right-clicking on it and choosing remove. Then you can add a new Allow rule by right-clicking. Here you can specify users or groups from both the local machine or the active directory if the machine is part of a domain.
Please note that this is not related to the authentication you have chosen for the Studio. So for example you can configure the Studio with one of the NTLM modes to authenticate against active directory, while you can secure the administration page with a local user on the machine.
Studio users
Another way to restrict the administration page, is by restricting it to all Studio users. This relies on the authorization mechanism that Studio uses. To configure this, you have to change the configuration of the administration page. This can be found in the [Blueriq installation directory]\Studio\wwwroot\Administration\Web.config
file.
The administration page uses a connection to the management service. This connection requires a username and password, which by default is set during the installation of Blueriq:
<managementservice> <connection url="http://localhost:8095/Services/ManagementService" user="administrationpage" password="administrationpage"/> </managementservice>
If the user and password in this configuration is cleared, the administration page will prompt for authorization when accessed. When the username and password of a Studio user is entered, the administration page will be shown.
Please note that the user
and password
tag have to exist in the configuration, so clear their values instead of removing them. Example:
<managementservice> <connection url="http://localhost:8095/Services/ManagementService" user="" password=""/> </managementservice>
Repository
Blueriq Studio has an internal repository. When installing Blueriq Studio a default repository is provided with an initial content to start using Blueriq Studio.
An already existing repository-backup can replace the default repository. The repository is found in the [Blueriq Installation directory]\Studio\Repository directory and is called Repository.sdf.
The Repository.sdf file contains the entire repository.
Backup the repository
A backup of the repository can be made. There are two options: the Blueriq Repository Backup tool, which can be scheduled, and download from the administration page.
Option 1: Blueriq Repository Backup Tool
- The backup tool is included in the installation zip, call it using the following parameters:
- java -jar blueriq-repository-backup.jar backup --studioUrl=http://studio.server:10080/Studio/Server/Services/ManagementService --username=user --password=password --path=backup/path/repository.zip
- Backup the repository to a backup location. This task can be automated by creating a batch file which you add to the Windows task scheduler.
Option 2: Download from the administration page
- Open the administration page from the welcome page and open the “Repository” tab.
- Click on “Create Backup” and save the file to a backup location.
Restore repository backup
Only backups created from the same or older versions of Blueriq Studio can be restored. If a backup of an older version is restored the repository is automatically upgraded by Blueriq Studio.
Option 1: Blueriq Repository Backup Tool
- The backup tool can be used to restore a repository and is included in the installation zip, call it using the following parameters:
- java -jar blueriq-repository-backup.jar restore --studioUrl=http://studio.server:10080/Studio/Server/Services/ManagementService --username=user --password=password --path=backup/path/repository.zip
Option 2: Upload in administration page
- Open the administration page from the Welcome page and open the “Repository” tab
- Click on the “Browse” button near the “Upload Backup” button, browse to the backup file and click “Upload Backup”. The name for the backup file can be any name. The upload feature automatically renames the file name to Repository.sdf when it is installed on the server.
When the upload has completed all users are logged out and the system automatically refreshes. There is no need to restart the server.
Version Management
If you're going to upgrade to a Blueriq version > 12.5 and are looking for the upgrade instructions, you can find them here.
Commit hook
The commit hook is a feature that sends an HTTP request to a configured endpoint whenever a commit is performed from within studio. This allows you to create buildpipelines that get triggered from Blueriq.
To enable this feature, add the configuration below to the studio section of the config file for Blueriq Studio (StudioService.exe.config).
<configuration> <studio> ... <commithook url="http://localhost:3210" /> ... </studio> </configuration>
Once you've configured the endpoint, each commit in Blueriq Studio will cause an http post request to be sent to the endpoint containing to information below.
{ "repository": "MyRepository", "branch": "MyBranch", "tags": ["All", "Tags", "On", "The", "Branch"], "commitId": "d99ff38c-ac9f-4394-af79-7e1f235018c8", "user": "MyUserName", "message": "The message that was added to the commit" }