Configure Token Authentication

You can configure customer-specific API keys to authenticate third-party applications with RS Gateway.

Procedure

Configure the rsgateway_users.yaml file.
apiKey: "sharedSecret, role1, role2, roleN"

where:

  • sharedSecret — The third-party application shared secret.
  • role(1, 2, N) — A comma-separated list of RS Gateway roles.
For example, define a ConfigMap in the Helm values file:
rsgateway:
  configuration:
    container:
      configmap:
        rsgateway_users.yaml: |-
          apiKey: "b4abd7b2-0b25-4c8d-b68f-2766d2ae6b5f=39993679-9694-4406-8af3-8539236e3a0e,MTX_ROLE_RSG_CREATE,MTX_ROLE_RSG_UPDATE,MTX_ROLE_RSG_DELETE"

Results

The files are dynamically created and mounted to /sync/conf, which is synchronized with /opt/mtx/conf in the component container at start-up, using rsync. RS Gateway should be restarted to pick up the changes.

What to do next

Configure API keys for the other MATRIXX web apps. The configuration files are:
Table 1. API Key Configuration
Component File
MATRIXX Backoffice Customer Tool matrixxbct.yaml
Notification Server mtx_notifier_camel.yaml
Event Stream Server mtx_event_streamer.yaml