Reaqt
Ascender Reaqt runs event-driven automation. A listener receives events such as syslog messages and webhooks, matches them against rule sets, and dispatches them to providers such as Ascender job templates. A separate web application provides the management interface and API. The installer deploys both, with a MariaDB database, into their own namespace.
What the installer deploys
In REAQT_NAMESPACE (default reaqt):
| Resource | Name | Purpose |
|---|---|---|
| Deployment | ascender-reaqt-web | Web interface and API, on port 8080. reaqt_web_replicas pods |
| Deployment | ascender-reaqt-listener | Event listener, on port 5002. Always one pod |
| Deployment | ascender-reaqt-db | MariaDB database, unless you use an external database |
| ConfigMap | ascender-reaqt-config | Application settings |
| Secrets | ascender-reaqt-keys, ascender-reaqt-db, ascender-reaqt-admin | Encryption keys and listener token, database passwords, and the initial administrator password |
| Secret | ascender-reaqt-pull-secret | Depot image pull secret |
| PersistentVolumeClaim | ascender-reaqt-db-data | Database storage, REAQT_PVC_SIZE_GB in size |
| Ingress or Route | ascender-reaqt | Exposes Reaqt at REAQT_HOSTNAME |
One host name serves both services: requests to /api/events go to the listener and everything else goes to the web application. Event sources send events to https://<REAQT_HOSTNAME>/api/events/<rule-set-slug>.
Configuration
REAQT_INSTALL: true
REAQT_HOSTNAME: reaqt.example.com
REAQT_NAMESPACE: reaqt
REAQT_VERSION: latest
reaqt_web_replicas: 1
REAQT_LISTENER_UID: listener-primary
REAQT_LISTENER_NAME: "Primary Listener"
REAQT_LISTENER_API_TOKEN: "<64 hexadecimal characters>"
REAQT_SESSION_KEY: "<64 hexadecimal characters>"
REAQT_SECRET_KEY: "<64 hexadecimal characters>"
REAQT_DB_PASSWORD: "<database-password>"
REAQT_DB_ROOT_PASSWORD: "<database-root-password>"
| Variable | Default | Description |
|---|---|---|
REAQT_INSTALL | false | Install Reaqt |
REAQT_HOSTNAME | reaqt.example.com | Host name of Reaqt. Required |
REAQT_NAMESPACE | reaqt | Kubernetes namespace for Reaqt |
REAQT_VERSION | latest | Image tag of the Reaqt images |
reaqt_web_replicas | 1 | Number of web pods |
REAQT_LISTENER_UID | listener-primary | Unique, stable identifier the listener registers with. Do not change it after installation |
REAQT_LISTENER_NAME | Primary Listener | Display name of the listener |
REAQT_LISTENER_API_TOKEN | changeme-listener-api-token | Shared bearer token the listener presents to the web application's /api/listener API. Use a strong value |
REAQT_SESSION_KEY | Empty | Session cookie encryption key, 64 hexadecimal characters. When empty, the web application generates and stores its own |
REAQT_SECRET_KEY | Empty | Key that encrypts stored provider credentials, 64 hexadecimal characters. The installer gives the same value to the web application and the listener |
REAQT_DB_PASSWORD | mydbpassword | Password of the Reaqt database user |
REAQT_DB_ROOT_PASSWORD | mydbrootpassword | MariaDB root password, used only by the built-in database |
REAQT_PVC_SIZE_GB | 10 | Size of the database volume, in GB. Set before the first installation |
REAQT_PVC_STORAGE_CLASS | Cluster default | StorageClass of the database volume. Applies on OCP |
REAQT_WEB_IMAGE, REAQT_LISTENER_IMAGE, REAQT_DB_IMAGE | depot.ciq.com/ascender-pro/ascender-reaqt-images/ascender-reaqt/web, listener, db | Image repositories. Change them only to pull from a mirror |
Generate the keys and passwords
config_vars.sh generates REAQT_LISTENER_API_TOKEN, REAQT_SESSION_KEY, REAQT_SECRET_KEY, REAQT_DB_PASSWORD, and REAQT_DB_ROOT_PASSWORD when they are empty or at their placeholder values, and asks for them in advanced mode (-a). If you write custom.config.yml by hand, generate each key and token with:
openssl rand -hex 32
Set the keys explicitly rather than leaving them empty. REAQT_SECRET_KEY in particular must stay the same for the life of the installation: provider credentials stored with one key cannot be decrypted with another, and any listener you run outside this installation must use the same key.
External database
Reaqt deploys its own MariaDB database by default. To use an existing MariaDB or MySQL server, set the connection variables. When REAQT_DB_HOST is anything other than ascender-reaqt-db, the installer does not deploy the database or its volume:
| Variable | Default | Description |
|---|---|---|
REAQT_DB_HOST | ascender-reaqt-db | Database host name, resolvable from the Reaqt pods |
REAQT_DB_PORT | 3306 | Database port |
REAQT_DB_NAME | reaqt | Database name |
REAQT_DB_USERNAME | ascender | Database user |
REAQT_DB_PASSWORD | None | Database user's password |
Host name and TLS
The listener has no database access. It reads its configuration and writes its registration, heartbeats, event logs, and metrics through the web application's API at <k8s_lb_protocol>://<REAQT_HOSTNAME>, so REAQT_HOSTNAME must resolve from inside the cluster as well as from clients. An /etc/hosts entry on the control machine is not enough.
With k8s_lb_protocol: https, the installer configures the listener to require HTTPS for these calls. With http, it allows plain HTTP, which is only appropriate on a trusted network. Reaqt uses the certificate at tls_crt_path and tls_key_path, so it must cover REAQT_HOSTNAME.
Log in
Open https://<REAQT_HOSTNAME> and log in as admin. On the first start, the administrator password is set to ASCENDER_ADMIN_PASSWORD. It is applied only when the Reaqt database is first initialized, so changing ASCENDER_ADMIN_PASSWORD later has no effect; change the password in Reaqt instead.
The installed listener registers itself and appears on the Listeners page as REAQT_LISTENER_NAME.
Activate the license
Go to Administration > Settings > License, select the signed .json license file from CIQ, and click Upload. See Reaqt license.
Next steps
Create providers, rule sets, and rules, and point your event sources at the listener. See Getting started with Reaqt.