Fix: always load flat secret as primary regardless of labeled secrets

This commit is contained in:
daniel
2026-05-09 14:14:38 -05:00
parent ac260e4314
commit bf89f7255a
16 changed files with 818 additions and 50 deletions

View File

@@ -230,6 +230,11 @@ export class AgentClawStack extends cdk.Stack {
actions: ['secretsmanager:GetSecretValue'],
resources: [`arn:aws:secretsmanager:${this.region}:${this.account}:secret:agent-claw/google-credentials/*`],
}));
runtime1Role.addToPolicy(new iam.PolicyStatement({
sid: 'GoogleCredentialsListRuntime',
actions: ['secretsmanager:ListSecrets'],
resources: ['*'],
}));
// Pass workspace_mcp MCP URL to agent-runner (informational)
agentRunnerFn.addEnvironment('WORKSPACE_MCP_URL', workspaceMcpMcpUrl);