Skip to content

[DOCS] Desktop Secrets tab: secrets kept once and assigned to computers #1133

Closed

Description

@edenreich

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 infer process 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 to kubectl on stdin, and lists it under the workspace's secrets in daemon.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.
  • 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 one mcp.yaml header ${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.yaml whose 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>-inbox for AGENTMAIL_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-inbox

Affected pages

  • desktop.md, ~/.infer layout table: a secrets.yaml row, and the auth.yaml row 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 other auth.yaml entry. 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's secrets is 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 ~/.infer layout table and the Settings table list secrets.yaml and 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.

Activity

  1. added
    documentation
    on Nov 8, 2026
  2. added theissue type on Nov 8, 2026
  3. moved this to Todo in 2026on Nov 8, 2026
  4. edenreich commented on Nov 8, 2026

    @edenreich
    ContributorAuthor

    @claude can you document this? use /ponytail:ponytail check for all the relevant code first before documenting.

  5. inference-gateway-maintainer commented on Nov 8, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 3m 35s —— View job • docs/issue-1133-20261108-1958


    Documented the desktop Secrets tab

    • Track issue on the Roadmap board (In progress -> QA)
    • Read the desktop implementation: 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.tsx
    • Read the desktop.md sections to touch
    • Write the docs changes
    • Validate: bun run format:check, bun run lint:md, bun run build all clean
    • Commit and open the PR

    What I changed in desktop.md:

    • ~/.infer layout table: a secrets.yaml row, and the auth.yaml row now also names the secret values it holds (under the secret/<label> key the code uses).
    • Settings table: a Secrets row right after API Keys, matching the tab order in the app.
    • A new Secrets section: the form and its fields (label as a DNS label that cannot change once saved, variable, masked value never shown again, blank value on edit keeps the saved one), the three places a secret goes (this computer and the local daemon's workers but never the gateway, a Kubernetes workspace via infer-secret-<label> with the value passed to kubectl on stdin and listed under the workspace's secrets, or nowhere), shared variables and why that gives each agent its own AGENTMAIL_API_KEY, every refusal the backend returns, the MCP servers shown per secret (${NAME} / $NAME expansion in mcp.yaml headers), the CLI restart notice plus running-session caveat, the unreachable-cluster notice, the three example files, and that values never travel in an export.
    • API Keys: Save keeps every other auth.yaml entry, and the per-agent-keys paragraph now mentions secret values live in the same file.
    • Workspaces: the Environment row points at the Secrets tab, and a new paragraph says a workspace's secrets list is managed from there, not from the workspace form.
    • Agent email: Save inbox key as secret - the inbox-scoped key, the <agent>-inbox secret for AGENTMAIL_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.
    • Agent computers: a computer's secrets come from the Secrets tab.

    The daemon.yaml example uses the compute: key as the issue gave it, which is what workspace_settings.rs reads today - note the Workspaces field table on that page still describes the older context / namespace form, which I left alone as out of scope.

    Create a PR - already opened as #1139.

    What I skipped: I did not run bun run preview to inspect the new section in a browser, and I did not reconcile the Workspaces field table with the newer compute: workspace format. Risk: the wording follows the implementation on desktop main, so if that PR's behavior shifted before release the details on refusals and assignment would need a pass.
    | Branch | PR #1139

  6. moved this from Todo to In progress in 2026on Nov 8, 2026
  7. moved this from In progress to QA in 2026on Nov 8, 2026
  8. inference-gateway-releaser commented on Nov 8, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  9. moved this from QA to Done in 2026on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions