White space within 'when' -> 'values' in Authorization Policy

We have an authorization policy where the ‘where’ clause is using the DN from the users JWT token, I notice that there is a space in the DN, so the Authorization Policy is not working. If I put in a ‘*’ instead of the part of the DN with the space, it works fine (that was for proof it was the space, cannot use the wildcard in real life). I tried putting the value in single quotes, double quotes, escaping the white space character. Will this even work? or do I need a string without spaces?


Does anyone have any more insight into this? Even a ‘I dont know’ would be fine. I really need to figure out how to get around this whitespace issue. Thank you

It might be a bug, could you please open an issue in istio github? thanks!