Skip to main content

KINIT_CMD

Constant KINIT_CMD 

Source
const KINIT_CMD: &str = "kinit -R -t '%{sasl.kerberos.keytab}' -k '%{sasl.kerberos.principal}' \
    || kinit -t '%{sasl.kerberos.keytab}' -k '%{sasl.kerberos.principal}'";
Expand description

librdkafka’s default kinit command, overridden to single-quote the keytab and principal. The default leaves them unquoted or double-quoted, so user-supplied values can inject shell commands.

Default: https://github.com/confluentinc/librdkafka/blob/v2.10.0/src/rdkafka_conf.c#L950-L960