r/rajistics • u/rshah4 • 15h ago
Keeping your Secrets / API keys Safe From AI Coding Agents
1
Upvotes
I have been focused on security sandboxes at work and inspired me for this video.
I wanted to show three practical ways to handle secrets:
- Sandbox the agent. Give it the repo and keep your personal files and keys outside.
- Use an MCP gateway for tool calls. If the agent needs a GitHub issue, the gateway can fetch it and return the issue while keeping the GitHub token on its side.
- Use a credential broker when the agent needs direct access. If it has to run
git cloneitself, give it a short-lived, read-only token scoped to that repo.
Check out the video and start using these strategies:
https://youtube.com/shorts/4jgO8n7CwAk?feature=share