Skip to main content

Secrets

Secrets are additional static information required by your connector, which are then sent to your connector through the X-Unito-Secrets header (JSON value in Base64 format).

Those secrets are defined using the secrets property of your configuration and must be encrypted using the encrypt command.

{
"secrets": {
"foo": "unito-secret-v1://U2FsdGVkX1+meshOcuCZKRAnU+6J3SIbfnKkKYm6Au9UVDl8+Fs4ARqSWD9lhyfl",
"bar": "unito-secret-v1://U2FsdGVkX1/eSVoyEf32Mxs7evWOMmRgk6s1ylp2n+3zCdVAaEgq6EZfsr+3gEHB"
}
}

In the example above, your connector would receive in the X-Unito-Secrets header:

{
"foo": "foo-value",
"bar": "bar-value"
}
warning

To use this feature with the dev and test commands, you must deploy your integration once with the publish command.