Connector secrets

A connector uses secrets for the passwords, tokens and keys its connection needs. This page explains the vault that stores them, how a stored value behaves from then on, and what to do when the connector reports a missing secret.

Store a secret

  1. Open the connector and go to its Secrets section. On a custom connector's Connection step, click Manage Secrets to open the Secrets Vault.
  2. Click Add secret and enter a name and a value.
  3. Click Save in the vault. The name and the value are stored together; nothing is stored before you save.
  4. Click Copy reference next to the secret and paste the reference in place of the value in the configuration. The reference has the form {{secret:NAME}}. For a custom connector's configuration, see Configure a custom connector.

The connector then uses the stored value when it tests the connection and when it loads data.

Name a secret after the setting it fills: in a custom connector, the setting's full dotted path, such as auth_token or oauth_credentials.client_secret. Names run up to 200 characters and use letters, digits, underscores and dots, starting with a letter, a digit or an underscore. A value runs up to 8192 characters.

Vault actions

ActionWhat it does
Add secretAdds a name and a value. The secret is stored when you click Save.
ReplaceTypes a new value for a stored secret.
ClearRemoves a secret after you confirm; the confirmation reads "Clear this secret?" and "This cannot be undone.". It is disabled while the configuration still refers to the secret.
Copy referenceCopies the reference ({{secret:NAME}}) that the configuration uses to point at the secret.
Move to SecretsAppears when the configuration holds a value inline: "{path} holds an inline value. Move it to the Secrets panel and reference it as {{secret:name}}?". It stores the value and replaces it with a reference. The configuration change stays unsaved until you save it.

A value that also appears literally in the configuration must be removed there before it can be stored as a secret, and a secret set that is too large is refused before saving.

What a saved value shows

Change or remove a secret

When a secret is missing or refused

Secrets in a connector chat

Who can manage secrets

Duplicates

Questions, answered

Why can nobody, including me, read a saved value again?

Values are write-only. A stored value reads back as a mask (------------), and no screen or chat result shows the value itself. Keep your own copy when you store it; to change it, use Replace.

How do I replace a stored secret?

Open the connector's Secrets section, click Replace beside the secret, type the new value and save. The connector uses the new value from then on. If the connection keeps a changeover window, the old value stays accepted until you stop it; see Webhook and RabbitMQ.

Why is Clear disabled on a secret?

Because the configuration still refers to the secret. Update the configuration to stop using the name, save, then click Clear.

What happens to secrets when I duplicate a connector?

The copy keeps the connection's stored password but none of the vault secrets, and its vault starts empty. Store the values again on the copy.

The connector agent asks me to store a secret. Where do I put it?

In the connector's Secrets section. On a custom connector, Manage Secrets opens the Secrets Vault; for the connector end to end, see Connect Anything (custom connector). Store the value there and send the next message; the chat waits until you do. The chat does not take the value itself.

I pasted a credential into the chat. Can anyone still read it there?

No. The value is moved into the vault, erased from the stored conversation, and replaced with a <redacted:NAME> marker. The marker is not the value and cannot be used as one.

A stored secret is reported as not bound to any setting. How do I fix it?

Rename it to the setting's own name, its dotted path such as auth_token; the value is kept, and you never need to store it again. Names use letters, digits, underscores and dots, up to 200 characters.

I can open the vault but cannot add or remove secrets. Why?

You have view-only access. Reading secret names needs a view permission; setting and deleting them needs Add/Modify Lake Objects. Ask your administrator to add it to your role. See Who can do what in the Lake.