Skip to main content

Security Checklist

Review this list before you put a Diyalog installation into production.

Secrets#

  • Set internalServicesHttpApiToken. The internal service API (port 4861) accepts this token. If it is empty, the server falls back to a built-in default token. Use a long random value and give the same value to the services that call the internal API (answer-suggestion-api secrets.webhookSecret).
  • Keep serverSecret and the server keys safe. They are generated once by diyalog-keygenerator. Changing serverSecret later breaks existing data. Store both in your secret store, not in Git.
  • Set every password. Do not rely on default database, SMTP or TURN credentials.
  • Use a secret store where possible: secretsProvider.type: conjur fills the Kubernetes Secrets from CyberArk Conjur instead of your values file.
  • Rotate API keys of client apps (apiAuthorisation.*.apiKey) and integration tokens if they leak.

Network#

PortRecommendation
4861 (internal API)Never expose. Keep networkPolicy.enabled: true so only distributed-workers and answer-suggestion-api pods can reach it.
8558 (Akka management)Expose only on an internal network, if at all.
25520 (Akka remoting)Cluster-internal only.
4858 (WebSocket)For clients outside your network, publish it through diyalog-proxy in the DMZ instead of exposing the server directly.
4859 (HTTP API)Expose only to the systems and clients that need it. The Web APIs are HMAC-signed, permission-checked and audit-logged, but they should still stay inside your network.
  • Serve all public hosts over TLS (ingress.tlsSecretName, proxy ingress.tlsSecretName, coturn certificate).
  • Add your internal root CAs with cacerts so the server can verify TLS towards your own services.

Access#

  • Give admin privileges only to the users who need them. Administrative actions are recorded in the audit log.
  • Use isInternalClient: true only for staff applications.
  • Limit each client app's authStrategy to the login methods it really uses.

Data protection#

  • Turn on DLP (data loss prevention) rules if your policies require scanning shared files and messages.
  • Prefer S3-compatible storage with encryption at rest for files and screen recordings.