Skip to content

Secrets

A secret is a named value, such as a password or an access key, that the Replicator Service keeps encrypted in its control database. In a source's or destination's connection string, you write $$name$$ instead of the value, and the service puts the value in when it connects.

When to use it

  • To keep passwords and keys out of connection strings, where anyone who can view a source or destination sees them.
  • To change a password in one place when several sources or destinations use it.

How it works

  • The value is encrypted (AES-256) and stored in the control database. The service never sends it back: the Data Replicator Manager shows only the name and comment.
  • When the service opens a connection to a source or destination, it replaces each $$name$$ in the connection string it builds (from the ODBC data source or driver, the user ID and the connection properties) with the secret's value. The name must match exactly, including case.
  • A reference to a secret that doesn't exist is left as it is, and the connection usually fails.
  • The Password field of a source or destination is always used as typed; it isn't searched for references.

Secrets are used in two places:

  • the Replicator Service's connections to sources and destinations (see Connection strings for where to write the reference);
  • the parameters of Apply extensions (streaming and data sink destinations), which Stelo Capture resolves. There the parameter value must be the reference alone ($$name$$), and the name isn't case-sensitive. See Destination properties: Apply extensions.

Create a secret

  1. On the Secrets tab of Service Settings, click New Secret.
  2. Enter a Name (letters, digits and underscores only) and the Value, and click OK.

Use the secret

In the source's or destination's connection properties (or a connector field), write $$name$$ where the value belongs, for example <property>=$$SALES_API_KEY$$, and save.

The Secrets tab

A secret's name can't be changed. Connections that refer to a removed secret fail until you change them.

Secret dialog

When you edit a secret, the Value is masked: leave it to keep the current value.

With Role Based Access Control on, creating, changing and deleting secrets needs the power role level (50) by default; listing them needs public (10).