Skip to content

fix: restrict Gmail credential mount to main group only#7

Open
aslesarenko wants to merge 1 commit intoqwibitai:mainfrom
aslesarenko:fix/gmail-credentials-main-only
Open

fix: restrict Gmail credential mount to main group only#7
aslesarenko wants to merge 1 commit intoqwibitai:mainfrom
aslesarenko:fix/gmail-credentials-main-only

Conversation

@aslesarenko
Copy link
Copy Markdown

Summary

  • Gmail OAuth credentials (~/.gmail-mcp) were mounted into all group containers, not just the main group
  • Non-main group agents could read/send email using the owner's Gmail account, breaking sandbox isolation
  • Wraps the mount block in an if (isMain) guard (the parameter is already available in buildVolumeMounts)

Non-main group containers were receiving the owner's Gmail OAuth
credentials (~/.gmail-mcp), allowing any group's agent to read/send
email. Gate the mount on isMain to preserve sandbox isolation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@aslesarenko aslesarenko requested a review from gavrielc as a code owner March 14, 2026 01:43
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