Give a service a secret file
Some apps need a file on disk, not just a setting: an OAuth client file, a mail client's config with a password in it. Add such a file on the service page. You need no terminal, no docker cp and no access to the server, so this works for hosting customers too.
Never paste a credential file into a chat with an AI agent. The agent only needs to know where the file is, never what is in it.
What the panel does with the file
- It keeps the file in the panel's vault (OpenBao), in the namespace of the service's owner. It is never stored as plain text in the panel database.
- It writes the file into the service's own storage (one of its volumes), owned by the app's user, readable by nobody else (mode
0600). - Each time the service is deployed again, the panel writes the file again from the vault, so a redeploy onto new storage keeps it.
- It never shows the content again. The service page lists the name, the path, the size and the start of the file's SHA-256, so you can tell which version is in place.
- The audit log records who added, replaced or removed which file, with the same details, never the content.
Add a file
- Open the service. It must be running.
- Find the Secret files card.
- If the app's template offers a ready-made slot, click Add file next to it. The path is fixed by the template. No template in the catalog offers one at the moment. Otherwise click Add another file, give it a name (lowercase letters, digits and hyphens) and the path where the app expects it.
- Choose the file on your computer, or paste its content. At most 64 KiB.
- Click Save. The app can read the file right away.
To change the file, click Replace. To take it away, click Remove: the panel deletes it from the service and from the vault.
Which paths are allowed
The panel writes only inside the service's own storage. It refuses a path
- outside the service's volumes, or a volume mounted from the host,
- that is the volume itself rather than a file in it,
- in a read-only volume or a volume shared with another service,
- that goes through a link, or is a directory.
The message under Save says which rule the path broke.
Who can do this
- In the customer portal: a member of the customer's organization with the right to manage services, for the customer's own services only. Asking for another customer's service answers "not found".
- A hosting provider can turn the feature off per customer plan: in Plans, edit the plan and untick Secret files and app sign-in. It is on by default. With it off, the card disappears from the customer portal and the panel refuses the request (403), even when called directly.
- In the admin panel: an operator with the right to manage services, for the services in their part of the panel.
- Secret files need the vault. On a panel that runs without OpenBao (
SECRETS_BACKEND=file) the card says so and nothing is stored. - AI agents (MCP and the Assistant) can see neither the content nor the route that adds a file: a credential file comes from a person, through the panel.
A file from a slot that was removed
OpenClaw used to offer a Google OAuth client (client_secret.json) slot. It was removed because the OpenClaw image has no gog tool, so nothing read the file. If you added that file before, it is still stored and still written into the service on every deploy. The card now lists it under its name, google-oauth-client, like a file of your own: Replace and Remove work as before. Remove it if you do not need it.
Tell the app's agent where the file is
For an AI agent such as OpenClaw, tell the agent the path, for example: "The config is at /home/node/.openclaw/app/config.json." The agent reads the file itself; you never send it its content.