From 42ccfd33715b9f747d7adbf5fe5f675eae8d570f Mon Sep 17 00:00:00 2001 From: Vaughn Dice Date: Tue, 31 Oct 2023 16:09:16 -0600 Subject: [PATCH] chore(*): update examples/test-app with allowed_outbound_hosts Signed-off-by: Vaughn Dice --- examples/javascript/outbound-http/spin.toml | 2 +- examples/javascript/planetscale/spin.toml | 2 +- examples/typescript/outbound_http/spin.toml | 2 +- examples/typescript/outbound_mysql/spin.toml | 2 +- examples/typescript/outbound_pg/spin.toml | 2 +- examples/typescript/outbound_redis/spin.toml | 2 +- examples/typescript/planetscale/spin.toml | 2 +- test/test-app/spin.toml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/javascript/outbound-http/spin.toml b/examples/javascript/outbound-http/spin.toml index 734231ee..f70f45b4 100644 --- a/examples/javascript/outbound-http/spin.toml +++ b/examples/javascript/outbound-http/spin.toml @@ -11,7 +11,7 @@ component = "hello" [component.hello] source = "target/spin-outbound-http.wasm" -allowed_http_hosts = ["random-data-api.fermyon.app"] +allowed_outbound_hosts = ["https://random-data-api.fermyon.app"] files = ["src/index.js"] [component.hello.build] command = "npm run build" \ No newline at end of file diff --git a/examples/javascript/planetscale/spin.toml b/examples/javascript/planetscale/spin.toml index 1c31acbb..516df548 100644 --- a/examples/javascript/planetscale/spin.toml +++ b/examples/javascript/planetscale/spin.toml @@ -11,7 +11,7 @@ component = "planetscale" [component.planetscale] source = "target/spin-planetscale.wasm" -allowed_http_hosts = ["aws.connect.psdb.cloud"] +allowed_outbound_hosts = ["https://aws.connect.psdb.cloud"] files = ["src/index.js"] [component.planetscale.build] command = "npm run build" \ No newline at end of file diff --git a/examples/typescript/outbound_http/spin.toml b/examples/typescript/outbound_http/spin.toml index 222e5c2e..2699d0a3 100644 --- a/examples/typescript/outbound_http/spin.toml +++ b/examples/typescript/outbound_http/spin.toml @@ -14,7 +14,7 @@ component = "hello" [component.hello] source = "target/spin-outbound-http.wasm" -allowed_http_hosts = ["random-data-api.fermyon.app"] +allowed_outbound_hosts = ["https://random-data-api.fermyon.app"] [component.hello.variables] message = "I'm a {{object}}" [component.hello.build] diff --git a/examples/typescript/outbound_mysql/spin.toml b/examples/typescript/outbound_mysql/spin.toml index dedb412c..f756d2bb 100644 --- a/examples/typescript/outbound_mysql/spin.toml +++ b/examples/typescript/outbound_mysql/spin.toml @@ -11,6 +11,6 @@ component = "hello" [component.hello] source = "target/spin-outbound-mysql.wasm" -allowed_outbound_hosts = ["mysql://127.0.0.1:3306"] +allowed_outbound_hosts = ["mysql://127.0.0.1"] [component.hello.build] command = "npm run build" diff --git a/examples/typescript/outbound_pg/spin.toml b/examples/typescript/outbound_pg/spin.toml index 0ddf5e69..b749be77 100644 --- a/examples/typescript/outbound_pg/spin.toml +++ b/examples/typescript/outbound_pg/spin.toml @@ -11,6 +11,6 @@ component = "hello" [component.hello] source = "target/spin-outbound-pg.wasm" -allowed_outbound_hosts = ["localhost:5432"] +allowed_outbound_hosts = ["postgres://localhost"] [component.hello.build] command = "npm run build" diff --git a/examples/typescript/outbound_redis/spin.toml b/examples/typescript/outbound_redis/spin.toml index a1647aa2..b5640099 100644 --- a/examples/typescript/outbound_redis/spin.toml +++ b/examples/typescript/outbound_redis/spin.toml @@ -11,6 +11,6 @@ component = "hello" [component.hello] source = "target/spin-outbound-redis.wasm" -allowed_outbound_hosts = ["redis://localhost:6379"] +allowed_outbound_hosts = ["redis://localhost"] [component.hello.build] command = "npm run build" diff --git a/examples/typescript/planetscale/spin.toml b/examples/typescript/planetscale/spin.toml index fad1b339..a4d254bb 100644 --- a/examples/typescript/planetscale/spin.toml +++ b/examples/typescript/planetscale/spin.toml @@ -11,6 +11,6 @@ component = "planetscale" [component.planetscale] source = "target/spin-planetscale.wasm" -allowed_http_hosts = ["aws.connect.psdb.cloud"] +allowed_outbound_hosts = ["https://aws.connect.psdb.cloud"] [component.planetscale.build] command = "npm run build" diff --git a/test/test-app/spin.toml b/test/test-app/spin.toml index e7754dc2..f6088313 100644 --- a/test/test-app/spin.toml +++ b/test/test-app/spin.toml @@ -13,7 +13,7 @@ component = "test-app" [component.test-app] source = "target/spin-http-js.wasm" files = [{ source = "src/", destination = "/" }, ] -allowed_http_hosts = ["http://localhost:3000"] +allowed_outbound_hosts = ["http://localhost:3000"] sqlite_databases = ["default"] [component.test-app.build] command = "npm run build"