federation: non-federation DNS lookup can return federation CNAME #27969
Labels
area/federation
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
sig/multicluster
Categorizes an issue or PR as relevant to SIG Multicluster.
Milestone
With the current KubeDNS code, it can happen that a pod requests
mysvc.somens
and resolve.conf addsmyns.svc.cluster.local
as a search path so that KubeDNS getsmysvc.somns.myns.svc.cluster.local
.If there is a federation with the name
myns
, isFederationQuery in KubeDNS will think this is a federation query and try to resolvemysvc.somens.svc.cluster.local
. If there is a local service resolving to that DNS, then user will get that as expected (all is fine). But if there isnt, then KubeDNS will returnmysvc.somens.myns.svc.myzone.myregion.mydomain
. If there is no federation service with that name and in that namespace, then user will still get an NXDOMAIN as expected. But if there is, then user might be pointed to a service in another cluster, which user may or may not have wanted.We can consider this a feature, if users want it or should fix it, if we consider it a bug.
Filing this to keep track.
@kubernetes/sig-cluster-federation
The text was updated successfully, but these errors were encountered: