passwordstate remote site agent manual - click...

17
Passwordstate Remote Site Agent Manual © 2019 Click Studios (SA) Pty Ltd

Upload: others

Post on 28-May-2020

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Passwordstate Remote Site AgentManual

© 2019 Click Studios (SA) Pty Ltd

Page 2: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Passwordstate Remote Site Agent Manual2

© 2019 Click Studios (SA) Pty Ltd

Table of Contents

Foreword 0

Part I Introduction 3

Part II Adding Remote Site Locations 3

Part III Installation 4

Part IV Configure Browser Based Remote SessionLauncher Gateway 7

Part V Remote Site Tables 13

Part VI Remote Agent Logging 15

Part VII Tagging Data with a Site Location 15

Part VIII Forcing An Agent Poll 16

Page 3: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Introduction 3

© 2019 Click Studios (SA) Pty Ltd

1 Introduction

Welcome to the Passwordstate Remote Site Agent Manual.

The Passwordstate Agent is used for Remote Site Locations, where connectivity is only possibleover a HTTPS or Firewalled connection.

With the Passwordstate Agent, it is possible to perform Account Discoveries, Host and AccountHeartbeats, and Password Resets on remote networks.

The agent communicates securely with your Passwordstate API, over HTTPS, using uniqueInTransit Encryption keys for further encrypting the flow of traffic.

The following table summarizes each of the key areas for configuring and using the PasswordstateAgent.

Adding Remote SiteLocations

Prior to using the Remote Site Agent, you must first add one or moreRemote Site Location records

Installation Guides you through the process of installing the Remote Site Agent

Configure BrowserBased Remote SessionLauncher Gateway

If you would like to also use a distributed copy of the Remote SessionLauncher Gateway with your Agent, you can follow these instructions

Remote Site Tables Provides information about synchronization of data between yourPasswordstate API and the Remote Site Agents

Remote Agent LoggingProvides detail of where the Agent creates logging data

Tagging Data with aSite Location

Explain where in Passwordstate you can tag certain record for a RemoteSite Location

Forcing An Agent Poll If needed for testing/debugging purposes, you can also Force an Agent Pollwithin one minute, instead of waiting for the scheduled poll

2 Adding Remote Site Locations

Prior to deploying any Passwordstate Agents, you must add the required number of Remote SiteLocations on the screen Administration -> Remote Site Administration -> Remote Site Locations.

When adding a Remote Site Location, please specify appropriate setting as appropriate below:

· The name of the Remote Site

Page 4: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Passwordstate Remote Site Agent Manual4

© 2019 Click Studios (SA) Pty Ltd

· The In-Transit encryption key (used to further encrypt the BODY of the traffic in the HTTPSrequests)

· Agent Poll Frequency - how often you would like the remote agent to poll, and check for newtasks to execute i.e. Discover Jobs, Account or Host Heartbeats, and Password Resets

· Maintenance Window - the period in which the Remote Agent will not execute any regular tasks- except for refreshing the contents of the Remote Tables. The Maintenance Window gives youa time slot in which you can perform maintenance activities on the remote server, knowing itwill not effect any processing tasks.

· Settings for Browser based Remote Session Launcher Gateway

· Allowed IP Ranges - if you wish to further secure calls to the API for the selected Remote SiteLocation, you can specify various IP Addresses or ranges on the 'Allowed IP Ranges'

Note: You do need to purchase the required number of Licenses to add new Remote SiteLocations.

3 Installation

Once you have added the required number of Remote Site Locations into the Administration areaof Passwordstate, you can select the 'View Agent Installer Instructions' Actions menu for theappropriate site, and it will give you the installer command line options for the Agent.

Prior to deploying any Agents, please ensure your firewall allows access through from the remotenetworks to your Passwordstate web server. The agents communicate back to the API inPasswordstate only.

Note 1: The Server or Desktop where you install the Agent must have .NET Framework 4.5 orabove installed, and PowerShell 4.0 or above.

Page 5: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Installation 5

© 2019 Click Studios (SA) Pty Ltd

Note 2: For Account Discovery and Password Resets at remote site locations, please refer tothe 'Password Discovery, Reset And Validation Requirements' document on Click Studiosdocumentation page at https://www.clickstudios.com.au/documentation/

Note 3: Once the agent is installed, it will automatically upgrade itself if required, when youupgrade your instance of Passwordstate. There is a Windows service called 'Passwordstate AgentUpgrade Service' which will automatically upgrade the agent within 10 to 15 minutes of youupgrading your Passwordstate web site. This Upgrade service reaches out to the pagehttps://www.clickstudios.com.au/getagentupgradefile.aspx to download the latestagent_upgrade.zip file

With the installer command line parameters you see below in the screenshot, this will install theAgent silently, as well as configure the required settings in the PasswordstateAgent.exe.config sothe Agent can communicate to the API

Page 6: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Passwordstate Remote Site Agent Manual6

© 2019 Click Studios (SA) Pty Ltd

Encrypting Settings in the AppSettings Section in thePasswordstateAgent.exe.config File

If required, it is also possible to encrypt the AppSetting section of thePasswordstateAgent.exe.config File. Below are instruction for this, as well as decrypting them:

· Stop the Passwordstate Agent Service

· Rename the file PasswordstateAgent.exe.config to web.config

· Open a command prompt (as Admin) and type CD C:\Windows\Microsoft.NET\Framework64\v4.0.30319

· Type the following command to encrypt these settings: aspnet_regiis.exe -pef "appSettings" "C:\Program Files (x86)\Passwordstate Agent" , or aspnet_regiis.exe -pdf "appSettings" "C:\Program Files (x86)\Passwordstate Agent" to decrypt them

· Rename the web.config file back to PasswordstateAgent.exe.config

· Restart the Passwordstate Agent Service

Configure Browser Based Remote Session Launcher Gateway

If you are also wanting to perform RDP and SSH sessions to hosts on your remote site, then pleasefollow these instructions for installing/configuring the gateway - Configure Browser BasedRemote Session Launcher Gateway

Page 7: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Configure Browser Based Remote Session Launcher Gateway 7

© 2019 Click Studios (SA) Pty Ltd

4 Configure Browser Based Remote Session LauncherGateway

By configuring the Browser based Remote Session Launcher Gateway that comes with the RemoteSite Locations agent, you can get secure RDP and SSH sessions to hosts at the remote end, and youdo not need functioning DNS for each of the Host records from your Passwordstate environment -the Gateway will perform DNS lookups on the network it is installed in.

In order for this feature to work you must have:

· At the remote end, the externally facing firewall must allow incoming traffic on the Port youspecify the Gateway to listen on - Port 7273 by default. To ensure a secure connection betweenyour external firewall, and the one at the remote end, you can restrict this by IP Addresses oneach of your firewalls

· You must have a functioning DNS record which can redirect traffic to the Gateway i.e. for a URLof https://client1.clickstudios.com.au:7273, you would need a DNS entry forclient1.clickstudios.com.au to point to the remote end's firewall. The firewall would then needto forward traffic on Port 7273 to the host where you have installed the Remote Site Location'sAgent

· Oracle JRE must be install on the same server where you have the agent

· And you must be using a trusted SSL certificate for the Remote Session Launcher Gateway

Please see details below for how to configure the Gateway at each remote end.

Install OpenJDK 12

The Browser Based Remote Session Launcher requires Java to function, and Click Studiosrecommends the Open Source OpenJDK 12 version.

Download and Install

· Download OpenJDK 12 from the following URL - https://jdk.java.net/12/

· Extract the zip file into a folder, e.g. C:\Program Files\Java\ and it will create a jdk-12 folder(where the bin folder is a direct sub-folder). You may need Administrator privileges to extractthe zip file to this location.

Set a PATH:

· Select Control Panel and search for Environment Variables

· Click 'Edit the System Environment Variables', then click the 'Environment Variables' button

· Under 'System Variables', add the location of the bin folder of the JDK installation to the PATHvariable in System Variables - the following is a typical value for the PATH variable: "C:\ProgramFiles\Java\jdk-12.0.1\bin"

Set JAVA_HOME:

Page 8: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Passwordstate Remote Site Agent Manual8

© 2019 Click Studios (SA) Pty Ltd

· Again under System Variables, click New.

· Enter the variable name as JAVA_HOME.

· Enter the variable value as the installation path of the JDK (without the bin sub-folder).

· Click OK, Apply Changes, and close all Windows

SSL Certificate Considerations and Gateway Windows Service Install

The first thing we need to configure the Gateway is an SSL certificate. Click Studios recommendsusing a wildcard certificate for all your clients, as this means you can use the same certificate file,and gateway.conf configuration file across all sites. An example would be to purchase a wildcardcertificate like *.clickstudios.com.au, and then you could use URLs likehttps://client1.clickstudios.com.au:7273 and https://client2.clickstudios.com.au:7273, etc, etc.

Page 9: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Configure Browser Based Remote Session Launcher Gateway 9

© 2019 Click Studios (SA) Pty Ltd

Note 1: You don't have to use a wildcard certificate, but it might work out more cost effective,and easier to manage, if you are deploying multiple agents.

Note 2: If you are evaluating our Remote Site Locations module and want to test this gateway,but do not want to purchase any certificates for the trial, please contact us as we can loan you acertificate and DNS entry for the trial.

If you already have a wildcard certificate you can use in IIS, you can use the instructions below toexport it for use.

· In IIS, navigate to ‘Server Certificates’

· Right click on your certificate and select ‘Export’

Page 10: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Passwordstate Remote Site Agent Manual10

© 2019 Click Studios (SA) Pty Ltd

· Export the certificate to C:\Program Files (x86)\Passwordstate Agent\gateway, and name itPasswordstate.pfx – make sure you specify a password for the exported certificate as well

Page 11: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Configure Browser Based Remote Session Launcher Gateway 11

© 2019 Click Studios (SA) Pty Ltd

· Now from a command prompt as an Administrator, run the following commands, replace

‘YourPassword’ with the password specified above for the exported certificate, and document

the encrypted password value. Leave the command prompt open for the final step below:

o CD “C:\Program Files (x86)\Passwordstate Agent\gateway”

o java -cp SparkGateway.jar com.toremote.gateway.Encryption YourPassword (please note you

need to press Enter a second time for this to exit correctly from java)

· Now open the file "C:\Program Files (x86)\Passwordstate Agent\gateway\gateway.conf” and

update the setting “keyStorePassword” with your encrypted password

· Back in the command prompt, run the following batch file to install the gateway service:"install-service.bat"

· In the folder C:\Program Files (x86)\Passwordstate Agent\gateway, open Passwordstate-

Gatewayw.exe by double clicking on it, and change the path for 'Java Virtual Environment' to "C:

\Program Files\Java\jdk-12.0.1\bin\server\jvm.dll" (build number may be different here)

Session Recording Folder in the Gateway.conf File

By default, and session recordings will be stored in the folder "C:\Program Files (x86)\Passwordstate Agent\gateway\rec".

Depending on how many session recordings you do, and their duration, then this may cause issueswith disk space on the C drive, so it is recommended you move this to a different disk with morespace. To do this, do the following:

Page 12: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Passwordstate Remote Site Agent Manual12

© 2019 Click Studios (SA) Pty Ltd

· Change the 'recdir' and 'html' settings on the Gateway.conf file, like in the screenshot below

· Copy the file "C:\Program Files (x86)\Passwordstate Agent\gateway\rec\ssltest.html” into thisnew folder, in case you need to test the SSL Certificate back from within your Passwordstate UI -when you try and make a connection to the remote host

Specify Gateway URL in Passwordstate

In order for traffic to route to the correct remote site Gateway, you need to edit the Remote SiteLocations record and specify the URL, as per the screenshot below.

Remember: You need a functioning DNS record in order to router traffic to the example belowof client1.clickstudios.com.au

Remote Sessions to Host

Now from within Passwordstate, performing remote sessions to Hosts is as simple as makingconnections to your own internal hosts. What's required is:

· Your Host records must be "tagged" to the correct Remote Site Location - screenshot below

Page 13: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Configure Browser Based Remote Session Launcher Gateway 13

© 2019 Click Studios (SA) Pty Ltd

· You must have access to the Web Based Remote Session Launcher in Passwordstate - pleaserefer to the Security Adminisrator's manual if you do not have access to this. Access can begranted on the page Administration -> Feature Access -> Remote Sessions tab

· And then you can authenticate with any of the supported methods to the Host. For moreinformation on authenticating, please refer to the Users Manual in the Help Menu, then thesection Hosts -> Hosts Navigation Tree -> Remote Session to a Host

5 Remote Site Tables

With each Agent install, there are certain tables in an SQLite database which will be populatedwith data via your Passwordstate API.

When you first install the Agent, these tables will be populated accordingly when thePasswordstate Agent Windows Service first starts, and they will also be refreshed at thebeginning of the Maintenance Window you specify for each of the Remote Site Locations.

Below are a list of tables which are refreshed regularly, but if you change the contents of thesetables within your install of Passwordstate, it is recommended you manually refresh the remotesite tables manually, or wait until the next Maintenance Window for them to automatically berefreshed. You can manually refresh these tables on a per site basis, or for all sites at once as perthe options below - when the Agent next polls (every 5 minutes by default), then the tables willbe refreshed.

Page 14: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Passwordstate Remote Site Agent Manual14

© 2019 Click Studios (SA) Pty Ltd

Table Name Used For When Data For These Tables CouldChange

AccountTypes Performing Discovery Jobs During an upgrade

DiscoveryScripts Performing Discovery Jobs During an upgrade

HostTypes Performing Password Resets During an upgrade, or if you change anywithin the Administration area

OperatingSystems Performing Discovery Jobs During an upgrade, or if you change anywithin the Administration area

Scripts Performing Password Resets During an upgrade, or if you change anywithin the Administration area

ValidationScripts Performing AccountHeartbeats

During an upgrade, or if you change anywithin the Administration area

Page 15: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Remote Site Tables 15

© 2019 Click Studios (SA) Pty Ltd

6 Remote Agent Logging

Once the Remote Agent is installed and functioning, it can provide logging information in a varietyof ways:

· In the Agent folder, generally in the path of C:\Program Files (x86)\Passwordstate Agent, thereis a Logs folder. In this folder, the following logs will be created to assist with anytroubleshooting activities:o Discovery - Account and Host Discovery activitieso Heartbeat - Account and Host Heartbeat activitieso PasswordResets - Password Reset informationo General - All other logging which do not fit into one of the categories above

Logs will be kept for a maximum of 2 weeks, then automatically deleted.

· If the Agent is able to communicate back to your Passwordstate API, any errors will also belogged to the screen Administration -> Passwordstate Administration -> Error Console

· And when the Agent reports back information around Discovery, Resets, etc, it will add Auditingdata for the site as well - which can be reported against in various screens within Passwordstate

7 Tagging Data with a Site Location

Once you have added one or Remote Sites on the screen Administration -> Remote SiteAdministration -> Remote Site Locations, then it is possible to 'tag' different data withinPasswordstate to be associated with the site. Following are a list of areas this can be done:

· Active Directory Domains

· Privileged Account Credentials

Page 16: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Passwordstate Remote Site Agent Manual16

© 2019 Click Studios (SA) Pty Ltd

· Folders and Password Lists

· Hosts and Host Folders

· Discovery Jobs

· Remote Session Credentials (for the Remote Session Launcher feature)

· User Accounts (so clients can login and get read access to their passwords, without consuming alicense)

· Scheduled Reports (based on Auditing data)

8 Forcing An Agent Poll

Each Agent that you deploy can have it's own 'Agent Poll Frequency' set - by default, it is every 5minutes for each Site Location. Below is a screenshot of where this can be changed.

If for testing/debugging purposes you do not wish to wait for this Poll Frequency, you can make achange to the PasswordstateAgent.exe.config file at the remote site agent end, to force a pollevery minute.

What you need to do is modify the highlighted flag below to True, and then within one minute itwill pick up this change and force an Agent poll – the longest you will need to wait is one minute.Remember to set it back once you have finished testing/debugging. Also, if the Agent Poll is stillin progress the next time it checks in one minute, it will not perform another Poll – the previousone first needs to finish.

Page 17: Passwordstate Remote Site Agent Manual - Click Studiosdev.clickstudios.com.au/downloads/version8/... · · Oracle JRE must be install on the same server where you have the agent ·

Forcing An Agent Poll 17

© 2019 Click Studios (SA) Pty Ltd