Security architecture¶
This page covers the security-relevant architecture of a self-hosted (on-premises) MATVIS deployment. For the components themselves, see Architecture. For the audit trail, retention and SIEM export, see Audit & data handling.
Network¶
Only the Dashboard, the Firewall API and, when enabled, ICAP need to be reachable from outside; their ports are listed in Requirements. The filter services, the database and Identity are reachable only inside the deployment. With a managed PostgreSQL, MATVIS connects out to it on the host and port you configure.
TLS¶
The on-premises docker-compose.yml has no reverse proxy: put your own TLS-terminating proxy or
load balancer in front of it. When MATVIS generates your deployment with the reverse proxy option,
the proxy terminates TLS on port 443 with TLS 1.2 and 1.3, with the certificate
(fullchain.crt) and key (private.key) you place in /etc/ssl/aice on the host. With a
TLS-terminating proxy in front, set HTTPS_ENABLED=true, see the
Configuration reference.
What MATVIS stores¶
MATVIS stores, in PostgreSQL on your infrastructure:
- Configuration: firewall, tool-scan and model configurations, API keys, users, and the license.
- Event history: one record per screened request (see Audit & data handling for the exact fields).
- A short-lived message cache: each entry is found by a hash of the message and holds the full screening result, message text included. Entries are removed by a periodic cleanup, when the configuration they were scanned with changes, and when Full Retention is switched off. Outside Full Retention, the cache is not used; in Zero Retention no event is written either.
Encryption¶
- In transit: external traffic is protected with TLS 1.2 / 1.3, terminated at the
reverse proxy. Traffic to the bundled database stays inside the deployment. Traffic
to a managed PostgreSQL is encrypted and the server certificate verified
when
DB_SSLMODE=verify-fullis set with the provider's CA bundle (DB_SSLROOTCERT). - At rest (beta): MATVIS can encrypt sensitive columns at rest: the event history, the message cache, model and add-on configurations (which hold provider keys) and user passwords. Envelope encryption with an operator-held master key that is never stored in the database.
This is a beta feature and off by default. Turn it on with AICE_ENCRYPTION_ENABLED=true
and a master key. While it is off, these columns are stored unencrypted.
Air-gapped operation¶
On-premises MATVIS runs fully air-gapped, with a license verified locally and no network access. What to plan for is described in Deployment models.