From 4416bd75676e48d6981e1948c0321acedbab90fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Olveck=C3=BD?= Date: Fri, 6 Nov 2026 13:55:36 +0000 Subject: [PATCH] Migrate to Obelisk 0.43.0-rc.16 Name public tutorial listeners explicitly and permit them in their app policies. Keep the Fly resource-creating agent on the authenticated internal listener, and use development mode for local serving. --- Justfile | 4 ++-- app.toml | 1 + deployment.toml | 1 + dev-deps.txt | 4 ++-- flake.lock | 18 +++++++++--------- fly-agent/README.md | 9 +++++++-- fly-agent/deployment.toml | 1 + rust/app.toml | 1 + rust/deployment.toml | 1 + 9 files changed, 25 insertions(+), 15 deletions(-) diff --git a/Justfile b/Justfile index 95108c8..547747b 100644 --- a/Justfile +++ b/Justfile @@ -1,5 +1,5 @@ serve: - obelisk server run --server-config server.toml --app-config app.toml --deployment deployment.toml + obelisk server run --dev --server-config server.toml --app-config app.toml --deployment deployment.toml verify: obelisk server verify --skip-db --server-config server.toml --app-config app.toml --deployment deployment.toml @@ -14,7 +14,7 @@ build-rust: (cd rust/webhook-tutorial && env -u CARGO_TARGET_DIR cargo build --profile=webhook) serve-rust: - obelisk server run --server-config rust/server.toml --app-config rust/app.toml --deployment rust/deployment.toml + obelisk server run --dev --server-config rust/server.toml --app-config rust/app.toml --deployment rust/deployment.toml verify-rust: obelisk server verify --skip-db --server-config rust/server.toml --app-config rust/app.toml --deployment rust/deployment.toml diff --git a/app.toml b/app.toml index 3fa7909..2b222b5 100644 --- a/app.toml +++ b/app.toml @@ -1 +1,2 @@ app_name = "demo-tutorial" +public_http_servers = ["external"] diff --git a/deployment.toml b/deployment.toml index a0645fa..9d23f4e 100644 --- a/deployment.toml +++ b/deployment.toml @@ -25,5 +25,6 @@ return_type = "result" [[webhook_endpoint_js]] name = "webhook" +http_server = "external" location = "webhook/tutorial.js" routes = ["/*"] diff --git a/dev-deps.txt b/dev-deps.txt index dc9df2d..1c98b26 100644 --- a/dev-deps.txt +++ b/dev-deps.txt @@ -2,8 +2,8 @@ cargo-edit-upgrade 0.13.13 cargo-expand 1.0.127 cargo generate 0.25.1 just 1.58.0 -obelisk 0.43.0-rc.14 +obelisk 0.43.0-rc.16 (87f2ad2) pkg-config 0.29.2 rustc 1.98.1 (48a229cea 2026-09-01) -wasm-tools 1.261.0 +wasm-tools 1.262.0 ldd (GNU libc) 2.44 diff --git a/flake.lock b/flake.lock index 45bef90..975e569 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1792773339, - "narHash": "sha256-rZLrzrC6i+jnTAlvPZHogKDulY7WWDEv9hJeHieO7Zw=", + "lastModified": 1793341285, + "narHash": "sha256-Y1CiZ4SoBUjLQyQM/pY+rS2dXD3CHLPstF0lmOc73D4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "3ec636362e1816bc2f0888fa0fa2c69f1bc9e504", + "rev": "1c89083e451e891152365b799595cf7790a43325", "type": "github" }, "original": { @@ -47,11 +47,11 @@ ] }, "locked": { - "lastModified": 1793223647, - "narHash": "sha256-TYOSjdcLHoHMR3k4r4tRoX+mHiQDAlic2J8n40bh8P8=", + "lastModified": 1793873293, + "narHash": "sha256-ogF5iiiRY2fXHa/zswQXeOa1U7yQr/r277eherNlkAM=", "owner": "obeli-sk", "repo": "obelisk", - "rev": "95a3ca597bf8f0cf21520dbc8a2c5dd19c8761ea", + "rev": "87f2ad2c3d2cf942cf6818990ac5907390c6baa5", "type": "github" }, "original": { @@ -76,11 +76,11 @@ ] }, "locked": { - "lastModified": 1792825530, - "narHash": "sha256-aphXA2IFNd3q48++TKmfuuvDDjkrgGdJDnDIhij9684=", + "lastModified": 1793434469, + "narHash": "sha256-+sgVNI2c67di+XIeMaz5KSei4T65kX68s5Nl0E5Gzbc=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "5b9f1198b59bcb31c5c3250b332e7d77590e6306", + "rev": "6ecf534a7c16e7c969f26838fdd8c93597ae93f3", "type": "github" }, "original": { diff --git a/fly-agent/README.md b/fly-agent/README.md index c5883b2..dd89b42 100644 --- a/fly-agent/README.md +++ b/fly-agent/README.md @@ -17,16 +17,21 @@ export FLY_API_TOKEN=your_token_here ## Run ```sh -obelisk server run --app-config app.toml --deployment deployment.toml +obelisk server run --dev --app-config app.toml --deployment deployment.toml ``` +The resource-creating endpoint uses `internal`. Local `--dev` permits access +without credentials; keep the listener on localhost. Hosted instances require +platform sign-in at `https://internal--.` and leave `external` +closed. Choose an app name of at most 20 characters before deploying to Obelisk Cloud. + Trigger the saga with your actual organization slug and a globally unique app name. The `personal` alias is unsuitable here because Fly returns the real slug on the idempotency check after a retry. ```sh ORG_SLUG=your-org-slug APP=my-fly-agent-$(date +%s) -curl -v "http://localhost:9090/run/${ORG_SLUG}/${APP}/what-is-42" +curl -v "http://localhost:9091/run/${ORG_SLUG}/${APP}/what-is-42" ``` ## Saga Recovery Demo diff --git a/fly-agent/deployment.toml b/fly-agent/deployment.toml index c2710e7..35d5f76 100644 --- a/fly-agent/deployment.toml +++ b/fly-agent/deployment.toml @@ -114,5 +114,6 @@ return_type = "result" # Webhook: HTTP entry point for triggering the saga. [[webhook_endpoint_js]] name = "webhook" +http_server = "internal" location = "webhook/fly-agent.js" routes = [{ methods = ["GET"], route = "/run/:org-slug/:app-name/:prompt" }] diff --git a/rust/app.toml b/rust/app.toml index 74ea89a..3072874 100644 --- a/rust/app.toml +++ b/rust/app.toml @@ -1 +1,2 @@ app_name = "demo-tutorial-rust" +public_http_servers = ["external"] diff --git a/rust/deployment.toml b/rust/deployment.toml index 5df93f1..a2fadc4 100644 --- a/rust/deployment.toml +++ b/rust/deployment.toml @@ -10,6 +10,7 @@ backtrace.sources = {".../src/lib.rs" = "workflow-tutorial/src/lib.rs"} [[webhook_endpoint_wasm]] name = "webhook_tutorial" +http_server = "external" location = "target/wasm32-wasip2/webhook/webhook_tutorial.wasm" routes = ["/*"] backtrace.sources = {".../src/lib.rs" = "webhook-tutorial/src/lib.rs"}