Skip to content
Docs

Secrets management

Secrets is where every piece of sensitive material belongs — API keys, database credentials, signing tokens, TLS keys. Secrets are encrypted at rest and masked everywhere in the UI: logs, run details, diff views, exports. Once written, a value is never shown in the app again.

The Secrets list on its Shared tab: each secret with who manages it, its description, tags and when it was last rotated, and an Awaiting a value tab beside it
The Secrets list on its Shared tab: each secret with who manages it, its description, tags and when it was last rotated, and an Awaiting a value tab beside it

From Secrets, a tab of Connections under Services:

  1. Click New secret.

    The About step of New secret: Name, Type, Tags, Rotate every (days) and Description, then Next
    The About step of New secret: Name, Type, Tags, Rotate every (days) and Description, then Next
  2. Fill in:

    • Name — how you will recognise it in pickers, e.g. STRIPE_API_KEY.
    • Type — one of:
      • Any text — single-string credentials (most API keys fit here).
      • Key Value — structured maps.
      • Username/password — for basic auth.
      • Database Credentials — the type that Database / * nodes expect on their secretCredentialId field.
      • Bucket Credentials (S3) — for object storage.
      • SSH key and SSL/TLS certificate — for connectors that need private keys or certificates.
    • Tags — free-form labels for filtering.
    • Rotate every (days) — optional. Sets a rotation reminder; the secret is flagged in the list once it is overdue. It is a reminder, not an expiry — nothing stops working when the date passes.
    • Description — text for your teammates.
  3. Click Next. The Content step asks for the value in the fields its type has, for example Username and Password. Publicus does not show the value again once you create the secret: its page lets you replace the value, not read it.

    The Content step for a Username/password secret: Username and Password, then Create
    The Content step for a Username/password secret: Username and Password, then Create
  4. Click Create.

As you paste, Publicus may show a hint under the field — that the value has stray whitespace around it, that it looks like a key for a different provider, or that it looks like a placeholder rather than a real credential. These are hints, never rules: the form does not know which provider the secret is for, so it names what it sees and leaves the judgement to you. Save anyway if the hint is wrong for your case.

The Content step with a pasted value and the hint under it: This looks like a Slack bot key
The Content step with a pasted value and the hint under it: This looks like a Slack bot key

The Build with AI assistant can also create a secret for you mid-build: it opens an inline modal where you paste the value directly, so the assistant never sees it.

Most node Instructions reference secrets by id, not by value:

  • Database / Select, Database / Execute, Database / Insert, Database / Upsert take a secretCredentialId pointing at a secret of type Database credentials. This one is secret-only by design: a database credential is a host, port, user and password, not a provider you sign in to.
  • AI nodes choose their provider credential from a picker rather than a pasted key — the credential field on Llm / Agent, Llm / Chat, the Static model node, Rag / Embed and Rag / VectorStore / Query. The node stores a reference and resolves the value at run time. Leave it empty only when the provider’s key is already configured on the server; an expression can still be supplied if you need a dynamic key.
  • Every node that calls an outside service takes that same credential field: Rest / Operation, OpenApi / Operation and the operation packs, Wsdl / Operation, and the channel nodes. See Secrets or connections for which kind to pick.
  • Custom flows can template {{ $secrets->name }} into any Instructions field that supports expressions, where name is the secret’s slug. The runtime substitutes the value after form resolution but before the node executes, and the rendered value is masked in the log view.

Most credential pickers accept either a secret or a connection, and the stored value says which: secret:<id> or connection:<id>. You pick from one list and Publicus records the right kind; a plain id is still read as a secret, so nothing you built before this needs changing.

A node's Credential picker open, listing an Airtable connection under Connections and an Airtable personal access token under Secrets
A node's Credential picker open, listing an Airtable connection under Connections and an Airtable personal access token under Secrets

Which to reach for:

  • A connection — whenever the service is in the catalog. It refreshes its own credential before expiry, survives a provider rotation without a flow edit, and is revoked in one place.
  • A secret — for anything else: a plain API key for a service with no catalog entry, a database password, a signing key, a certificate.

A secret’s value is never re-displayed after it is written, whichever way it is referenced.

Because the runtime only sees the decrypted value in memory during the execute step, the masked UI is authoritative for everything you look at after the fact.

  1. Open the secret in Secrets.

  2. Turn on Overwrite secret content and paste the new value.

    Overwrite secret content turned on with its warning, an empty Secret value field, and Used by listing the three flow nodes that reference the secret
    Overwrite secret content turned on with its warning, an empty Secret value field, and Used by listing the three flow nodes that reference the secret
  3. Save.

Flows that reference it continue to resolve against the secret’s id, so no flow edits are required. Runs in progress that already dereferenced the old value finish with the old value; new activities pick up the rotated one.

The list shows when each value was last rotated, and flags any secret past its Rotate every (days) interval. Nothing is blocked when a secret is overdue — Publicus cannot rotate a third-party credential for you, and refusing to resolve an old one would only take a working flow down.

The Secrets list in its Shared view: each secret's Managed by, description, tags and Rotated column, one never rotated and one awaiting a value
The Secrets list in its Shared view: each secret's Managed by, description, tags and Rotated column, one never rotated and one awaiting a value

Before a secret is deleted you are shown everywhere it is referenced, so you can see which flows will stop working. Deleting is not blocked by being in use — sometimes that is exactly what you mean to do — but it is never a surprise.

The Delete secret confirmation naming the three flow nodes that still use the secret and warning that deleting it will break them
The Delete secret confirmation naming the three flow nodes that still use the secret and warning that deleting it will break them

Some secrets cannot be deleted here at all. A secret managed by another resource, such as a connection’s stored credential or a sign-in app’s secret, is provisioned and rotated by its owner, and deleting it alone would leave that owner pointing at nothing. Delete the connection or the sign-in app instead, and the secret goes with it.

A managed secret owned by a connection: its value locked and rotated by its owner, renaming and retagging still allowed, and Used by naming the Acme web shop connection
A managed secret owned by a connection: its value locked and rotated by its owner, renaming and retagging still allowed, and Used by naming the Acme web shop connection
  • Data — even if sensitive — that needs to be read back in the UI. Once written, the value is one-way. If you need to display it, store it in the Key-Value Store or Table Store instead.
  • Configuration values that are not sensitive. There is no benefit to the masking, and it makes debugging harder.