package rpc_parallel
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=1e6e85e9f7cf3c1c221ceaa8c0d7a2370d402ae2ee12d68aefb6ebe47ef33016
doc/rpc_parallel.krb/Rpc_parallel_krb_public/Mode/index.html
Module Rpc_parallel_krb_public.Mode
Source
include Core.Bin_prot.Binable.S with type t := t
include Bin_prot.Binable.S_only_functions with type t := t
This function only needs implementation if t
exposed to be a polymorphic variant. Despite what the type reads, this does *not* produce a function after reading; instead it takes the constructor tag (int) before reading and reads the rest of the variant t
afterwards.
val kerberized :
key_source:Krb_public.Server_key_source.t ->
conn_type:Krb_public.Conn_type.t ->
unit ->
t
In this mode, communication to and from workers will use Kerberos for authentication.
key_source
must be a valid key source for all the hosts where a worker is running. For example, if your key source specifies a keytab path, that path must have a valid keytab on hosts where you spawn a worker.
conn_type
specifies the level of protection for the rpc communication to and from workers. If your application is extremely performance sensitive and sends a lot of data to and from your workers, you should use Auth
. Otherwise, using Priv
as a default is appropriate. See lib/krb/public/src/conn_type.mli for more documentation.
Regardless of what conn_type
you choose, connections will only be accepted from principals that match the principal associated with key_source
. By default, this is the principal associated with the user that started the rpc_parallel process.