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.


Creating a secret
Section titled “Creating a secret”From Secrets, a tab of Connections under Services:
-
Click New secret.


-
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 theirsecretCredentialIdfield. - 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.
- Name — how you will recognise it in pickers, e.g.
-
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.


-
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 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.
How nodes pick up secrets
Section titled “How nodes pick up secrets”Most node Instructions reference secrets by id, not by value:
Database / Select,Database / Execute,Database / Insert,Database / Upserttake asecretCredentialIdpointing 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
credentialfield onLlm / Agent,Llm / Chat, the Static model node,Rag / EmbedandRag / 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
credentialfield:Rest / Operation,OpenApi / Operationand 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, wherenameis 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.
Secrets or connections
Section titled “Secrets or connections”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.


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.
Rotating a secret
Section titled “Rotating a secret”-
Open the secret in Secrets.
-
Turn on Overwrite secret content and paste the new value.


-
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.


Deleting a secret
Section titled “Deleting a secret”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.


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.


What not to put here
Section titled “What not to put here”- 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.