Pereiti prie turinio

Prerequisites of the HTML5 Gateway

The prerequisites of the HTML5 Gateway depend on its format (Debian, on the server of an Edge Gateway or not) and on its placement: with an Edge Gateway or in the DMZ.

Machine

Both physical and virtual machines can be used to install CyberElements Bastion.
The product does not perform any virtualisation, so the embedded virtualisation option does not need to be enabled for virtual machines.

OS

CyberElements Bastion 4.7 runs on 64-bit Debian 13 (Trixie) machines.
It is recommended to use machines without a graphical interface and to limit the installed components to the SSH server: in the software selection screen of the Debian installer, keep only SSH server checked (standard system utilities is checked by default).

Information

Version 4.7 no longer runs on Debian 12 (Bookworm). A platform installed in version 4.6 moves to Debian 13 during its version upgrade.

Recommendation

The security hardening guide details the minimal Debian installation, the follow-up of the Debian version and of its security maintenance, and the removal of the packages installed by default: see R1, R2 and R4.

CPU

A CPU with 4 cores will cover most use cases for the product.

RAM

Attention

The RAM values given below are indicative only, as there are many variables that can affect RAM consumption (product features used or elements installed in parallel with the product on the machine).

RAM consumption depends on the number of HTML5 applications open simultaneously.

The base server must have 2 GB for the system to function, plus 50 MB per concurrent HTML5 application.

If the HTML5 Gateway role is combined with an Edge Gateway server, then add 50 MB per concurrent HTML5 application to the RAM recommendation for the Edge Gateway server.

Disk

This server will have increasing volume in the following directories:

  • /var/log/: directory containing the various system logs.
  • /home/systanciahtml5share/: temporary storage directory for files exchanged with HTML5 applications.

Isolating the different directories in different partitions is not mandatory but recommended. You can follow these instructions:

Mount point Options Minimum size (GB)
/boot nosuid,nodev,noexec 1
/opt nosuid,nodev 2
/tmp nosuid,nodev 4
/srv nosuid,nodev 1
/home nosuid,nodev,noexec 6
/usr nodev 6
/var nosuid,nodev 5
/var/log nosuid,nodev,noexec 5
/var/tmp nosuid,nodev,noexec 2
swap No option Depending on RAM (half less)
/ No option 2 GB or more depending on the available disk space

Example

For a server with 4 GB of RAM (which requires 2 GB of swap), the disk space required with the previous partitioning is a minimum of 36 GB.

Recommendation

The security hardening guide proposes a reference partitioning with its mount options, which differs on some points from the table above: see R3.

Network

Recommendation

The security hardening guide details the local firewall rules to be applied to these flows: see Local firewall.

HTML5 Gateway servers can be placed either in the LAN or in the DMZ.

To better identify the different machine addresses, they will be referred to as follows in the documentation:

IP address name Signification
IP_HTML5_GW IP address of the HTML5 Gateway server.

Flows towards the Mediation Controller

LAN to DMZ flow

Source(s) Destination(s) Destination port Comments
IP_HTML5_GW IP_MC_WEB TCP 443 (if using the standard port) Connection to the Edge Gateway pairing system.
IP_HTML5_GW IP_MC_SSL TCP 443 (if using the standard port) Connection to the SSL Router to establish a TLSv1.3 tunnel and route product communications through it.

LAN to DMZ flow

Source(s) Destination Destination port Comments
IP_HTML5_GW VIP_MC_WEB
RIP_MC_WEB_MASTER
RIP_MC_WEB_SLAVE
TCP 443 (if using the standard port) Connection to the Edge Gateway pairing system.
IP_HTML5_GW VIP_MC_SSL
RIP_MC_SSL_MASTER
RIP_MC_SSL_SLAVE
TCP 443 (if using the standard port) Connection to the SSL Router to establish a TLSv1.3 tunnel and route product communications through it.

The flows of a Standalone platform apply towards each node of the platform.

HTML5 Gateway in the DMZ

Placed in the DMZ, the HTML5 Gateway also receives the connection of the Mediation Controller to its HTML5 service, without going through an Edge Gateway.

Installed on a dedicated Debian server, the HTML5 Gateway receives this connection on TCP port 8080; its flows towards the Mediation Controller, above, then stay within the DMZ.

DMZ to DMZ flow

Source(s) Destination(s) Destination port Comments
IP_MC_WEB IP_HTML5_GW TCP 8080 Connection of the Mediation Controller to the HTML5 service.

DMZ to DMZ flow

Source(s) Destination Destination port Comments
RIP_MC_WEB_MASTER
RIP_MC_WEB_SLAVE
IP_HTML5_GW TCP 8080 Connection of the Mediation Controller to the HTML5 service.

The flow of a Standalone platform applies from each node of the platform.

Certificates

CyberElements Bastion uses TLS encryption for internal communications and HTTPS to secure web access, requiring the use of various x509 certificates. The information below summarises the different certificates required, their purpose, and the minimum settings.

Recommendation

The security hardening guide details the protection of the Edge Gateway certificate and private key, and the recommended TLS configuration: see Edge Gateway certificate and private key and TLS 1.2 and TLS 1.3.

Certificate security constraint

Regardless of the certificate used, ensure that it complies with OpenSSL security level 2, which can be summarised as follows:

  • The certificate and the certificates of its certification authorities must have a private key of at least 2048 bits with RSA, DSA, and DH encryption; for elliptic curve keys (ECC), they must be at least 224 bits.
  • The certificate signature must not be MD5 or SHA-1 (SHA-512 is preferred).

This server uses a single certificate: the one for authenticating the HTML5 Gateway component with the SSL Router.

Information

An HTML5 Gateway server can have multiple instances of HTML5 Gateways, requiring as many certificates as there are instances of HTML5 Gateways (except in the specific case of cluster architecture).

HTML5 Gateway certificate

The HTML5 Gateway certificate must comply with the following constraints for its attributes:

  • The certificate's validity period must not exceed 1095 days (3 years).
  • The hash function used for the signature must be part of the SHA-2 family; we recommend SHA-512.
  • The certificate and the certificates of its certification authorities must have a private key of at least 2048 bits with RSA, DSA, and DH encryption; for elliptic curve keys (ECC), they must be at least 224 bits. We recommend a size of 4096 bits for RSA and an ECDSA secp384r1 curve size of 384 bits.
  • The Common Name attribute must have a value that identifies the logical Edge Gateway. This name takes the following form <HTML5_GW_NAME>@<ORGANIZATION_NAME>, where <HTML5_GW_NAME> corresponds to the name of the Edge Gateway (as entered in the administration console) and <ORGANIZATION_NAME> corresponds to the name of the organisation to which the Edge Gateway will connect.
  • The Key Usage attribute must have the values critical and digitalSignature.
  • The Extended Key Usage attribute must have the value clientAuth.

Accepted certificate format: P12.