Repository navigation
Closed
Copy link
Labels
Description
Summary
The desktop's Settings gains a Secrets tab: a secret is kept once and given to the computers that need it. Source: inference-gateway/desktop#475, implemented in inference-gateway/desktop#479. Document it once that PR is merged and released.
What changed for users:
- A new Secrets tab lists secrets, each with a Label, the Variable it becomes, and a masked Value. A value is never shown again after saving. On edit, a blank value keeps the saved one. The label is a DNS label (lowercase letters, digits and
-) and cannot change once saved. - Where a secret goes is picked per secret:
- This computer: every
inferprocess the app starts gets it as an environment variable, the local daemon's workers too. The gateway never does. - A Kubernetes workspace: the desktop writes the Kubernetes Secret
infer-secret-<label>into the workspace's namespace, the value passed tokubectlon stdin, and lists it under the workspace'ssecretsindaemon.yaml. The workspace's pod reads it from there, so the value never passes through a session. Unassigning removes the listing and, once no workspace in that namespace lists it, the Kubernetes Secret. - Nowhere: no process gets it.
- This computer: every
- Several secrets may share a variable as long as no computer gets two of them. Each agent's computer can get its own
AGENTMAIL_API_KEY, so onemcp.yamlheader${AGENTMAIL_API_KEY}works on all of them. - Refused: an invalid label or variable, a label already taken, a variable that is an API key (set it under API Keys instead), and a second secret with the same variable on this computer or on one workspace.
- Each secret shows the MCP servers of
~/.infer/mcp.yamlwhose headers expand its variable as${NAME}or$NAME. - A change asks for a CLI restart, and sessions already running on a workspace keep the old values until they get a new machine. A cluster that cannot be reached is named in the tab, and the rest of the save still applies.
- Save inbox key as secret in the agent editor's Email section mints a key that can only use the agent's own inbox, with the AgentMail API key, and saves it as the secret
<agent>-inboxforAGENTMAIL_API_KEY. A new one goes to the agent's workspace when that is a Kubernetes workspace. The AgentMail API key itself never reaches a worker. The button needs the agent saved with its inbox address. - Saving API Keys keeps every other entry of
auth.yaml, such as agent keys and secrets.
Example to add:
# ~/.infer/secrets.yaml - no values here
secrets:
- label: code-reviewer-inbox
variable: AGENTMAIL_API_KEY
computer: false# ~/.infer/auth.yaml - mode 0600
OPENAI_API_KEY: sk-...
secret/code-reviewer-inbox: am_...# ~/.infer/daemon.yaml
workspaces:
- name: code-reviewer
compute: infer-k3s
secrets:
- infer-secret-code-reviewer-inboxAffected pages
desktop.md,~/.inferlayout table: asecrets.yamlrow, and theauth.yamlrow also holds secret values.desktop.md, Settings table: a Secrets row after API Keys.desktop.md, a new Secrets section after API Keys. It covers the form and its fields, the three places a secret goes, shared variables, the refusals, the MCP servers shown per secret, the restart notice and the unreachable-cluster notice, and that values never travel in an export.desktop.md, API Keys: Save keeps every otherauth.yamlentry. The paragraph on per-agent keys mentions that secrets live in the same file.desktop.md, Workspaces: the Environment row says secrets belong in the Secrets tab. A workspace'ssecretsis managed from there.desktop.md, Agent email: document Save inbox key as secret. Keep the note that chats cannot mail yet, since a pod also needs the AgentMail MCP server.desktop.md, Agent computers: a computer's secrets come from the Secrets tab.
Acceptance Criteria
- The
~/.inferlayout table and the Settings table listsecrets.yamland the Secrets tab. - A Secrets section documents labels, variables, masked values, the three places a secret goes, shared variables, the refusals, the MCP servers shown and the restart notice.
- API Keys says Save keeps the other entries of
auth.yaml. - Agent email documents Save inbox key as secret, and that the AgentMail API key never reaches a worker.
- Workspaces and Agent computers point at the Secrets tab for a computer's secrets.
- No tracker numbers or links in the doc content, per the repo's AGENTS.md.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Nov 8, 2026
@claude can you document this? use /ponytail:ponytail check for all the relevant code first before documenting.
inference-gateway-maintainer commentedon Nov 8, 2026
Claude finished @edenreich's task in 3m 35s —— View job •
docs/issue-1133-20261108-1958Documented the desktop Secrets tab
backend/src/secrets.rs,frontend/components/SecretsTab.tsx,backend/src/agent_mail.rs,backend/src/config.rs,backend/src/env.rs,backend/src/workspace_settings.rs,frontend/components/SettingsView.tsx,AgentEditor.tsxdesktop.mdsections to touchbun run format:check,bun run lint:md,bun run buildall cleanWhat I changed in
desktop.md:~/.inferlayout table: asecrets.yamlrow, and theauth.yamlrow now also names the secret values it holds (under thesecret/<label>key the code uses).infer-secret-<label>with the value passed tokubectlon stdin and listed under the workspace'ssecrets, or nowhere), shared variables and why that gives each agent its ownAGENTMAIL_API_KEY, every refusal the backend returns, the MCP servers shown per secret (${NAME}/$NAMEexpansion inmcp.yamlheaders), the CLI restart notice plus running-session caveat, the unreachable-cluster notice, the three example files, and that values never travel in an export.auth.yamlentry, and the per-agent-keys paragraph now mentions secret values live in the same file.secretslist is managed from there, not from the workspace form.<agent>-inboxsecret forAGENTMAIL_API_KEY, assignment to the agent's Kubernetes workspace, and that the AgentMail API key itself never reaches a worker. The "chats cannot mail yet" note now also mentions the pod needs the AgentMail MCP server.The daemon.yaml example uses the
compute:key as the issue gave it, which is whatworkspace_settings.rsreads today - note the Workspaces field table on that page still describes the oldercontext/namespaceform, which I left alone as out of scope.Create a PR - already opened as #1139.
What I skipped: I did not run
bun run previewto inspect the new section in a browser, and I did not reconcile the Workspaces field table with the newercompute:workspace format. Risk: the wording follows the implementation on desktopmain, so if that PR's behavior shifted before release the details on refusals and assignment would need a pass.| Branch | PR #1139
inference-gateway-releaser commentedon Nov 8, 2026
🎉 This issue has been resolved in version 0.9.24 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀