This page is meant as a template for writing a KIP. To create a KIP choose Tools->Copy on this page and modify with your content and replace the heading with the next KIP number and a description of your issue. Replace anything in italics with your own description.
Status
Current state: "Under Discussion"
Discussion thread: here
JIRA: here [Change the link from KAFKA-1 to your own ticket]
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
Motivation
Describe the problems you are trying to solve.
Public Interfaces
Proposed Changes
We propose to extend "sasl.kerberos.principal.to.local.rules" config rule format/syntax by supporting an optional "/U" (toUpperCase) at the end of the rule. Since usernames are locale insensitive strings, we propose to use Locale.ENGLISH for the case conversion
For example, given the rules
"RULE:[2:$1@$0](JOE-QA-.*@EXAMPLE.COM)s/.*/joe-qa//U", "RULE:[2:$1@$0](joe-qa-.*@EXAMPLE.COM)s/.*/joe-qa//U", "RULE:[2:$1@$0](.*@EXAMPLE.COM)s/@.*///U"
If the source string is JOE-QA-cl1/host@EXAMPLE.COM, the result will be JOE-QA If the source string is joe-qa-cl1/host@EXAMPLE.COM, the result will be JOE-QA If the source string is joe_user/host@EXAMPLE.COM, the result will be JOE-USER If the source string is JOE_user/host@EXAMPLE.COM, the result will be JOE-USER
Compatibility, Deprecation, and Migration Plan
- This is an extension to the existing sasl.kerberos.principal.to.local.rules format and there will be no impact on existing users.