Skip to content
AcuGIS Connect Documentation

Security

AcuGIS Backup stores jobs and archives on the server where it is installed. AcuGIS Connect is the SSH client that opens the management interface. Use both with the access limits below.

SSH

  • Prefer a private key. Generate New SSH Key and Use Existing SSH Key keep the private key on the desktop. Install only the public key in authorized_keys.
  • Compare the key type and SHA256 fingerprint in Trust this SSH server? before you click Trust and Connect.
  • A changed host key is refused. The stored key is not replaced. Confirm the new fingerprint out of band, click Forget Saved Key, and connect again. Details are in SSH Authentication.
  • Protect the private key file. AcuGIS Connect does not upload it, add it to the SSH agent, or copy it to the server.
  • Save an SSH password or key passphrase only when you want it in Windows Credential Manager or the macOS login Keychain, under the service name AcuGIS Connect. Database passwords and the Backup web password are not stored there.
  • Leave the tunnel listener on 127.0.0.1. AcuGIS Connect binds the local port to that address. Other people on the network cannot open the forwarded port.

The SSH account can be root when the server allows root login. The Backup process still runs as acugis-backup and refuses to start as root.

Backup service

  • Set admin_password_hash from acugis-backup hash-password. The login page has a single Password field. After five incorrect passwords within 15 minutes, the next attempt from that address returns too many login attempts.
  • Keep listen at 127.0.0.1:8090. Do not publish port 8090.
  • Leave cookie_secure set to false for the HTTP tunnel to 127.0.0.1. The session cookie is then usable on that tunnel. The session ends after 12 hours without a request, or when you click Logout.
  • Restrict who can SSH to the server, and who can read /etc/acugis-backup/config.yaml. The file should be mode 0640, owner root, group acugis-backup.
  • The service account is acugis-backup, with a login shell of nologin. Give it read access only to the directories in allow_roots, using a group or an ACL. Do not grant sudo or extra capabilities.

Optional HTTPS reverse proxy

Use a reverse proxy when operators must open the interface without an SSH tunnel. Leave AcuGIS Backup bound to 127.0.0.1:8090 and terminate HTTPS on the proxy. Do not publish port 8090.

A minimal nginx site:

server {
    listen 443 ssl;
    server_name backup.example.com;

    ssl_certificate     /etc/ssl/certs/backup.example.com.crt;
    ssl_certificate_key /etc/ssl/private/backup.example.com.key;

    location / {
        proxy_pass http://127.0.0.1:8090;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto https;
    }
}

Set cookie_secure: true in /etc/acugis-backup/config.yaml, then restart acugis-backup.service.

The application can also terminate TLS itself. Set tls_cert_file and tls_key_file together. A listen address that is not loopback is rejected unless both files are set. The SSH tunnel remains the recommended access method.

Backup data

  • Browser-download archives stay under /var/lib/acugis-backup, which is mode 0700 and owned by acugis-backup. Download links require a signed-in session.
  • S3, Google Cloud Storage, and SFTP credentials, and PostgreSQL passwords, are encrypted with the 32-byte file credential.key (AES-256-GCM). The interface does not show them again. Protect that key. A new key cannot decrypt secrets already stored.
  • SFTP requires the server host key on every connection. S3 endpoints must be HTTPS.
  • For Google Cloud Storage, prefer Application Default Credentials when the host can use an attached account. Limit the service account to the one bucket and the permissions listed in Configure Backup Destinations. Leave the bucket private.
  • File-system archives are zstd-compressed tar files. PostgreSQL dumps are gzip-compressed plain SQL. The archive contents are not encrypted by AcuGIS Backup.
  • Verified means the local archive was read back, and, for a remote destination, that the stored object matched the checksum recorded for that upload. It does not mean the backup has been restored.

Recovery

AcuGIS Backup does not provide restore functionality. The interface has no restore action, and the service does not orchestrate recovery.

You are responsible for keeping a recovery procedure and for testing it with tools that can read the archives you store:

  • A file-system archive is .tar.zst.
  • A PostgreSQL archive is one .sql.gz plain-SQL dump per database.

Test that procedure on a system other than the only copy of the backup. A Successful job confirms the checks in Schedule and Monitor Backups. It does not confirm that a whole machine can be rebuilt.