When verifying for requestheader-allowed-names in the tap apiserver consider subjectAltNames for cases when there are multiple names.
Could you explain a little more about the situation where there are multiple names in the SAN?
Hi sorry didn't give a bit more info here.
For example i have othername in the SAN and i add it to the kube apiserver option requestheader-allowed-names=commonname,othername the tap pod doesn't recognize it.
Because it only checks for the allowed names in the CN.
Hey there! Is anyone working on this? I'm interested in helping out.
@drholmie I think it's all yours!
Awesome. Thanks for the go ahead!
Hope it's alright, but I noticed there hadn't been any movement on this issue for a while. Figured I could knock it out quickly, so I threw a PR together.
Thank you @javaducky!
Most helpful comment
Hi sorry didn't give a bit more info here.
For example i have
othernamein the SAN and i add it to the kube apiserver optionrequestheader-allowed-names=commonname,othernamethe tap pod doesn't recognize it.Because it only checks for the allowed names in the CN.
https://github.com/linkerd/linkerd2/blob/5e51208b5deea360932bd294337683f51a4571eb/controller/tap/apiserver.go#L98