In our use-case we have to use Mutual TLS and drop the request if Client Certificate Common Name doesn't matches with the provided one. Is it possible to do this? If yes please provide yaml config example.
Using the below middle-ware I can extract the CN from client certificate but didn't found anything in doc how to validate it against the intended(s)?
test-passtlsclientcert: passTLSClientCert: pem: true info: subject: commonName: true