Skip to main content
Version: 0.1

Gateway administration

This section is for the people who run a gateway: administrators, and the engineers who set up what runs on it. It describes the administration pages of the dashboard, the role each one needs, and the API behind each.

The Gateway area​

The dashboard's rail is grouped by domain. Administration lives in the Gateway area at its foot, which only administrators see, plus a few admin-only entries in other areas:

AreaEntryPage
GatewayDiagnosticsLogs and diagnostics
GatewayClientsClients
Gateway › SystemGateway settings, ProjectSettings
Gateway › SystemModulesModules
Gateway › SystemModesModes
Gateway › SystemStorageDatabases and storage
Gateway › SystemBackup & restoreBackup and restore
Gateway › SecurityUsersUsers and roles
Gateway › SecuritySign-in providersIdentity providers
Gateway › SecurityAPI keysAPI keys
Gateway › SecurityAuditAudit log
GatewayLogsLogs and diagnostics
ConnectionsDatabasesDatabases and storage
AlarmsPipelinesAlarm pipelines
AutomationEvent streamsEvent streams
AutomationScript consoleScript console
Tags › HistoryReportsReports
SettingsAppearance, Sidebar, LogoSettings

The dashboard hides what a role cannot use, but only as a courtesy: every API route names the role it needs, and a route that names none is closed.

Who may do what​

TaskRole
Read tags, alarms, screens, modes and reports; change own preferencesviewer
Write to tags, acknowledge alarmsoperator
Configure tags, types, screens, connections and reports; start, stop and read the logs of modulesengineer
Manage users, API keys and sign-in providers; read the audit log and the gateway log; databases and storage; event streams and alarm pipelines; modes; backup and restore; the project directory; install and remove modules; the script consoleadmin

An API key can hold any role up to engineer. Administering the gateway stays with people signed in with a session. Users and roles has the full model, and Security the reasoning.

What makes the gateway call out​

Three features make the gateway send requests to other systems, so all three are admin only: event streams (tag changes to a webhook), alarm pipelines (alarm changes to a webhook) and database connections (records to PostgreSQL, SQL Server or MySQL). Identity providers make it read from one, the OpenID Connect provider, at sign-in.

What is stored where​

  • The gateway database, DATA_DIR/scadex.db: everything configured in the dashboard, the audit log, alarm history, module state. Backup and restore copies it.
  • DATA_DIR/keys: the keys that encrypt passwords and secrets in the database. Back them up with it.
  • Each module's own data (the historian's history, the cron module's runs) and its log files under DATA_DIR/logs/modules.
  • Memory only, gone at restart: the gateway log, event stream retries and delivery log, client statistics, the @gateway diagnostic tags other than @gateway.performance.

Pages in this section​

  1. Users and roles
  2. API keys
  3. Identity providers
  4. Databases and storage
  5. Audit log
  6. Event streams
  7. Alarm pipelines
  8. Modes
  9. Reports
  10. Clients
  11. Logs and diagnostics
  12. Backup and restore
  13. Settings

Configuration keys such as DATA_DIR, AUTH_BASE_URL and AUTH_TRUSTED_ORIGINS are in Configuration. The REST reference is under API.