Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Stop updating secrets in Python backend
Tomas Valentac87af5787e39
diff --git a/api-service/database/database.py b/api-service/database/database.pyindex 81e730142..4e7b13364 100644--- a/api-service/database/database.py+++ b/api-service/database/database.py@@ -79,7 +79,7 @@ class Database:id: str,project_id: str,config: Any,- secrets: Any,+ # secrets: Any,) -> None:await self.client.table(TABLE_DEPLOYMENTS).upsert({@@ -87,7 +87,7 @@ class Database:"enabled": True,"project_id": project_id,"config": config,- "secrets": json.dumps(secrets),+ # "secrets": json.dumps(secrets),},on_conflict="id",).execute()diff --git a/api-service/deployment/in_memory.py b/api-service/deployment/in_memory.pyindex 2ba372437..39a9cf8c2 100644--- a/api-service/deployment/in_memory.py+++ b/api-service/deployment/in_memory.py@@ -59,7 +59,9 @@ class InMemoryDeploymentManager(AgentDeploymentManager):},)try:- await db.create_deployment(deployment.id, project_id, config, secrets)+ # Right now we are not overwriting secrets here because+ # there is some problem with encrypting them when calling Supabase from the Python client and the JSON saved is invalid.+ await db.create_deployment(deployment.id, project_id, config)except:await deployment.agent.stop()raise