Skip to content

Bastion in deployments

This section describes the bastion in deployments.

Roles with access

  • The owner of the deployment and their co-owners (and also the managers of their category and the administrators) configure the deployment's bastion, download the access CSV and view (read-only) each user's access.
  • Users with bastion permission (can_use_bastion) manage bastion access for their own desktops and the SSH key of their profile; you do not need to be an administrator or manager.

17.0.0

The Bastion feature can be enabled for an entire deployment at once. Instead of configuring each desktop individually, the deployment owner sets the SSH and HTTP options once, and IsardVDI applies them to all desktops in the deployment.

It is especially useful in classroom or workshop environments: each student has their own desktop with a public URL and SSH access, and the teacher gets a single file with all the access data.

graph LR
  c(Students / Internet):::dt -.- b([IsardVDI Bastion]):::dk
  b -.- d1(Desktop student1):::dt
  b -.- d2(Desktop student2):::dt
  b -.- d3(Desktop student3):::dt
  classDef dk fill:#ffd1dc,stroke:#ff3465,stroke-width:1px

Requirements

  • The bastion must be enabled in the installation, the base domain must be configured and users must have bastion permissions. All this is done by an administrator: see Bastion configuration.
  • The deployment template must have a Wireguard VPN network interface: the bastion reaches the desktops through this interface. Enabling the bastion in a deployment does not add it (only the desktop edit form does), so you must add it to the template.
  • Only the owner of the deployment, their co-owners, the managers of the owner's category and the administrators can change the bastion configuration of a deployment, and they must have bastion permission.

In the side menu, the section Deployments; this feature is within the deployment screen.

The bastion options are only shown if the user has bastion permission (can_use_bastion); otherwise, they appear neither in the deployment menu nor in each user's row. The configuration can be viewed or changed by the owner and co-owners of the deployment, the managers of the owner's category and the administrators. Bastion permission is granted by the administration per user, group, category or role (see Bastion configuration).

Configure a deployment bastion

Open the deployment. The top action bar has two bastion buttons:

Deployment action bar with the bastion buttons highlighted

  • Bastion configuration (shield icon): opens the deployment's bastion configuration.
  • Download bastion access file (document icon): downloads a CSV with the access data of all the desktops.

Clicking Bastion configuration opens the dialog:

Deployment bastion configuration dialog

Option Description
SSH Enables SSH access through the bastion for all desktops in the deployment.
SSH port Port where the SSH server listens inside the desktop. Externally, it is always published on the bastion's SSH port.
HTTP Enables HTTP/HTTPS access through the bastion for all desktops in the deployment.
HTTP port / HTTPS port Ports where the web server listens inside the desktop. Externally, they are always published on 80 and 443.

Important

As indicated in the dialog, the configuration applies to all desktops in the deployment. Running desktops are updated immediately; new and recreated desktops inherit it the first time they start.

The authorized keys for each desktop are not configured here: each user's key is taken from their profile (see The user's SSH key).

Open the deployment and, in the actions menu, choose Bastion. The Bastion settings for «deployment name» dialog opens, with two sections:

Option Description
SSH (toggle) Enables SSH access through the bastion. When enabled, the SSH Port field appears (default 22), the port where the SSH server listens inside the desktop.
HTTP / HTTPS (toggle) Enables web access through the bastion. When enabled, HTTP Port (default 80) and HTTPS Port (default 443) appear.

Save applies the changes, and Cancel closes the dialog without saving them.

Important

The configuration applies to all desktops in the deployment. Running desktops are updated immediately; new and recreated desktops inherit it when they start for the first time. Each user's SSH key is read from their profile upon connection; see Bastion SSH key.

Note

Enabling the bastion in a deployment does not add the Wireguard VPN network interface to the template; it must be present for the bastion to reach the desktops.

Conditions and messages
  • Ports must be between 1 and 65535.
  • While data is loading, the dialog shows loading indicators and Save is disabled.
  • If it cannot be loaded: «Could not load the deployment bastion configuration».
  • If it cannot be saved: «Could not save the deployment bastion configuration»; the dialog remains open.
  • If the user does not have bastion permission, or is not the owner, co-owner, category manager or administrator, the API responds with an access denied error (403).
Development details

For those developing or integrating IsardVDI: where in the code each element of this section is located, from which version it is available, which API operation it calls, and what messages it can return.

  • New interface · file views/EditDeploymentView.vue:637 · interface text (translation key) components.deployments.form-select-template-modal.cancel
    • since v17.0.0 (2026-04-24, f31b874d89)
    • on click: selectTemplateModalData = null
  • New interface · file views/EditDeploymentView.vue:657 · interface text (translation key) components.deployments.form-delete-desktop-modal.cancel
    • since v17.0.0 (2026-04-24, f31b874d89)
    • on click: deleteDesktopConfirmationModalData = null
  • New interface · file views/EditDeploymentView.vue:663 · interface text (translation key) components.deployments.form-delete-desktop-modal.confirm
    • since v17.0.0 (2026-04-24, f31b874d89)
    • on click: deleteDesktop(deleteDesktopConfirmationModalData!.index)

Commit code fe99ad98.

Check access for each desktop

Once the bastion is enabled, each row in the desktop list displays a Bastion info button:

List of deployment desktops with the Bastion info button

It opens a read-only view with the data that user needs to connect:

Bastion information for a deployment desktop

  • Bastion ID: unique identifier of the desktop's bastion target; it is the SSH user and, with the last hyphen turned into a dot, the subdomain used in the URLs.
  • HTTP URL / HTTPS URL: public addresses of the desktop's web server.
  • SSH: ready-to-use connection command.

Each field has a copy button to allow passing the values to the user.

In the deployment's user list, each row has a button with a globe icon (hover information: User bastion access). It opens the Bastion access for «user» dialog with the desktops that user has in the deployment and their status. The Bastion access button next to a desktop shows its data, read-only:

  • Bastion target ID: identifier of the desktop's bastion destination, with a copy button.
  • HTTP / HTTPS: the two public addresses, each with a button to open in a new tab and a copy button. Only shown if HTTP is enabled.
  • SSH: the connection command ssh <bastion ID>@<host> (with -p <port> if the bastion port is not 22), with a copy button. Only shown if SSH is enabled.

If the desktop has a custom domain, the addresses and the SSH command use the first domain instead of the bastion domain.

The Go back to desktops button returns to the list.

Conditions and messages
  • If the user has no desktops in the deployment: «This user has no desktops in this deployment».
  • If the bastion is not enabled on the desktop: «Bastion is not enabled for this desktop».
  • Loading errors: «Could not load the user's desktops» and «Could not load bastion access».
  • This view is read-only: it does not allow changing keys or domains (the user does this from their desktop).

Download the access file

The Download bastion access file button generates a CSV with one row for each desktop of the deployment:

username,email,desktop_name,status,target_id,ssh_enabled,ssh_command,http_enabled,http_url,https_url,custom_domain
student1,student1@example.com,Web server,Started,f4aab2cb-…,True,ssh f4aab2cb-…@bastion.example.com -p 443,True,http://f4aab2cb-….bastion.example.com,https://f4aab2cb-….bastion.example.com,
student2,student2@example.com,Web server,Stopped,426a782a-…,True,ssh 426a782a-…@bastion.example.com -p 443,True,http://426a782a-….bastion.example.com,https://426a782a-….bastion.example.com,

It is the fastest way to give each student their URL and their SSH command.

In the deployment actions menu, choose Download bastion CSV. The browser downloads the file <deployment id>_bastion.csv, with one row per desktop and the columns username, email, desktop_name, status, target_id, ssh_enabled, ssh_command, http_enabled, http_url, https_url and custom_domain (see the example in the previous tab).

Note

The CSV does not contain any SSH keys, only connection data.

Conditions and messages
  • The option only appears if the user has bastion permission, and it can only be used by the owner and co-owners of the deployment, the managers of the owner's category and the administrators.

User SSH key

Each user adds one SSH public key to their profile using the Bastion SSH key button:

Bastion SSH key button on the user profile

In the following screenshot:

Bastion SSH key dialog

This key opens bastion SSH access to all of the user's desktops, so there is no need to add it to each desktop individually. From version 17.27.0 onwards, the bastion reads the key at connection time: changing or deleting it takes effect in less than 10 seconds. See Bastion SSH key.

Generate an SSH key

ssh-keygen -t ed25519
ssh-keygen

The key to paste is the public key (id_ed25519.pub).

Deployment owners

The profile keys of the deployment owner and their co-owners also open access to all desktops in the deployment, allowing a teacher to reach all student desktops via SSH without needing to request anything. From version 17.27.0 onwards, this is checked at connection time: removing a co-owner revokes their access in less than 30 seconds.

The SSH key is personal: it is stored in each user's profile and opens bastion SSH access to their desktops and to those in deployments where they are an owner or co-owner. You only need to add it once; there is no need to configure it on each desktop.

  1. Go to Profile, in the security section, and click Bastion SSH Key.
  2. Paste the device's public key (for example ssh-ed25519 AAAAC3NzaC1lZDI1NTE5... user@host) into the Your device's SSH public key field.
  3. Click Save key. To revoke access, click Remove key.

Warning

Only add your own public key. Adding another person's key may violate the organization's security policy.

Conditions and messages
  • The Bastion SSH Key button is only shown to users with bastion permissions; you do not need to be an administrator or manager.
  • Only one key is accepted, of one of these types: ssh-ed25519, ssh-rsa, ssh-dss, ecdsa-sha2-nistp256/384/521, sk-ssh-ed25519@openssh.com, or sk-ecdsa-sha2-nistp256@openssh.com. Otherwise: «This doesn't look like a valid SSH public key.»
  • Error when saving: «Could not save the SSH key. Please check the key and try again.»; error when deleting: «Could not remove the SSH key. Please try again.» (title: «Request failed»).
  • When deleting the key, access via this key is revoked.

Access from the desktop

On the user's desktop card, the bastion button provides access to the same information:

Bastion button on a desktop card

In the following screenshot:

Bastion information for a user's desktop

Besides the URLs and the SSH command, the user can:

  • Authorized keys for other users: paste the public keys (one per line) of other people to whom they want to grant SSH access to this desktop. Their own key does not need to be included, as it comes from their profile.
  • Custom domain names: publish the desktop under a custom domain, if the administrator has granted them permission.

Each user accesses their own desktop of the deployment from the desktop card, as with any desktop with a bastion: see View the access data and Authorized SSH keys. The addresses of a deployment desktop that is not theirs are seen by the owner or co-owner of the deployment with the read-only dialog described in Check access for each desktop.

Custom domains

A desktop supports up to 10 custom domains. After adding one, create a CNAME record at your DNS provider pointing to the desktop's bastion address:

Custom domains with DNS information

  1. Click Add domain and enter the domain name.
  2. Click the information icon next to Custom domain names to see the CNAME target to configure.
  3. Create the CNAME record at the DNS provider.
  4. Click the shield icon to verify the DNS. The warning icon turns into a verified mark.
  5. Click Update custom domains to save.

The domain status is indicated by the icon next to it:

Icon Meaning
Warning Unverified domain — click the shield to verify it.
Loading indicator Checking DNS.
Empty mark Domain verified, not saved yet — click Update custom domains.
Filled checkmark Saved and active domain.

Warning

If the administrator has enabled Bastion domain verification required, a new domain cannot be saved until its CNAME record points to the expected address. Verification fails if the CNAME record does not exist yet, does not match the expected value, or the domain is already used by another desktop.

To serve these domains over HTTPS with a valid certificate, see HTTPS certificates for bastion desktops.

Custom domains are configured per desktop, not per deployment, as with any desktop with a bastion. See Custom domains.

Conditions and messages
  • If the name already exists or is not valid, the screen says so.