Account Switcher for WebCentral
Install Account Switcher on Linux
Verify the tarball, install the systemd service, configure /etc/webcentral-switcher and publish the two hostnames through nginx.
Last updated
This guide installs Account Switcher for WebCentral on a Linux server with systemd. Before you start, ask your DBA to complete the SQL steps in the admin guide. You also need the licence file account-switcher.ismlic and the ISM licence public key, both supplied by ISM.
1. Check and unpack
Download webcentral-switcher-<version>.tar.gz and SHA256SUMS from the release into one folder.
sha256sum -c --ignore-missing SHA256SUMS
tar xzf webcentral-switcher-<version>.tar.gz
cd webcentral-switcher-<version>
2. Install the service
sudo ./packaging/install.sh install
The installer puts the program in /opt/webcentral-switcher-<version> and points the /opt/webcentral-switcher link at it. It installs the webcentral-switcher.service systemd unit, which runs as the webcentral-switcher user, and creates the state folder /var/lib/webcentral-switcher. It never creates or overwrites configuration. Add --dry-run to see what it would do.
3. Configuration
Copy config.example.json to /etc/webcentral-switcher/config.json and edit it:
| Key | Purpose |
|---|---|
listen | Local address, for example 127.0.0.1:8443 |
tls_cert_file, tls_key_file | Server certificate for the gateway connection |
client_ca_file, proxy_cert_sha256 | Gateway client certificate CA and pinned SHA-256 |
admin_origin, impersonation_origin | The two public hostnames; they must differ |
admin_group | Group that may use the switcher at all |
project_id | The WebCentral project, for example HQ |
webcentral_url | Private WebCentral address |
username_header, project_header | WebCentral request-header sign-in names |
ism.account-switcher.licence.dir | Folder holding account-switcher.ismlic |
license_public_key_file, license_customer | Licence verification key and customer binding |
policy_file | Role allowlist, for example /var/lib/webcentral-switcher/policy.json |
kill_switch_file | For example /etc/webcentral-switcher/KILL-SWITCHING |
logout_custody_file, logout_cleanup_grace_minutes | Upstream logout tracking |
max_sessions_per_actor | Concurrent sessions per administrator |
Put the SQL connection string for the switcher_service login in /etc/webcentral-switcher/sql.env as SWITCHER_SQLSERVER_DSN=..., with mode 0600; the systemd unit reads it. Account Switcher always validates the SQL Server TLS certificate. If SQL Server uses a certificate from a private CA, add that CA to the system trust store.
Check, then start:
/opt/webcentral-switcher/bin/check-setup -switcher-config /etc/webcentral-switcher/config.json -proxy-client-cert <gateway-cert.pem>
/opt/webcentral-switcher/bin/check-license -license /etc/webcentral-switcher/account-switcher.ismlic -public-key /etc/webcentral-switcher/ism-license-public.pem
sudo systemctl enable --now webcentral-switcher
sudo ./packaging/install.sh status
Licence: the service refuses to start if the licence is missing, unreadable, altered, expired, for another product or for another customer. It logs a clear message and exits with an error; see journalctl -u webcentral-switcher.
The health check (install.sh status --url https://admin.switcher.example.invalid, using switcher-health) needs the admin hostname to resolve, so run it after the gateway and DNS exist (step 4).
4. Publish through nginx
Publish two HTTPS hostnames behind your authenticated gateway. Start from packaging/nginx.oauth2-proxy.example.conf (OIDC through oauth2-proxy) or packaging/nginx.example.conf. The gateway must remove browser identity headers, send exactly one X-Switcher-Actor, X-Switcher-Groups and X-Switcher-Project, and connect with the client certificate pinned in proxy_cert_sha256. Never expose the service port or WebCentral’s private port directly.
Kill switch, upgrade and uninstall
- Stop switching now:
sudo touch /etc/webcentral-switcher/KILL-SWITCHING. Remove the file to resume. - Upgrade: back up the WebCentral database (including
switcher.audit), take the switcher out of gateway routing, then runsudo ./packaging/install.sh installfrom the newer package. To roll back, point/opt/webcentral-switcherat the previous version and restart. Never restore the whole database to undo one role change. - Uninstall:
sudo ./packaging/install.sh uninstall./etc/webcentral-switcher, the state folder and all SQL objects, includingswitcher.audit, are kept.
Done When
- sha256sum -c reports OK for the tarball.
- systemctl status webcentral-switcher shows the service active.
- Both hostnames are served only through your authenticated gateway.