-
Notifications
You must be signed in to change notification settings - Fork 36
Limit secrets passed to agentic engine execution steps #9589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
💀 Blimey! Changeset Generator failed and walked the plank! No treasure today, matey! ☠️ |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
Smoke Test Results - Claude (claude-sonnet-4-5-20250929) ✅ GitHub MCP - list_pull_requests Overall: PASS (6/6 tests successful)
|
|
@copilot merge main |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
💀 Blimey! Changeset Generator failed and walked the plank! No treasure today, matey! ☠️ |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident... |
Plan: Limit Secrets Passed to Agentic Engine Execution Step
Problem
Currently, when running
awf/agentengines (Copilot, Claude, Codex), ALL environment variables (including secrets) are passed to the execution step viasudo -E awf. This exposes more secrets than necessary.Implementation Summary
This PR implements a security enhancement to limit secrets passed to agentic engine execution steps to only those that are necessary.
Changes Made
Define Required Secrets per Engine
GetRequiredSecretNames()method to CodingAgentEngine interfaceCOPILOT_GITHUB_TOKEN, MCP gateway API key, HTTP MCP header secrets, safe-inputs secretsANTHROPIC_API_KEY,CLAUDE_CODE_OAUTH_TOKEN, MCP gateway API key, safe-inputs secretsCODEX_API_KEY,OPENAI_API_KEY, MCP gateway API key, safe-inputs secretsUpdate Engine Execution Logic
FilterEnvForSecretshelper function to filter env map based on allowed secretsextractSecretNamehelper to extract secret names from GitHub Actions expressionsTesting
Verify and Recompile
make recompile- 117 workflows compiled successfullySecurity Impact
sudo -E awfNotes
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.