m-lab / uuid-annotator

Produces metadata locally for every connection on each server.
Apache License 2.0
0 stars 0 forks source link

Adds public IP of LB to localIPs slice #55

Closed nkinkade closed 1 year ago

nkinkade commented 1 year ago

Virtual machines will be part of managed instance groups, which sit behind a pass-through TCP load balancer. In such cases, packets arriving to the machine from the load balancer will have a destination address of the load balancer's public IP, which is not a local address on the machine. Without these changes uuid-annotator will refuse to annoate a connection, since it doesn't recognize either the Src of Dest IP address as being its own (annotate.FindDirection() fails). These changes cause siteannotator.New() to append the public IP address from siteinfo to localIPs if it is a virtual machine.


This change is Reviewable

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 303


Totals Coverage Status
Change from base Build 298: 0.0%
Covered Lines: 773
Relevant Lines: 773

💛 - Coveralls