Configuring client side JWT authentication for Kudu
Learn how to configure client-side changes for JSON Web Token (JWT) authentication for Kudu.
Set JWT and trusted certificate:
return KuduClientBuilder()
.master_server_addrs(master_addrs)
.default_admin_operation_timeout(MonoDelta::FromSeconds(20))
.jwt(cJwt)
.trusted_certificate(cKuduIpkiCaCert)
.Build(client);
}
client = kudu.connect(self.master_hosts,
self.master_ports,
require_authentication=True,
jwt=jwtToken,
trusted_certificates=certs)
KuduClient client = new KuduClient.KuduClientBuilder(KUDU_MASTERS).build();
client.jwt(jwtToken);
client.trustedCertificates(Arrays.asList(ByteString.copyFrom(ipkiCaCertDerBytes)));