Skip to content

Commit e701317

Browse files
committed
chore: remove Basilica credentials — executor is passive, validators verify externally
1 parent 5797025 commit e701317

File tree

6 files changed

+0
-90
lines changed

6 files changed

+0
-90
lines changed

Cargo.lock

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,5 @@ dashmap = "6"
5858
# Process / system
5959
libc = "0.2"
6060

61-
# URL encoding
62-
urlencoding = "2"
63-
6461
[dev-dependencies]
6562
tokio-test = "0.4"

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ All configuration is via environment variables:
183183
| `MAX_AGENT_CODE_BYTES` | `5242880` | Max agent code payload (5MB) |
184184
| `MAX_OUTPUT_BYTES` | `1048576` | Max captured output per command (1MB) |
185185
| `WORKSPACE_BASE` | `/tmp/sessions` | Base directory for session workspaces |
186-
| `BASILICA_API_TOKEN` | *(none)* | Basilica API token for metadata enrollment |
187-
| `BASILICA_INSTANCE_NAME` | *(none)* | Basilica deployment name for auto-enrollment |
188186

189187
## SWE-Forge Task Format
190188

src/basilica.rs

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/config.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ pub struct Config {
2525
#[allow(dead_code)]
2626
pub max_output_bytes: usize,
2727
pub workspace_base: PathBuf,
28-
pub basilica_api_token: Option<String>,
29-
pub basilica_instance_name: Option<String>,
3028
}
3129

3230
impl Config {
@@ -45,8 +43,6 @@ impl Config {
4543
workspace_base: PathBuf::from(
4644
std::env::var("WORKSPACE_BASE").unwrap_or_else(|_| DEFAULT_WORKSPACE_BASE.into()),
4745
),
48-
basilica_api_token: std::env::var("BASILICA_API_TOKEN").ok(),
49-
basilica_instance_name: std::env::var("BASILICA_INSTANCE_NAME").ok(),
5046
}
5147
}
5248

@@ -63,20 +59,7 @@ impl Config {
6359
tracing::info!("║ Agent timeout: {:<25}s ║", self.agent_timeout_secs);
6460
tracing::info!("║ Test timeout: {:<25}s ║", self.test_timeout_secs);
6561
tracing::info!("║ Workspace: {:<28}║", self.workspace_base.display());
66-
tracing::info!("║ Basilica: {:<28}║", if self.basilica_api_token.is_some() { "connected" } else { "standalone" });
6762
tracing::info!("╚══════════════════════════════════════════════════╝");
68-
69-
if self.basilica_instance_name.is_some() {
70-
let name = self.basilica_instance_name.as_deref().unwrap();
71-
tracing::info!("");
72-
tracing::info!("Recommended Basilica deploy command:");
73-
tracing::info!(" basilica deploy ghcr.io/platformnetwork/term-executor:latest \\");
74-
tracing::info!(" --name {} \\", name);
75-
tracing::info!(" --port {} \\", self.port);
76-
tracing::info!(" --public-metadata \\");
77-
tracing::info!(" --health-path /health \\");
78-
tracing::info!(" --cpu 2 --memory 4Gi");
79-
}
8063
}
8164
}
8265

src/main.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
mod auth;
2-
mod basilica;
32
mod cleanup;
43
mod config;
54
mod executor;
@@ -51,17 +50,6 @@ async fn main() {
5150
let app = handlers::router(state);
5251
let addr = format!("0.0.0.0:{}", config.port);
5352

54-
// Basilica enrollment (fire and forget)
55-
if let (Some(ref token), Some(ref name)) =
56-
(&config.basilica_api_token, &config.basilica_instance_name)
57-
{
58-
let token = token.clone();
59-
let name = name.clone();
60-
tokio::spawn(async move {
61-
basilica::try_enroll_metadata(&token, &name).await;
62-
});
63-
}
64-
6553
// Session reaper
6654
let sessions_reaper = sessions.clone();
6755
tokio::spawn(async move {

0 commit comments

Comments
 (0)