# Remote Policy UI

### **1. Creation**

To create a policy suitable for operating by users via multiple (different) instances of Guardian, at the publishing stage ‘Public’ availability type must be selected.

![](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-38f3f33d1f320a86fc518f426ad68e7a3b085522%2F0%20\(25\).png?alt=media)

Once such policy is published it can be imported into other Guardian instances via its publishing Message ID.

![](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-6ff867cdae7c6a383b7eb5aa503bf0ab5b294dea%2F1%20\(26\).png?alt=media)

### **2. Import**

The import of ‘external’ policies is initiated from the **Remote Policies** tab in the Policies grid

![](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-31ccb3524e213a75f37fd0cfbd092cc2669feb38%2F2%20\(28\).png?alt=media)

\
The original policy Message ID must be specified in the Search dialogue box.

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-3f1f8040acb587daab736b508286895966836c0b%2F3%20(24).png?alt=media" alt=""><figcaption></figcaption></figure>

The operation must be approved by the Standard Registry

![](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-0955da1a1906cf48181d0b07fd0578297864fab4%2F4%20\(22\).png?alt=media)

Imported policy will become accessible from the Remote Policies tab alongside the ordinary policies

![](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-83e6ebcee3bee0140ffe1eb3f197f11d175847ae%2F5%20\(25\).png?alt=media)

### **3. Users**

To enable users to participate in the remote policy workflow they must be registered on the ‘home’ Guardian of the policy (from which it has been published). Such registration involves importing user profile. Please note that private information, such as private keys, are not exported, imported or accessed in any way.

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-d200742fe216fe1ef888b249a21a5d725e67754d%2F6%20(24).png?alt=media" alt=""><figcaption></figcaption></figure>

Profile files can be used to create corresponding Remote Users, which can participate in the policy execution workflow using external (other) Guardian instance as a ‘console’ without exposing users private keys to any Guardian other than user’s home instance.

![](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-c8aff5c5a36117eb67116ae0c3f80ce39a099b12%2F7%20\(24\).png?alt=media)

### **4. Encryption**

To protect private information all data exchanges between Guardians are encrypted with the addressee public key. Each policy can be configured with a unique key:

1\. Generate the key on the ‘home’ Guardian user account\\

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-a888d76921c524e7c18de64f928ca16c5cae76ab%2Fimage%20(835).png?alt=media" alt=""><figcaption></figcaption></figure>

2\. Input the message ID of the Policy for which the key is being prepared

<figure><img src="https://docs.guardianservice.io/~gitbook/image?url=https%3A%2F%2F3006114282-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FXVOaWpJKxLZf1Tee9eCO%252Fuploads%252F6wZWB9tV3G5WRjwRP7K7%252Fimage.png%3Falt%3Dmedia%26token%3Df57c6465-588b-4075-934b-60102a0b0458&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=1ba6e22a&#x26;sv=2" alt=""><figcaption></figcaption></figure>

3\. Copy the generated key

Note: The key is not retrievable after the initial creation. If lost a new one would need to be generated.

<figure><img src="https://docs.guardianservice.io/~gitbook/image?url=https%3A%2F%2F3006114282-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FXVOaWpJKxLZf1Tee9eCO%252Fuploads%252FOY5Nf15OrGzaF3ByL71c%252Fimage.png%3Falt%3Dmedia%26token%3D063f4f63-f439-453b-b7e4-a41ba45bf1b8&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=6f02d011&#x26;sv=2" alt=""><figcaption></figcaption></figure>

1. Import the key into the ‘remote’ Guardian via the user account page

<figure><img src="https://docs.guardianservice.io/~gitbook/image?url=https%3A%2F%2F3006114282-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FXVOaWpJKxLZf1Tee9eCO%252Fuploads%252FsPAnJNzNAYKNkuMg7Y9m%252Fimage.png%3Falt%3Dmedia%26token%3Dbdef75b0-c3e9-4924-91bc-3286d024c551&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=e3fece38&#x26;sv=2" alt=""><figcaption></figcaption></figure>

### **5. Policy execution**

Remote policies are used in the same way as those running locally with few differences:\\

* **Speed and waiting time**

Synchronization of policy execution state between different Guardian instances is performed via Hedera, an update of the policy state on other Guardians can take several minutes.

* **Publishing actions**

When user take actions in their home Guardians there is a time delay associated with the remote Guardian instance processing the action request.

![](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-8f3130fc7fd5383dec65dc408a27f450ca67e859%2F8%20\(24\).png?alt=media)

* **Action request**

Processing remote user actions may require user private keys for signatures. These keys never leave users’ home Guardians, instead the remote Guardian formulates corresponding requests which require user action confirmations in their ‘home’ Guardians.

For the avoidance of doubt, such confirmations to do not pass private keys to the remote Guardian instance. The confirmation is performed locally, remote Guardians receive only the result of the actions (e.g. signed documents etc).

![](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-f2466f67f87387bd08bea7f4f324c40b46e81402%2F9%20\(21\).png?alt=media)

![](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-4a2bf27a344bf08d2bc694a0b42a6bec78001eed%2F10%20\(22\).png?alt=media)

#### 6. Disconnecting from a Remote Policy

When disconnecting from a remote (external) policy, there are two available options.

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fi9Tfmvu4GQOxS50qjzVw%2Fimage.png?alt=media&#x26;token=021cb7e4-61e4-40b3-89b3-d3ac4bb76f82" alt=""><figcaption></figcaption></figure>

**2.1. Disconnect from the Remote Policy Only**

This option disconnects your user from the remote policy on the current Guardian instance. Your account on the Main Guardian instance (where the policy is originally deployed) remains connected and unaffected.

**2.2. Full Disconnection from the Policy**

Full disconnection removes your user from:

* The remote policy on the current Guardian instance, and
* The same policy on the Main Guardian instance where it is deployed.

In this case, if you need to resume working with the policy, you will have to:

1. Reconnect (import/connect) the policy again on the remote Guardian instance.
2. Log in to the Main Guardian instance where the policy is deployed and reconnect there as well (see Section 1).

**2.3. Removing a Remote Policy from Guardian**

A System Administrator (SR) can disconnect a remote policy and completely remove it from the Guardian instance, thereby freeing server resources.

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Faho2KUCWDgzYR43Z2SwE%2Fimage.png?alt=media&#x26;token=968905ca-b87e-4bb2-a06d-15ac1e5d8a56" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Note:&#x20;

This removal:

* Does not affect the Main Guardian instance where the policy is deployed.
* Does not affect any data stored within the policy.

After removal, the policy can be restored by importing it again. All data will be restored except for local cache-related data (for example, grid sorting preferences).
{% endhint %}
