Is it possible to fetch TLS data from a secret which also contains other data? For instance, the secret data might look like this:
{
"refreshToken": "somesecretvalue",
"serviceToken": "somesecretvalue",
"tls.ca.crt": "my-TLS-ca-cert",
"tls.crt": "my-tls-cert",
"tls.key": "my-tls-key",
}
And in Traefik I've specified:
routes:
client:
path: "&& PathPrefix(`/my-client`)"
middlewares:
strip:
stripPrefix:
prefixes:
- /my-client
cert: my-service-secret # server certificate
tlsOptions:
clientAuth:
secretNames:
- my-service-secret # public key for the certificates
clientAuthType: RequireAndVerifyClientCert
I've tried this but Traefik doesn't seem to find the cert, nor output any informative logs.
Any help is greatly appreciated.