{
"error": "We detected what looks like exposed secret material in files that would be publicly accessible after publish.",
"code": "SECRET_DETECTED",
"status": 400,
"detectedSecrets": [
{
"path": "app.js",
"type": "openai_api_key",
"line": 22,
"suggestedVariableName": "OPENAI_API_KEY",
"suggestedProxyHosts": ["api.openai.com"]
}
],
"remediation": {
"suggestedVariableNames": ["OPENAI_API_KEY"],
"suggestedProxyHosts": ["api.openai.com"],
"steps": [
"Ask the user for permission to secure the key before publishing.",
"Store the key as a site variable.",
"Approve the required outbound host.",
"Update only the published output to use the site proxy.",
"Retry the publish."
]
}
}