Remote maintenance by an outside vendor, recorded
A machine builder's service technician has to reach an HMI or a Windows engineering PC in your plant. This guide lets them do that in a browser, without installing anything on their laptop, only after your plant has approved it, for a limited time and with the whole session recorded. It is built from a Portal on a gateway asset in the plant network, just-in-time access on the policy that grants the portal, and session recording.
The example follows Lindqvist Maschinenbau. The gateway asset plant-gateway-ka serves the portal service.lindqvist-maschinenbau.example. It offers the HMI 192.168.20.15 over VNC and the engineering PC 192.168.20.30 over Remote Desktop. The vendor's technician is s.keller@press-service.example.
In short
Publish the HMI (VNC) and the engineering PC (RDP) as applications of a portal on the gateway asset and turn Record sessions on. Give the technician a user at your identity provider. Grant the portal with a policy that Requires approval. The technician asks on My access, your approver decides, the technician opens the desktop in the browser, and you can watch it live or end it. Afterwards the request's report, the recording and the events show what happened.
Before you start
- A Linux gateway asset in the plant network, or the asset container image: Windows, macOS and OpenWrt assets cannot serve a portal. The gateway asset is
plant-gateway-kain this guide. It needs a current agent, and it must reachhttps://dl.xplicittrust.comto download guacd, the program that speaks RDP, SSH and VNC for the browser. See Publish a remote desktop and Gateway Assets. - A hostname for the portal with a DNS record that points to the gateway asset, and the gateway asset reachable on port 443. Steps 1 to 3 of Publish a web application cover this.
- A path from the gateway asset to the targets: port 5900 of the HMI and port 3389 of the PC. Neither needs an agent or a public address. The HMI must have a VNC server. The PC needs Remote Desktop turned on and Network Level Authentication.
- Size the gateway asset for the sessions open at the same time. One service session at a time is small: see Sizing the gateway asset.
- Two user groups: one for the vendor's technicians (for example Press service technicians) and one for the people at your plant who approve (for example Plant operations). All Users cannot be the approver group. See Definitions.
- Administrator rights in the Admin Console.
- Background: Just-in-Time Access and Agentless Access.
1. Publish the HMI and the PC on a portal
Create the portal on plant-gateway-ka as in Publish a web application: Assets → Create → Portal, with the hostname service.lindqvist-maschinenbau.example. Then add one application per target. On the portal's Applications tab choose Add application:
| Setting | HMI | Engineering PC |
|---|---|---|
| Name | Press line HMI |
Engineering PC |
| Path prefix | /hmi |
/engineering |
| Trust level | identity |
identity |
| Upstream | vnc://192.168.20.15 |
rdp://192.168.20.30 |
- The trust level
identityis what lets the technician in with a browser and without the agent: they sign in at your identity provider. See Trust levels. - For the HMI, store the VNC password in the application, so the technician never sees it. For the PC, either leave Username, Domain and Password empty, so the technician types a Windows account and password, or store a service account in the application. See Publish a terminal and a remote screen and Remote desktop settings.
- A VNC server has no identity to check and most do not encrypt. Use VNC only where the gateway asset is in the same network segment as the HMI. See VNC targets.
- Pin the PC's certificate after the first session, as in Pin the server's certificate.
Many HMIs run a VNC server, and a Windows engineering PC runs Remote Desktop; for a terminal on a Linux controller add an ssh:// application in the same way.
2. Turn on recording
- Open the portal, choose Edit and open the application. In its Remote screen (VNC) or Remote desktop (RDP) settings turn on Record sessions. Do this for both applications.
- On the portal's detail page, choose the settings icon next to Remote desktop sessions. These settings belong to the gateway asset:
- Keep recordings for (days): 30 by default. Choose what your records policy needs.
- Disk space for recordings (GiB): 4 by default. A recording is removed or uploaded only after its session has ended, so the space must hold at least the largest session you expect.
- Upload to a bucket (S3 compatible): off by default. Turn it on to keep the recordings in your own bucket, for example Amazon S3. The gateway asset uploads each recording when the session has ended and then removes its own copy. It never deletes from the bucket: set the retention as a lifecycle rule, and Object Lock if recordings must not be changed or deleted early. The access key needs
s3:PutObjectands3:GetObjectonly.
A recorded application never runs unrecorded: a session that cannot be recorded does not start. Keystrokes are not recorded. The settings, the bucket fields and the space a recording takes are in Session recording.
3. Give the vendor's technician a user
The technician needs a user in your tenant, signed in through your identity provider. They install nothing: a browser is enough. How you create the user depends on the identity provider:
- Microsoft Entra ID. Invite the technician to your Entra ID as a guest user. See Entra ID Guest Users.
- Other identity providers. Only Entra ID has a guide for guest users. For the others, see the table in Overview and choosing an IdP: create a user in your identity provider as you do for any employee.
Then make the technician a member of the user group Press service technicians. Groups come from your identity provider or are local; see Definitions and Import user groups.
A person who signs in to a portal becomes a user of your tenant and counts for your subscription in the months they used a portal. See Users and licensing.
4. Grant the portal only on approval
- Open Policies and choose Create. On the General tab enter a Name, for example
Press service maintenance. - On the Access tab, select Press service technicians under Sources and the portal under Destinations. A portal needs no service.
- On the Advanced tab, in the section Just-in-time access, switch on Requires approval.
- Choose Plant operations as Approver groups.
- Choose the Longest approval, for example 4 hours. It has no default and the policy cannot be saved without it.
- Choose Apply.
The policy grants nothing by itself. The technician has no access until a request is approved, and then only to this portal, only for themselves and only for the approved time. See Advanced tab and The model.
Two things matter for a browser-only vendor:
- Do not use an operating system, location, public IP or site condition on this policy. A browser proves no device, so such a policy grants
tunnelapplications only and never a login. Time conditions work for logins and limit an approval to the time inside them. See Policies. - If another policy already grants the same people the portal without approval, that access stays and a request adds nothing. The policy form warns about it.
If only some of the vendor's people may open the PC and not the HMI, narrow the application with Allowed user groups. These never grant on their own.
The portal's session needs a current agent on the gateway asset to check the grant while the session runs. See Just-in-time access.
5. The technician asks, your approver decides
Optional first: under Account → Settings on the General tab, choose who gets the Access report email after the access ends, for example the approver group and an audit mailbox. See Settings.
- Request. The technician opens My access at the console address followed by
#/accessand signs in with their email address and identity provider. The page shows the HMI and the PC as Can be requested, with Remote desktop or VNC as their kind. In the tab Request access they choose the Destination, the start and Duration (at most the Longest approval), and give a Reason that the approver sees, for example a ticket number. See My access. - Decision. Members of Plant operations are told by email, and in a Teams, Slack or Google Chat channel if you set one up. An approver opens the request on My access, tab To decide, or in Access requests, optionally changes the window, adds a note and chooses Approve or Deny. Nobody decides their own request. See Deciding.
- Start. At the approved time the entry reads Access granted and shows Until and the end. The technician chooses Open. The application opens in a new browser tab.
- Sign in. The page asks for what the target needs: a Windows account and password for the PC, or the VNC password for an HMI that has none stored. The desktop opens in the tab. The bar shows Access until with the end time, counted down in the last hour. See Using a Portal.
The approval ends the session at its end, even when the gateway asset cannot reach the controller at that moment. If the job takes longer, the technician chooses Request more time in the bar. The approver decides the extension; an approved one moves the end within half a minute and the session runs on. See More time.
6. Watch, and end it if you must
While the session runs, the portal's detail page lists it under Remote desktop sessions: who holds it, the application, the target, since when and from where.
- Watch the session shows the screen as it is now, in a new tab, read-only. You cannot type or click, and you see no clipboard or files. The technician sees a banner "… is watching this session" with your email address for as long as you watch, and the event log records who opened the view. See Watching a session.
- End the session disconnects it. The technician sees An administrator ended this session. within about 20 seconds. Only that session ends: the approval stays, and the technician can connect again. To end the access, open the request under Access requests and choose End access now. See Ending a session and Cancelling and ending.
Watching and ending need the Admin role and a current agent on the gateway asset.
7. After the session
The request's report. A few minutes after the access has ended, the report is sent by email to the people you chose. It can also be opened from the request: under Access requests select the request, or open it on My access. It shows who asked and why, who approved, when the access started and ended, the technician's sign-ins and other events in that time, and for destinations that report network activity the addresses reached. If the request form showed "This destination reports no access tracking", the report holds events but no addresses. See Report and Report.
The recording. Open the portal's detail page and look under Session recordings: newest first, with who held the session, the application and the target, when, for how long, the size and where the recording is now. Choose the play button. The console fetches the recording from the gateway asset, or from your bucket through it, checks its SHA-256 and plays it. Unchanged means the file is exactly what the gateway asset recorded. The device you watch on has to reach the portal. Playing a recording is itself an event. See Watching a recording.
The events. Every step is in the event log under Insights → Events and reaches your SIEM through the event forwarders. The ones of this scenario:
| Event | What it tells you |
|---|---|
jit_access.access_requested, access_approved, access_started, access_expired or access_ended |
The request, who decided, and how the access ended. |
web_app_login |
The technician signed in to the portal. |
web_app_desktop_session_started, web_app_desktop_session_ended |
The session, with the target, the account and the end reason (closed, access_revoked, idle_timeout, ended_by_admin). |
web_app_desktop_session_watched, web_app_desktop_session_end_requested |
Who watched or ended it. |
web_app_desktop_recording_completed, web_app_desktop_recording_uploaded, web_app_desktop_recording_viewed |
The recording: complete with its SHA-256, in the bucket, and played. |
See jit_access and the authentication events for all events and their fields.
Verify
- Before any request: sign in to My access as the technician. The HMI and the PC are listed as Can be requested, not as Access granted. Opening the portal's address directly shows that access must be requested.
- Send a request and approve it as a member of Plant operations. The status goes from Pending to Approved and Active.
- Open the application as the technician. The desktop appears in the browser and the bar shows Access until.
- As an administrator, the session is listed under Remote desktop sessions. Choose Watch the session: you see the screen, and the technician sees the banner.
- Close the technician's tab. The recording appears under Session recordings and plays. With a bucket, its location changes from the gateway asset to the bucket once uploaded.
- After the approved time, the technician can no longer open the application and a running session says Your access to this remote desktop has ended.
If it doesn't work
- The technician sees "No policy lets you request access". They are not in the policy's Sources, or the policy is disabled.
- The session does not open. The gateway asset cannot reach the target, or the target refused the account. Repeat the reachability check of Publish a remote desktop. The gateway is still installing the remote desktop service means guacd is being downloaded: wait a minute.
- A recorded session does not start. A recorded application never runs unrecorded: the gateway asset has no room for recordings, or uploads keep failing. The line above Session recordings says which. Free space, raise Disk space for recordings (GiB) or fix the bucket settings.
- Recordings stay on the gateway asset. Check the bucket's endpoint, region and access key. Failed uploads are events (
web_app_desktop_recording_upload_failed), and nothing is deleted while they fail. - Nobody approved. If nobody decides before the requested time ends, the request is cancelled and the technician can ask again.
- "Watch the session" or "End the session" says the gateway's agent cannot do it yet. Update the agent on the gateway asset.
- Anything else: Portal messages and troubleshooting and the Access Diagnostic.
Next
- Keep an application off the internet for your own staff: use the
tunneltrust level for it, see Trust levels. - Turn the Access report email to an audit mailbox, see Settings.
- Forward the events to your SIEM: Event forwarding.
- The general pattern for any destination: Give a contractor temporary access.