# Class TlsConfig (0.4.1)

0.4.1 (latest) 0.4.0 0.3.0 0.2.0 0.1.12

    TlsConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The TLS configuration for the Kafka cluster.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `trust_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-managedkafka/latest/google.cloud.managedkafka_v1.types.TrustConfig` Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication. |
| `ssl_principal_mapping_rules` | `str` Optional. A list of rules for mapping from SSL principal names to short names. These are applied in order by Kafka. Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules` for the precise formatting details and syntax. Example: "RULE:\^CN=(.\\ \*?),OU=ServiceUsers.\*\\ $/$1@example.com/,DEFAULT" This is a static Kafka broker configuration. Setting or modifying this field will trigger a rolling restart of the Kafka brokers to apply the change. An empty string means no rules are applied (Kafka default). |