Secrets
A secret is a credential your tenant holds, such as an API key, password or token, that lets Kiln reach a system you already run. They live under Settings, Secrets, and Connections refer to them by name.
Secrets are kept separate from the Connections that use them. The same key can be attached to several Connections, and replacing it is a single change.
Values cannot be read back
Section titled “Values cannot be read back”A secret has a name you choose and a value you set once. No screen and no API in Kiln will give the value back to you. Not the list, not the detail, not an export. The list tells you what exists, when it was set and by whom. It does not tell you what it is.
This is by design: the value only needs to travel in one direction, in from you and out to the system it authenticates against.
Keep the original credential in your organisation’s own credential store. Kiln holds a copy for its own use, not a copy you can look up later.
A secret belongs to one scope and never leaves it. Your tenant’s secrets are yours, and they are encrypted at rest with the scope bound into the encryption itself. A value written in one scope cannot be decrypted from another.
Setting, replacing and removing
Section titled “Setting, replacing and removing”These are three separate actions.
Creating a secret establishes a name that did not exist. If the name is already taken, it is refused rather than overwritten, so you cannot silently replace a working credential by re-adding it.
Rotating replaces the value behind an existing name. Every Connection that refers to that name picks up the new value at its next run, with no edit to any Connection. Rotation cannot bring a name into existence: if it does not exist, rotation is refused rather than treated as a create.
Rotation has no overlap period. Each name holds one current value, so the old credential stops being used as soon as you rotate. Coordinate the rotation with the change in the other system.
Removing destroys the value outright. It is refused while any Connection still refers to the name, and the refusal lists those Connections.
What removal leaves behind
Section titled “What removal leaves behind”Removal cannot be undone, so it leaves a record of the name, when it was removed and who removed it. The record holds no value, encrypted or otherwise.
The record remains if the name is reused, so a removal is always visible in the history.
How a flow uses one
Section titled “How a flow uses one”Not directly. A flow never names a secret and never receives its value.
A Connection refers to a secret by name, a flow refers to the Connection, and the value is resolved at the moment of the call.
Who should be able to edit Connections
Section titled “Who should be able to edit Connections”The address a credential is sent to when authenticating is a field on the Connection. Treat permission to edit a Connection as equivalent to holding its credentials, and grant it accordingly. See Connections.
What this is not for
Section titled “What this is not for”Secrets are for credentials only, not personal information or other data. Values cannot be read back, so the store is unsuitable for anything you need to read.
Secrets do not give another system access to Kiln. For that, use an App client.