OPI doesn't support plaintext clients. In cf-for-k8s, we have mTLS enabled everywhere via istio & envoy. When requests pass from envoy ingress to eirini, they must be decrypted twice- once at the envoy layer and again by the OPI server.
Steps to reproduce
Try to configure OPI without TLS certificates.
What was expected to happen
It successfully starts a plaintext http server.
What actually happened
It fails because there are no TLS certificates
Suggested fix (optional)
Run a plaintext http server when TLS certificates are not provided, perhaps with an additional "serve_plaintext" configuration that defaults to false.
Description
OPI doesn't support plaintext clients. In cf-for-k8s, we have mTLS enabled everywhere via istio & envoy. When requests pass from envoy ingress to eirini, they must be decrypted twice- once at the envoy layer and again by the OPI server.
Steps to reproduce
Try to configure OPI without TLS certificates.
What was expected to happen
It successfully starts a plaintext http server.
What actually happened
It fails because there are no TLS certificates
Suggested fix (optional)
Run a plaintext http server when TLS certificates are not provided, perhaps with an additional "serve_plaintext" configuration that defaults to false.