david
07/25/2022, 10:12 AMc, err := client.New(*cerbosAddr, client.WithTLSInsecure())
for the Javascript GRPC client? i.e. use TLS, but allow insecure.Alex Olivier (Cerbos)
tls
option in the SDK?
https://github.com/cerbos/cerbos-sdk-javascript/blob/main/docs/grpc.options.tls.mddavid
07/25/2022, 10:20 AMAlex Olivier (Cerbos)
SecureContext
created via
https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions
What that needs to look like for a self-signed cert Iām not 100% sureAlex Olivier (Cerbos)
Alex Olivier (Cerbos)
true
then run your app with an env var of `*`NODE_TLS_REJECT_UNAUTHORIZED=0``*oguzhan
const secureContext = tls.createSecureContext();
secureContext.context.addCACert("-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----");
david
07/25/2022, 11:49 AM