Skip to content

Connections

A Connection is how a flow reaches a system outside Kiln, such as your loan management system, a vehicle data API, or a portal your operations team already signs in to. You set it up once and give it a name, and flows refer to it by that name rather than holding an address and a key of their own.

A Connection holds two kinds of value.

Config values are not secret. A base URL, a timeout, a flag, an account number. They live in the Connection document, you can read them on screen, and they are edited like any other field.

Secret references are not values. A reference names a secret; the secret’s value is never in the Connection, never on screen, and never sent to the browser. It is resolved backend only, at the moment of the call.

Authors work with the reference. Nobody working in the builder handles the credential itself.

There are two tiers, chosen per reference.

Tenant secrets are yours. They sit in your own scope, encrypted at rest, and are decrypted only for the call that needs them. They are managed under Settings, Secrets, separately from any Connection, because a secret is not owned by the Connection that uses it. One key can be attached to several Connections.

Platform secrets are shared across the platform, for services that are the same for every tenant.

If you are not sure which you want, you want a tenant secret.

Most APIs use one of these. You choose the method; Kiln performs it.

A static key on every request. A secret reference is injected as a header, the same header on every call.

Token exchange, for an API that swaps a long lived key for a short lived token. You give Kiln the token endpoint, whether the key travels as a header or as a body field, which reference holds it, and where in the response the token is. At run time Kiln mints the token and sends it as a Bearer on the actual call. The long lived key never reaches the system you are calling.

Session login, for an API that expects you to sign in and then send cookies back, which is common for internal portals. You give Kiln the login address and which references hold each field of the login, and it captures the session cookies and replays them on every call. If the API needs a page visited first to issue a cross-site request forgery (CSRF) token, there is a step for that, and Kiln sends the token back as required.

The captured session lives only for that run. A credential used to log in is never also sent as a header on the calls that follow.

Token exchange and session login both refuse a token or login address that is not https. There is no setting to allow cleartext.

A Connection has its own test, which sends a request you nominate, using this Connection’s real credentials, exactly as a flow would.

The path you test is always relative to the Connection’s own base address. Absolute addresses are refused, both when you save the test and when you run it, because a test carries live credentials and should only ever reach the system the Connection is for.

The token address and login address are fields on the Connection, and the Connection’s credentials are sent to them. Treat permission to edit a Connection as equivalent to holding its credentials, even though the values are never displayed.

Give Connection editing only to people you would trust with the credentials themselves, as you would for production access to any other system.

Rotating replaces a secret’s value in place. Any Connection referring to it picks up the new value on its next run, with no edit to the Connection.

There is no overlap period. The store holds one current value per name, so the moment you rotate, the old credential stops being used. Time it with whatever change the other system is making, rather than assuming the two can be valid at once.

Rotation cannot create a secret. Rotating a name that does not exist is refused, so rotation can be given to people who are not allowed to set up new integrations.

Removing a secret that is still in use is refused, and the refusal names the Connections that still use it.

The flow sees the Connection’s name and its config values. It does not receive the secret values, and it cannot be written to print them.

A credential is stored as a reference, never a value. It is resolved backend only at run time, and it never enters the Connection document, the flow’s payload, or the lifecycle or instance event log.

A Connection is outbound only. For a system calling into Kiln, use an App client.

A Connection is not restricted to particular flows. Any published flow in your tenant can use any Connection in your tenant, so limit each credential’s permissions in the system it reaches.