You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
res.end(JSON.stringify({error: 'Gemini proxy not configured (no GEMINI_API_KEY). Set GEMINI_API_KEY in the AWF runner environment to enable credential isolation.'}));
926
+
});
927
+
928
+
geminiServer.on('upgrade',(req,socket)=>{
929
+
socket.write('HTTP/1.1 503 Service Unavailable\r\nConnection: close\r\n\r\n');
930
+
socket.destroy();
931
+
});
932
+
933
+
geminiServer.listen(10003,'0.0.0.0',()=>{
934
+
logRequest('info','server_start',{message: 'Gemini endpoint listening on port 10003 (Gemini not configured — returning 503)'});
935
+
});
914
936
}
915
937
916
938
// OpenCode API proxy (port 10004) — routes to Anthropic (default BYOK provider)
logger.debug('GEMINI_API_KEY set to placeholder value for credential isolation');
1615
+
}else{
1616
+
logger.warn('--enable-api-proxy is active but GEMINI_API_KEY is not set.');
1617
+
logger.warn(` The api-proxy Gemini listener (port ${API_PROXY_PORTS.GEMINI}) will start in fallback mode and return 503 responses until GEMINI_API_KEY is set.`);
1618
+
logger.warn(' Set GEMINI_API_KEY in the AWF runner environment to enable Gemini credential isolation.');
1615
1619
}
1616
1620
1617
1621
logger.info('API proxy sidecar enabled - API keys will be held securely in sidecar container');
0 commit comments