sirhype
03/28/2023, 9:43 AMYacine Hmito
03/28/2023, 11:38 AMHardAtWork
03/28/2023, 11:40 AMSkye
03/28/2023, 11:42 AMYacine Hmito
03/28/2023, 11:43 AMYacine Hmito
03/28/2023, 11:43 AMHardAtWork
03/28/2023, 11:46 AMYacine Hmito
03/28/2023, 11:49 AMfetch
to the Dispatcher with a URL that locates service B. It's up to the Dispatcher to route it to the appropriate environment.
Now, I want a secure this by ensuring that every service is only callable from the Dispatcher. There are two layers of control:
- Statically: Ensuring that an arbitrary binding cannot be set on a worker. For this you provided some good answers.
- Dynamically: Validating that the request indeed comes from the Dispatcher. Short of singing the whole request, I don't how to do this.HardAtWork
03/28/2023, 11:49 AMYacine Hmito
03/28/2023, 11:49 AMYacine Hmito
03/28/2023, 11:50 AMHardAtWork
03/28/2023, 11:50 AMYacine Hmito
03/28/2023, 11:51 AMYacine Hmito
03/28/2023, 11:51 AMYacine Hmito
03/28/2023, 11:52 AMYacine Hmito
03/28/2023, 11:53 AMKlowner
03/28/2023, 5:25 PMKlowner
03/28/2023, 5:31 PMKlowner
03/28/2023, 5:52 PMavi
03/28/2023, 8:21 PMavi
03/28/2023, 8:21 PMdebug
mode?BBM
03/28/2023, 8:39 PMkian
03/28/2023, 8:41 PMavi
03/28/2023, 11:19 PMjs
export class Counter {
constructor() {
setInterval(() => console.log(Date.now()), 1000);
}
async fetch() {
return new Response('Hello, world!');
}
}
avi
03/28/2023, 11:20 PMwrangler dev --local --persist counter.js
--> every second, the current time is printed
wrangler dev --experimental-local --persist counter.js
--> every second, the time printed NEVER CHANGESavi
03/28/2023, 11:20 PMkian
03/28/2023, 11:20 PMkian
03/28/2023, 11:21 PMavi
03/28/2023, 11:21 PMavi
03/28/2023, 11:21 PM