Installation

Getting started · ViswCA Governance Engine 2.0

Download the latest build from My products › ViswCA Governance Engine › Download. The build is compiled native code: it needs no Python and contains no source code.

Linux server

  1. Create a service account and unpack the build
    sudo useradd --system --home /var/lib/viswca --create-home viswca
    sudo mkdir -p /opt/viswca
    sudo tar -xzf viswca-governance-engine-*-linux-x64.tar.gz -C /opt/viswca --strip-components=1
    sudo chown -R viswca:viswca /opt/viswca
  2. Check the download (optional) - compare with the SHA-256 shown on the download page:
    sha256sum viswca-governance-engine-*-linux-x64.tar.gz
  3. Run it as a service - create /etc/systemd/system/viswca.service:
    [Unit]
    Description=ViswCA Governance Engine
    After=network-online.target
    
    [Service]
    User=viswca
    WorkingDirectory=/opt/viswca
    Environment=VISWCA_HOST=127.0.0.1
    Environment=VISWCA_PORT=5000
    Environment=VISWCA_HTTPS=1
    Environment=VISWCA_PROXY=1
    ExecStart=/opt/viswca/run_server.bin
    Restart=on-failure
    
    [Install]
    WantedBy=multi-user.target
    sudo systemctl daemon-reload
    sudo systemctl enable --now viswca
    sudo systemctl status viswca
  4. Publish it over HTTPS through a reverse proxy (see below), then open https://iga.yourcompany.com. The setup wizard starts.
Server nameA licence is bound to the server's host name. Set the final host name before you generate the licence request.

Docker

docker run -d --name viswca --hostname iga01 \
  -p 127.0.0.1:5000:5000 \
  -v viswca-config:/home/viswca/.ViswCA-Governance \
  -v viswca-data:/opt/viswca/data \
  -e VISWCA_HTTPS=1 -e VISWCA_PROXY=1 \
  <registry>/viswca-governance-engine:<version>

Sykaa Platforms gives you the registry address and read access with your subscription.

  • --hostname keeps the server name fixed - containers otherwise get a random one and the licence would not match.
  • The image runs as the unprivileged user viswca and has a health check on /healthz.
  • Keep the two volumes: the configuration volume holds the licence, the session signing key and the data key.

HTTPS (required in production)

Put ViswCA behind a TLS reverse proxy and set VISWCA_HTTPS=1 (secure cookies, HSTS) and VISWCA_PROXY=1 (trust one proxy's X-Forwarded-* headers). nginx example:

server {
    listen 443 ssl http2;
    server_name iga.yourcompany.com;
    ssl_certificate     /etc/ssl/iga.crt;
    ssl_certificate_key /etc/ssl/iga.key;
    client_max_body_size 50m;
    location / {
        proxy_pass http://127.0.0.1:5000;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Forwarded-Proto https;
        proxy_read_timeout 300s;
    }
}

If people reach ViswCA under another host name than the one the proxy forwards, list it in VISWCA_TRUSTED_ORIGINS.

Upgrading

  1. Take a backup (Backup and restore).
  2. Stop the service, unpack the new build over /opt/viswca (the data folders and your home configuration are kept), start it again.
  3. Databases are upgraded automatically at start-up.