Keycloak configuration
How to complete the Keycloak installation setup.
Introduction
Keycloak is an Open-source product which allows Single Sign-On (SSO) and enables Identity and Access Management integration to allow for a quick, safe, and secure integration of authentication within modern applications.
Below are the steps involved in configuring Keycloak, and you may choose to skip the Optional steps.
Logging into Keycloak admin panel
The Keycloak admin URL will consist of the following components:
The domain that has been configured for the reseller to access the application (e.g. my-reseller.net or 10.10.121.127)
The service path (e.g. auth for Keycloak)
The keycloak admin path /admin/master/console
An example of the above might look something like this:
Once the correct address has been entered for the cluster Keycloak instance following the above guidelines, it should be possible to login to the Keycloak admin dashboard using the following details:
This is the default username and password for the initial login to Keycloak. Please ensure that it is changed!
Username
: admin
Password
: admin
The access protocol should always be https
The domain in the example above (E.g. my-reseller.net) might not be applicable if a domain is not configured, in which case the server IP address needs to be used (e.g. 10.10.121.127)
Once logged into the portal, there are some additional steps to complete in order to configure Keycloak.
Completing the Realm Configuration
In Keycloak, a Realm is a top level authentication domain which contains an isolated authentication configuration. For example, each separate Keycloak Realm might represent a different environment.
A Realm needs to be created to managa the cluster authentication:
Click on the left-side menu item Realm Settings. Make sure that the gv realm is selected in the top left, not master.
This will load the Gv Realm Settings → General tab, enter the desired user-friendly reseller name into both the Display name and HTML Display name fields.
Click the Save button to commit these changes to the Realm Settings.
Do not change the content of Realm ID field, it has to be gv.
Completing the Dashboard Client Configuration
Click on the Clients menu item on the left-side menu, this should load a list of authentication clients.
Click on the name link of the item labeled dashboard to navigate to its client configuration page.
Open the dropdown for Login Theme and select the theme created for the reseller (E.g. my-reseller-theme).
Update the Valid Redirect URIs to include the URL that has been configured for the Dashboard UI (remember to click the + plus icon after entering the value). This will allow Keycloak to redirect back to the Dashboard UI after authenticating.
Update the Web Origins to include the URL that has been configured for the Dashboard UI (remember to click the + plus icon after entering the value). This will allow CORS endpoint calls to Keycloak from the Dashboard UI.
Clear the Front-channel logout URL field’s content. This way, instead of the “you are getting logged out” screen, it will go straight to the login page upon logout. Alternatively, you can you can enter the Front-channel logout URL in the following format:
https://my-dashboard.com/auth/realms/gv/protocol/openid-connect/logout
.
Click the Save button at the bottom of the screen.
Setting up a default Agent user
This step is important and required for the agent to work correctly. This user is only used internally by agents on endpoints to authenticate with the server. This user cannot be used to log in to the dashboard. For dashboard login, you must create your user in the gv realm.
Make sure it’s still the gv realm selected in the top left, not master.
Click on the Users menu item on the left-side menu, this should load the Users list.
Click the Add user button in the top right to open the Add user screen.
It’s only necessary to complete two fields on this form; The Username field should contain agent, and the Email field should contain agent@gv.com.
Click the Save button at the bottom of the screen.
Creating a user to access the GetVisibility dashboard
By default, there are no users in the gv realm, meaning that nobody can access the dashboard to view agent activity, use analytics, run scans or create reports.
Users must either be created manually as described below, or imported, e.g. via LDAP user federation.
Users created in the gv realm will have full administrative access to the GetVisibility web console.
RBAC implementation for granular management of dashboard user permissions is on our roadmap.
Make sure that it’s still the gv realm selected in the top left, not master:
Click on the Users menu item on the left-side menu, this should load the (empty) Users list.
Click the Add user button at the top to open the Add user screen.
There is only one mandatory field here; The Username field should contain your desired username, e.g. admin.
Click Create. This will then load the User Details page for the user that was just created.
Here, click Set password.
Next, choose a strong password for the user. Leave the “Temporary” option on if the user should change their password on the first login.
Click Save.
Navigate to the /ui endpoint of the IP of the server or the domain if you configured any. E.g. https://my-dashboard.com/ui or https://10.10.121.127/ui
Confirm that the credentials are working as expected.
Troubleshooting Keycloak LDAP integration
Usually any issues which occur during the LDAP Active Directory configuration process above will be related to Network accessibility concerns or authentication credentials being incorrect.
However, if any additional assistance is required or the problem is not easily resolved by troubleshooting Network communications and authentication details, please reach out to Support following the steps here.
Last updated
Was this helpful?