akkaratanapatT
06/20/2023, 11:52 AMconst cerbos = new Cerbos("my_domain", { tls: true });
It's working well and I do want to do it in Rust
let options =
CerbosClientOptions::new(CerbosEndpoint::HostPort("my_domain", 3592));
let mut client = CerbosAsyncClient::new(options).await?;
it said CheckResources call failed, i'm not sure that it because I add 3592 or not, butI add it due to CerbosEndpoint require it.
May you direct me to the right way?Andrew Haines (Cerbos)
akkaratanapatT
06/20/2023, 12:03 PMakkaratanapatT
06/20/2023, 12:03 PMAndrew Haines (Cerbos)
@cerbos/grpc
or @cerbos/http
?akkaratanapatT
06/20/2023, 12:06 PMAndrew Haines (Cerbos)
my_domain
- is that behind a load balancer or something? Perhaps port 443 on my_domain
is being forwarded to the Cerbos server?akkaratanapatT
06/20/2023, 12:11 PMakkaratanapatT
06/20/2023, 12:13 PMAndrew Haines (Cerbos)
"my_domain"
with no port in the JS client, then that would be defaulting to port 443. So maybe try changing 3592
to 443
in the Rust client options.akkaratanapatT
06/20/2023, 12:22 PM