Context
The changes with regards to internal-encryption and mTLS contained code that was targeting future features. This results in currently having additional Secrets with certificates that are unused. Also we have a concept of routing-id on certain certificates, that (at least currently) has no meaning and makes finishing the system-internal-tls feature more complex and unintuitive.
An example of this is, I wanted to update net-kourier to use the new secrets and trust multiple SANs on upstream backends, but do do that, net-kourier needs to trust the SAN of the activator which (currently) implies manually setting routing-id=0 in net-kourier in code - which is coupling to internas of how Activator currently get's it certificates. If we want to have multiple routing-ids in the future, we need some sort of API to get the existing routing-ids and dynamically populate them in the net-* implementations.
So for now, we need to do some cleanup to complete the system-internal-tls feature.
Things to cleanup
Context
The changes with regards to internal-encryption and mTLS contained code that was targeting future features. This results in currently having additional Secrets with certificates that are unused. Also we have a concept of
routing-idon certain certificates, that (at least currently) has no meaning and makes finishing thesystem-internal-tlsfeature more complex and unintuitive.An example of this is, I wanted to update
net-kourierto use the new secrets and trust multiple SANs on upstream backends, but do do that,net-kourierneeds to trust the SAN of the activator which (currently) implies manually settingrouting-id=0innet-kourierin code - which is coupling to internas of how Activator currently get's it certificates. If we want to have multiple routing-ids in the future, we need some sort of API to get the existing routing-ids and dynamically populate them in the net-* implementations.So for now, we need to do some cleanup to complete the
system-internal-tlsfeature.Things to cleanup
Knative Servicesnamespace withrouting-id. We can drop this as it is unnecessary.routing-id) -->DataPlaneRoutingSANLegacyFakeDnsNameand need to be updated to trusting:DataPlaneRoutingSAN+DataPlaneUserSAN(ns)DataPlaneRoutingSAN