Security hardening¶
This guide lists the steps that bring a QubeSight installation to a production security baseline: what is already secure by default, what you should change after installation, and how to check each item. Work through it after After installation and before you connect production data sources.
Community Enterprise
Every item applies to both editions unless it is marked Enterprise. For the design behind these controls, see Security model.
Secure by default¶
A fresh installation already has the following. You do not need to switch them on, but you should not switch them off.
| Area | Default |
|---|---|
| Web UI and API | Served over HTTPS on the UI port. Plain http:// on the same port redirects to HTTPS. A certificate generated by the product (issued by the installation's root certificate when the installation has one) is used until you install your own. Web interface pages carry an HSTS header (max-age=31536000; includeSubDomains; preload). |
| Generated secrets | Database, object store, internal API, gateway and encryption keys are generated randomly per installation and stored in the .env file and the secrets/ directory with owner-only permissions. No vendor default passwords are used. |
| First administrator | The password is set in the web installer, or generated and shown once. Cloud images require a change at the first sign-in. |
| Kafka (Redpanda) | SASL/SCRAM-SHA-256 authentication and per-component ACLs on all listeners. Each component has its own user with only the rights it needs; Filebeat clients can only write to their own topic. |
| Administrative ports | ClickHouse, the object store and the direct API port are bound to 127.0.0.1 (setting BIND_ADMIN), so they are not reachable from the network. |
| Ingest allowlist | On a fresh installation, syslog and SNMP are accepted only from the server's own subnet. See Ingest access allowlist. |
| Password policy | PCI DSS 4.0-based defaults: 12 characters, 3 character classes, history 4, 90-day maximum age, lockout after 10 failures for 30 minutes, 15-minute idle timeout, 12-hour maximum session. |
| Authorization | Every API request is checked against the caller's role on the server. There are no unauthenticated data or configuration endpoints. |
| Product audit trail | Every sign-in, account change, configuration change and refused action is recorded and hash-chained. See Audit & Integrity. |
| Cluster (Enterprise) | New clusters are created with internal TLS for PostgreSQL, Patroni, Kafka, etcd and ClickHouse Keeper and inter-server traffic. |
Hardening checklist¶
Complete each item and tick it off. The sections below explain each one.
- Replace the self-signed web certificate with a certificate from your CA.
- Change the first administrator password and create named administrator accounts.
- Change the access manager password and decide on separation of duties.
- Require two-step verification for administrators.
- Review the password and session policy.
- Restrict the ingest allowlist to your real log senders.
- Use TLS for syslog and Kafka ingest where your senders support it.
- Set your own backup passphrase.
- Back up the
.envfile andsecrets/directory to a safe place. - Restrict network access with a host or network firewall.
- Keep the product and the host operating system up to date.
- Review the product audit trail regularly and forward it to your SIEM.
1. Install your own web certificate¶
The self-signed certificate protects the connection but browsers warn about it, and users learn to click through warnings. Install a certificate issued by your organisation's CA or a public CA under Settings → Web certificate (HTTPS). No restart is needed. In a cluster, the certificate is shared by all nodes. See Web certificate (HTTPS).
If you terminate TLS on a reverse proxy or load balancer in front of QubeSight, keep TLS between the proxy and QubeSight as well, and declare the proxy so that client addresses in the audit trail are correct. Plain HTTP (--no-tls) is intended only for that case. Browsers that already received the HSTS header from QubeSight for a host name keep using HTTPS for it for one year, so make sure your proxy serves HTTPS under the same name.
2. Replace the installation accounts¶
- Sign in as
adminand change its password under My account (the user entry at the bottom of the menu). - Create a personal administrator account for each administrator, so that the audit trail names real people. See Users, roles and permissions.
- Keep
adminas a break-glass account with a long password stored in your password vault. - Sign in as
accessmgrwith the password fromsecrets/accessmgr_passwordand set a new one. If you do not want a separate access manager, delete the account; it is not recreated.
3. Separation of duties¶
Enterprise
If your policy requires that the people who administer the platform cannot also grant themselves access, enforce separation of duties under Assurance Center → Identity & Access → Separation of duties. From then on only access managers manage accounts, sessions and privileged directory mappings, and one person cannot hold conflicting roles (linked by Person reference). See Separation of duties.
4. Two-step verification¶
Under Assurance Center → Identity & Access → MFA, set Requirement to Required for administrators (admin and access manager) or Required for everyone (all local and LDAP accounts). Set up MFA on your own account first; the policy cannot be saved otherwise.
The MFA secrets are encrypted with a key derived from QUBESIGHT_MFA_KEY, or from GUARDIUM_SECRET_KEY when the former is not set. Never change or remove either key after installation: every enrolled user would have to enrol again. See Multi-factor authentication.
If you use single sign-on, enforce MFA at your identity provider; SSO accounts are exempt from QubeSight's own MFA.
5. Password and session policy¶
Review Assurance Center → Identity & Access → Password and session against your corporate policy. Consider turning on the option that forces a password change at sign-in when a password does not comply or has expired, so that older passwords are brought into line. The defaults and ranges are listed in Password and session defaults.
When LDAP is enabled, only administrators and access managers can sign in with local passwords; all other users are governed by your directory's password rules. Use ldaps:// or StartTLS for the directory connection, and do not enable cleartext or "skip certificate verification" in production. See LDAP / Active Directory.
6. Restrict ingest sources¶
The ingest allowlist limits which addresses may send syslog (ports 5140 and 6514) and SNMP traps (port 162) to QubeSight. Replace the default subnet with the exact addresses or networks of your Guardium appliances and other senders under Data Sources → Stream Sources → Access allowlist (Syslog/SNMP). Only administrators can see and change it. See Ingest access allowlist.
Filebeat clients authenticate to Kafka with their own username and password. Only administrators can reveal that password, and every reveal is recorded in the audit trail. Distribute it only to the hosts that run Filebeat.
7. Encrypt ingest traffic¶
Syslog over TLS and Kafka over TLS are available for senders that support them; the linked page lists which deployments and ports support them. Using them protects SQL text in transit between the database tier and QubeSight. The measured cost is negligible once a connection is established. See Syslog and Kafka TLS.
For Guardium SNMP traps, prefer SNMPv3 with authentication and privacy over SNMPv2c communities.
8. Backup encryption¶
Backups are encrypted with AES-256-GCM using the backup passphrase. Until you set your own, backups use the default passphrase qubesight, which anyone holding a backup file can use to open it. Set your own passphrase under Platform → Data and Backup → Backup settings (at least 12 characters). QubeSight cannot show or recover the passphrase; store it in your password vault. See Data and Backup and Backup and restore.
For tamper-evident long-term storage of activity logs, use the locked (WORM) cold tier. A locked store on a separate server or an external S3 Object Lock store requires Enterprise (immutable_vault). See Hot and cold storage tiers.
9. Protect the installation secrets¶
The .env file and the secrets/ directory in the installation folder hold the keys that decrypt stored credentials (LDAP, SMTP, Guardium, cloud sources), MFA secrets and backups. Anyone with root access to the server can read them.
- Restrict root and
sudoaccess on the QubeSight servers. - Copy
.envandsecrets/to a protected location after installation and after every change; without them a restore on new hardware cannot decrypt stored credentials. - Do not edit generated keys such as
GUARDIUM_SECRET_KEYby hand.
10. Network exposure¶
Expose only the ports that users and log senders need. See Network, ports and firewall and Ports.
| Who | Needs |
|---|---|
| Users' browsers | The UI port (HTTPS) |
| Guardium and syslog senders | Syslog (5140 TCP, 6514 TLS) and SNMP (162 UDP) |
| Filebeat clients | The Kafka port |
| Cluster nodes and the witness (Enterprise) | The cluster ports between each other only |
Keep BIND_ADMIN at 127.0.0.1. Use a host firewall or network ACL to block every other port from untrusted networks.
11. Keep software up to date¶
- Apply QubeSight patches when they are published: Platform → System and Cluster → Update. Patches are signed and verified before they are applied. Enterprise installations can use the update channel with a maintenance window. See Upgrades, patches and the update channel.
- Keep the host operating system patched. See Host operating-system updates.
12. Monitor the product itself¶
- Review Assurance Center → Audit & Integrity → Events for failed sign-ins, refused actions and configuration changes.
- Forward alerts and events to your SIEM (Enterprise channels). See SIEM forwarding.
- Configure the built-in alerts for component health and silent log sources so that a stopped feed is noticed. See Monitoring and health.
Host resilience under memory pressure¶
QubeSight sizes ClickHouse memory per query from the memory available to it, so heavy queries spill to disk instead of exhausting the host. On a host that is shared with other workloads or is close to its sizing limit, the following operating-system measures keep the server reachable under memory pressure. They are general Linux practice, not QubeSight settings; apply them according to your own host standards:
- Keep a swap area so that the system slows down instead of killing processes.
- Reserve free kernel memory (
vm.min_free_kbytes) so that SSH and networking can still allocate memory. - Lower the out-of-memory score of
sshdso that remote access is the last process to be killed.
See System requirements and sizing for supported sizes.
Verification¶
| Check | How |
|---|---|
| Certificate | Open the UI; the browser shows no warning and the certificate is issued by your CA. |
| Kafka authentication | From a host without credentials, a Kafka client connection to the Kafka port is refused. |
| Allowlist | A test syslog line from an address outside the allowlist does not appear in Pipeline → Diagnostics; one from an allowed sender does. |
| MFA | Sign in as an administrator in a private window; the second step is requested. |
| Backup passphrase | Data and Backup → Backup settings no longer shows Default passphrase. |
| Audit trail | Audit & Integrity → Events shows your hardening changes with your user name. |
Limitations¶
- The ingest TLS certificate is issued by the same product CA as the web certificate. Senders that verify it must trust that CA.
- The built-in assistant model server communicates over plain HTTP inside the deployment; the UI warns when a remote model server is reached without TLS.
- Older clusters created before internal TLS became the default are not converted automatically. Contact QubeSight support to plan the conversion.
- Anyone who may manage accounts can reset another administrator's password and MFA without a second approval.
- There is no per-database restriction of what a user can see; scope access with roles and, where needed, separate installations.