Skip to content

fix(compose): allowlist SALESFORCE_* for the Salesforce MCP - #198

Open
cryptolir wants to merge 1 commit into
mainfrom
fix/compose-salesforce-env
Open

cryptolir wants to merge 1 commit into
mainfrom
fix/compose-salesforce-env

Conversation

@cryptolir

Copy link
Copy Markdown
Owner

Problem

The dashboard's Salesforce route (app/api/agents/[agentId]/salesforce/route.ts) writes SALESFORCE_CONNECTION_TYPE, SALESFORCE_INSTANCE_URL, SALESFORCE_CLIENT_ID, SALESFORCE_CLIENT_SECRET to the per-Agent docker.env and sets the MCP entry env: {}, relying on the bridge's { ...process.env, ...env }.

This compose has no env_file and mounts empty.env over docker.env, so only allowlisted keys reach the container. None of the SALESFORCE_* keys were listed → a connected Agent's Salesforce MCP would start with no credentials.

Fix

Add the 4 keys (with :- default, like GMAIL_*/GCAL_*) to both openclaw-gateway and openclaw-cli.

Checked

  • docker compose config with SALESFORCE_CLIENT_ID=probe renders all 4 keys in both services.
  • Live: no Agent on DevAgents, 1stclaw or 2ndclaw has Salesforce connected yet (0 SALESFORCE_* in every docker.env), so nobody is broken today; the first customer to connect would have been.
  • Takes effect per Agent on its next redeploy/upgrade. No fleet roll in this PR.

Not in this PR (noted for the owner)

  • NVIDIA_API_KEY (dashboard core key) is saved in ~30 Agents' docker.env but is in no gateway container — not allowlisted either.
  • GITHUB_PERSONAL_ACCESS_TOKEN: the dashboard strips it from the GitHub MCP env and relies on docker.env, same pattern; not allowlisted. No Agent has it saved today.

🤖 Generated with Claude Code

…reds

The dashboard writes SALESFORCE_* to the per-Agent docker.env and registers
the Salesforce MCP with env: {}, relying on the bridge inheriting
process.env. This compose has no env_file and masks docker.env, so keys
reach the container only when listed. They were not, so a connected
Agent's Salesforce MCP would start with no credentials.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant