Manage secrets
A secret is a stored credential — an API key, an OAuth connection, a database login, or a client-credentials pair — owned by a feature. Workflows, connections, and MCP servers use secrets to reach external systems. A secret’s sensitive values are never displayed anywhere in the product: not to you, not to other members, and not to the agent.
Create a secret
Section titled “Create a secret”There is no form for adding a secret. You create one in conversation:
- Open an exploration and tell Ronja what you want to connect, such as “connect our Postgres” or “I have an API key for our billing tool”.
- Fill in the credentials card that opens above the message box. Sensitive fields show a 🔒 sensitive badge and a password-style input. Values Ronja pre-filled from the conversation carry a “filled by agent — verify” badge; sensitive values are never pre-filled.
- Click Save credentials, and Ronja carries on where she paused. Skip for now leaves the secret pending while she carries on without it; you can finish it later on the secret’s page.
For a database login, the credentials card keeps optional SSH settings under Advanced. On the secret’s own page, defaults appear beside the fields: leave a field blank to use its default. SSH settings are under More settings there. Either way, when you save, Ronja checks the database’s required fields and tries the login, and the card or the page says whether it connected.
For an OAuth service, Ronja shows a Sign in with {Provider} card instead. You approve access in a popup, and no credential passes through the chat.
A script or an AI assistant working from your terminal can also start a secret without its value and send you to the secret’s page to type it, so the value never passes through it (Use the Ronja CLI); if you weren’t expecting such a request, close the page without entering anything.
Choose what a connection may do
Section titled “Choose what a connection may do”Only Fortnox lets you pick a connection’s permissions; other services request a fixed set and show the sign-in button on its own. For Fortnox, the card shows a Permissions to request list above the sign-in button, one checkbox per permission. On a first connection every permission starts ticked, unless Ronja asked for particular ones for the task at hand: then only those and Company Information are. On an existing connection, what it already holds starts ticked, plus anything Ronja asked for.
- Tick or untick anything you want.
- Sign in. The provider is asked for exactly the permissions left ticked.
Company Information is always on and can’t be unticked: Ronja uses it to tell your Fortnox companies apart. Every Fortnox permission also allows changes, and the card says so.
What the other Fortnox permissions cover:
- Supplier Invoices and Cost Centers: those registers.
- Assets: Fortnox’s asset register. Untick it if your company doesn’t have one; if Fortnox refuses the sign-in over a licence, Ronja says which permissions to untick.
- Archive and File Connections, together: the files attached to supplier invoices and vouchers, such as receipt PDFs.
- Inbox: documents still waiting in Fortnox’s inbox.
Fortnox adds a permission only through a new sign-in, so when you connect for something like monthly reporting, tick everything that work will need in one go. An existing connection gets a new permission by signing in again with it ticked, from Re-authorize on the connected card or from the card Ronja shows when she asks for it.
If you are narrowing an existing connection, the card warns you first: “Workflows, automations and agents that use this connection lose this permission too.”
See and change what a connection holds
Section titled “See and change what a connection holds”Expand the connected card to see Permissions: and the list the provider actually granted. If you declined something on the provider’s own consent screen, it shows here, and Ronja tells you.
To change the permissions, click Re-authorize on the connected card. The picker reopens with the current permissions ticked, and signing in replaces the grant with what you leave ticked. If Ronja needs a permission the connection lacks, she asks for it by name and pre-ticks it.
Send someone a link to connect Fortnox or HubSpot
Section titled “Send someone a link to connect Fortnox or HubSpot”A Fortnox or HubSpot connection belongs to a company account, so the person who signs in doesn’t have to be the person setting it up. You can prepare the connection and send a link to whoever has the company’s login. They don’t need a Ronja account.
From a terminal signed in with ronja login, prepare it in the feature that will use it:
ronja secret connect fortnox --link --feature <feature ID> --company 556677-8899The command prints the link, shows it only this once, and doesn’t wait for anyone to use it. Send it to the person who will sign in. They see who is asking, your organization, the company if you named one or the connection already holds one, and the permissions, with one Continue to Fortnox button. Once they have signed in, the connection is yours, in the feature you named. To choose a Fortnox connection’s permissions, add --scope for each one.
Who can prepare a link: whoever can add a connection to that feature: its owner on a private feature, an Admin or a maintainer of it on a shared one, and a member with Full access in a project’s feature. Read-only members can’t.
Name the company. Pass --company with the Fortnox organization number, with or without its hyphen, or the HubSpot Hub ID. If you leave it out, whichever company signs in is connected, and every workflow, agent and app using the connection then reads and writes that company’s data. You hold one working connection per service, so a link for another company has to be prepared by someone who doesn’t already have one.
If someone signs in to a company other than the one you named, Ronja refuses it and saves nothing, and the link keeps working. On Fortnox, a company can only have one active sign-in, so that attempt can still have ended any other Ronja connection the company already had; the message says so, and that connection then needs reconnecting. The same goes for a sign-in to a different company from the one a connection already holds, even if you named none. If the company you name already has a working connection in your organization, Ronja refuses to prepare the link and tells you who holds it, because signing in again would end it. On Fortnox the same refusal applies to a connection that already holds a company even if you named none, since it can only ever connect that company again.
To send a new link, run the command again with --replace. That ends the old link. Without --replace, Ronja refuses while the old link is still valid, so running the command twice can’t cancel a link someone is about to use.
To see how it went, run ronja api /api/v2/secret/<secret ID> (the command prints this for you). status is ready once it’s connected. Until the link is used or replaced, signInLink shows when it expires, or expired, and, under lastRefusal, why a sign-in was last refused for its company. Anyone who can read the connection’s details can see this.
A connection that needs reconnecting can be prepared the same way. If it is a colleague’s connection and you are allowed to reconnect it, name its company so Ronja finds it; once someone signs in, it’s yours.
A personal login, such as Google or Microsoft, can’t be sent this way: the person it belongs to connects it themselves.
Find a secret
Section titled “Find a secret”Each feature lists its secrets in the feature hub. A secret’s detail page shows:
- a type chip: API Key, OAuth, Client Credentials, Public Endpoint, or database;
- Personal or Shared, and Live or Archived;
- a Configuration card with Type, Dialect (if set), Credentials (“Stored” / “Not set”), Allowed URLs, the only hosts the secret may be used against, and Agent-visible fields, the only fields the agent may reference by name.
You never see a value. Saved fields show only as “● ● ● ● saved”; only non-sensitive fields such as host, port, and username appear in plain text.
Review integrations across the organization
Section titled “Review integrations across the organization”Admins can open Integrations in the admin sidebar to see credentials grouped by the external system they connect to, colleagues’ private credentials included. Each group shows its health and its credentials, with their owner and Private or Organization scope.
Click a credential to open its detail page, whose header links to the feature it lives in; for a colleague’s private credential, that is how you reach their feature, for example to share it with the organization. No screen, list or export shows a secret’s value; what Ronja’s chat finds for an admin is in What an Admin sees.
A managed database’s logins at different levels are grouped under the database’s name, each row naming its level, such as read login. Credentials whose external identity hasn’t been established, because a check is pending or couldn’t establish it, are listed under Unidentified; that alone doesn’t make them unusable.
Health and re-authorization
Section titled “Health and re-authorization”The Health & identity card on the detail page shows one state:
| State | Meaning |
|---|---|
| Healthy, Not checked, Check failed, Duplicate credentials, Connected elsewhere, Credentials conflict | Advisory: a working credential is never blocked by them. Recheck now runs the check again where one applies. |
| Reauth required | The stored sign-in couldn’t be renewed, so Ronja refuses to use the secret until it is restored. |
On a secret that logs in, the button reads Refresh status: it shows the result of the last login and never logs in.
To restore a Reauth required secret:
- For a service Ronja signs you in to, and for a secret that uses your own OAuth app once it has been signed in from Ronja, click Reconnect. A mailbox’s connection is reconnected with Reconnect on the Mailboxes page.
- For a secret that uses your own OAuth app and was signed in elsewhere, ask Ronja in chat to sign the same secret in again with your app’s client ID and secret, or to save a fresh token.
When you can’t fix it yourself, the card says who can:
- A personal sign-in, such as a Google or Microsoft login, is reconnected only by the person who made it; anyone else’s sign-in would connect their own account instead. If they have left the organization, create a new sign-in and switch what uses this one to it.
- A Fortnox or HubSpot sign-in belongs to a company account. In a shared feature, an Admin or a maintainer of its feature can also reconnect it, and becomes its owner, once Ronja has identified the company or account it belongs to (when someone signs in, or at its next renewal). Signing in to a different company or account is refused and the old sign-in is left as it was.
Rotate tokens in the Actions rail runs an own-app sign-in again, and is offered only to whoever may reconnect it.
A secret that carries the client ID of one of Ronja’s own apps, without being one of Ronja’s connections, can’t renew or sign in, and its health check says so. Ask Ronja in chat to update the same secret with your own app’s client ID and secret.
SharePoint keys
Section titled “SharePoint keys”A SharePoint key is the secret an Admin makes with Create SharePoint key on a SharePoint connection Ronja support has approved; see Connect a data source for where the button is. Workflows use it to read files from the SharePoint sites your Microsoft organization shared with Ronja. Nobody can write or edit its credentials, and it has no Rotate tokens or Reconnect: Ronja renews its access herself. When that fails, its Health & identity card shows Check failed with the reason, and the key recovers by itself once the cause is fixed.
Secrets that log in
Section titled “Secrets that log in”Some systems, such as Monitor G5, have no API key: you log in with a username and password and get a session back. Monitor also allows one live session per user, so every new login ends the others.
For a system like that, ask Ronja to connect it (“connect our Monitor ERP”). She stores the username and password in one secret, with the password marked sensitive, and writes a small workflow that only logs in: the secret’s login workflow. From then on:
- Ronja logs in once for everyone. However many workflows, chats and apps need the system at once, they share one session.
- Chats and apps get a new session by themselves; a workflow’s code asks for one. A refused chat or app request is sent once more with a new session; in an app’s server function, the refused call fails and the next call gets the new session.
- The password reaches only the login workflow. Other workflows and chats get the session and the fields not marked sensitive. A workflow that still reads the password stops with an error naming the login workflow.
- Nobody runs the login workflow by hand, and its run history records only whether each login worked. It can’t be deleted or archived while the secret logs in with it: attach a different login workflow, or delete the secret.
- Saving a new password logs in straight away, so Ronja can tell you whether it works.
- A failed login waits before trying again, from 30 seconds doubling up to 15 minutes, which makes a lockout at the vendor less likely.
- A system that keeps refusing new sessions isn’t logged in to again and again. After three sessions refused, each within an hour of the last and within two minutes of its login, Ronja waits before logging in again, and the secret’s health says it “keeps refusing new sessions; check the user’s permissions”. The user Ronja logs in as usually lacks a permission. Log in now, or saving a changed username or password, ends the wait.
Give Ronja a user of her own in the system. If another program logs in as the same user, Ronja’s session ends. In chats and apps Ronja doesn’t log in again on that refusal: a chat’s answer says so, and an app gets the system’s refusal. A workflow that asks for a new session does log in again, ending the other program’s session. A run doesn’t replace a session it got this way less than 15 minutes ago, and when runs keep refusing sessions other runs got less than 15 minutes ago, Ronja waits before logging in again and emails the admins. Log in now ends both the wait and the 15-minute limit.
The Login section
Section titled “The Login section”The detail page of a secret that logs in has a Login section below Health & identity, linking the login workflow and showing when Ronja last logged in:
| Field | Shows |
|---|---|
| Status | Logged in, Not logged in yet, Last login failed, Logging in, No session; Ronja logs in on next use (the session ended, or a save or an archive dropped it), or Could not be read (Ronja couldn’t look up the last login just then). |
| Last login run | View run opens that login’s run. |
| Session ends | When the session runs out, Until refused for a system whose sessions last until it refuses them, or No session when none is stored. |
Log in now logs in straight away, even when a session is stored, and ends the wait after a failed login. Anyone who may edit the secret can use it: its owner, the owner of the private feature it is in, an Admin, a maintainer of its feature, or in a project’s feature a member with Full access, its owner only if they still are one.
When a login fails, only someone who may also archive or delete the login workflow sees the full error and what the workflow printed, once and never stored, because that output can show the password; anyone else sees a one-line reason. On a system like Monitor every login ends the user’s other sessions, so press it after a failure or a change, not just to check.
When a secret keeps failing
Section titled “When a secret keeps failing”When a secret’s login has failed three times in a row, its system has refused three new sessions, each within an hour of the last, or a connection’s sign-in can no longer be renewed, a Secret needs attention notification goes out once, and at most once a day for the same secret. It says what stopped, who can fix it and what to do: save the password again, check the user’s permissions, save a new client secret, or sign in again, and links the secret’s page.
Your admins are emailed unless someone chooses other recipients, or turns it off, in the Connections & bridges group on Notification routing. The secret’s owner is told too while they are a member: under Notifications, and by email while the notification is on. A secret in a private feature isn’t named in the admins’ message, which links to the secret instead. A mailbox’s sign-in is included, told to admins only, and links the Mailboxes page.
Update or rotate credentials
Section titled “Update or rotate credentials”To replace the value of an API key or a database login, open the secret’s page. Its Value section says the value is stored, when it last changed, and where Ronja sends it.
- Click Enter a new value. The form shows the secret’s fields, empty, and names the sites the value may be sent to; for a database login, it names the host Ronja connects to now.
- Type only into the fields you want to change; a field you leave empty keeps its current value. The value you replace can’t be recovered.
- Click Save.
Ronja tries the new value straight away, and the section says what she found: that it works, that the service refused it and why, that she couldn’t check it, or that she hasn’t checked it yet, in which case Health & identity shows the result once she has. The old value’s check result is cleared when you save, so nothing reports it for the new value.
Its owner, the owner of the private feature it is in, an Admin, a maintainer of its feature, or in a project’s feature a member with Full access, its owner only if they still are one, can enter a new value; anyone else sees who can change it instead. A Ronja API credential can’t be changed this way: create a new one. Nor can a managed database’s login: ask Ronja for a new login at the same level, which replaces its password in place (Managed databases). The section says so.
A script or an AI assistant that reads the secret through Ronja’s API gets a link to the same form, so the new value never passes through it. The link opens a page with only the form; after you save, it says what Ronja found and that you can close the tab. If you weren’t expecting such a link, close the page without entering anything.
From a terminal, ronja secret new-value <secret ID> opens that form in your browser, waits until you save, and prints what Ronja found; the value never passes through the terminal.
In a chat, ask Ronja to replace a secret’s value. In Build mode she opens a card with its fields above the message box, and nothing else about the secret changes; once you save, she continues with what she found when she tried the new value. In any other chat she gives you the link to the form, or tells you why you can’t change it.
When an OAuth secret’s authorization expires, the chat card shows “{Service} authorization expired”: click Re-authorize with {Provider}. For an OAuth secret that uses your own OAuth app, ask Ronja to save a fresh token on the same card, which restores an expired secret whose sign-in doesn’t renew itself; if it needs re-authorization again the next time it is used, run the service’s sign-in with Rotate tokens on the secret’s detail page.
Scope: Personal vs Shared
Section titled “Scope: Personal vs Shared”A secret inherits the scope of the feature that owns it: Personal in a private feature, Shared in an organization-scoped one. To share a secret, share its feature; see Share and promote. For a secret in My Private Feature, which can never be shared, move it into a feature you share instead.
Archive or delete
Section titled “Archive or delete”Archive on the detail page hides the secret from the agent: Ronja doesn’t find or use it in new work. Unarchive reverses it.