Aakvatech Limited - Adding a Site to Access Guard

Short one-line explanation of what the article covers

 · 3 min read

Overview

This guide explains how to connect a Frappe/ERPNext site to Aakvatech Access Guard using the Access Hub at:

https://support.aakvatech.com

Once the site is connected, authorized Aakvatech users can securely use Request Access from Access Hub to access the remote site.


Before You Start

You will need:

  • Access to https://support.aakvatech.com
  • Permission to add a Remote Site DocType record in Access Hub
  • The domain name of the Frappe/ERPNext site you want to connect, for example erp.customer.com
  • Access to the remote site's site_config.json
  • The Access Guard app already installed on the remote site
  • HTTPS working on the remote site

If Access Guard is not yet installed on the remote site, install it before following this guide.


Step 1: Add a New Remote Site in Access Hub

  1. Log in to https://support.aakvatech.com.
  2. Use the Awesome Bar to search for Remote Site.
  3. Open the Remote Site List.
  4. Click Add Remote Site.

Step 2: Enter Site Details

Host

Enter only the domain name of the remote site.

For example:

erp.customer.com

Do not enter:

https://erp.customer.com/

Port

For a normal HTTPS site, use:

443

Protocol

Select:

https


Step 3: Save the Site

Click Save.

When the Remote Site is created, Access Hub automatically generates a secure Transport Token.

Only the hash of this Transport Token is stored in Access Hub.


Step 4: Copy the Enrollment Configuration

After saving the Remote Site, an Enrollment Config window will appear.

It contains three Access Guard settings similar to:

{
  "access_guard_hub_url": "https://support.aakvatech.com",
  "access_guard_hub_public_key": "PUBLIC-KEY",
  "access_guard_transport_token": "TRANSPORT-TOKEN"
}

Click Copy config.

Important: Copy this configuration before closing the window. The Transport Token is shown only when it is generated.


Step 5: Configure the Remote Site

On the server where the Frappe/ERPNext site is hosted, open:

frappe-bench/sites/<site-name>/site_config.json

For example:

frappe-bench/sites/erp.customer.com/site_config.json

Add the three Access Guard settings copied from Access Hub.

Your existing site_config.json may look similar to:

{
  "db_name": "_database_name",
  "db_password": "database-password",
  "access_guard_hub_url": "https://support.aakvatech.com",
  "access_guard_hub_public_key": "PUBLIC-KEY",
  "access_guard_transport_token": "TRANSPORT-TOKEN"
}

Do not remove the existing site configuration.

Only add the Access Guard settings.


Step 6: Test Access

Return to the Remote Site in Access Hub.

  1. Open the Remote Site.
  2. Click Request Access.
  3. A new browser tab will open.
  4. Access Guard verifies the request.
  5. You will be logged into the remote Frappe/ERPNext site.

If the remote site opens successfully, the Access Guard setup is complete.


Updating the Transport Token

Use Update Token if you need to replace the Transport Token for a Remote Site.

  1. Open the Remote Site in Access Hub.
  2. Click Update Token.
  3. Leave New Token blank to let Access Hub generate a secure token automatically.
  4. Click Update.
  5. Copy the newly generated configuration.
  6. Replace the Access Guard configuration on the remote site's site_config.json.

After updating the token, the old Transport Token should no longer be used.


Disabling Access to a Site

If you temporarily want to prevent Access Guard access:

  1. Open the Remote Site.
  2. Enable Disable Access.
  3. Save the document.

While access is disabled:

  • Users cannot make new access requests.
  • The Request Access button is not shown.
  • Existing Access Guard sessions are ended according to the Access Guard policy.

To allow access again, untick Disable Access and save the Remote Site.


Troubleshooting

Request Access Button Is Missing

Open the Remote Site and check whether Disable Access is enabled.


Update Token Button Is Missing

Only users with permission to modify the Remote Site can update its Transport Token.


Request Access Does Not Open the Site

Check that:

  • The Remote Site Host is correct.
  • The remote site is online.
  • HTTPS is working.
  • Access Guard is installed on the remote site.
  • The three Access Guard settings exist in site_config.json.
  • The Transport Token is the latest token generated by Access Hub.

If you are unsure whether the Transport Token is correct, use Update Token to generate a new one and update site_config.json.


Setup Complete

The Remote Site is now connected to Aakvatech Access Hub.

Authorized users can go to:

https://support.aakvatech.com

open the required Remote Site, and click Request Access to securely access the connected Frappe/ERPNext site.


No comments yet.

Add a comment
Ctrl+Enter to add comment