openziti / edge

Application-embedded connectivity and zero-trust components
Apache License 2.0
75 stars 19 forks source link

svcpoll needs to do a deep compare to see if service has been updated #385

Closed smilindave26 closed 3 years ago

smilindave26 commented 3 years ago

openziti/edge/tunnel/intercept/svcpoll.go

currently only checking if services have been added or deleted. needs to inspect for changes in service config (e.g., hostname/ip, port to intercept has changed)

Update, after I looked more closely at the code:

ekoby commented 3 years ago

dup https://github.com/openziti/ziti/issues/170

best way to address it is for ziti-tunnel to use SDK service update callback -- options.OnServiceUpdate() instead of implementing its own polling

SDK service refresh is doing deep compare on available services

scareything commented 3 years ago

We definitely should use the service update callback. To be clear though I don't believe this is a dup of openziti/ziti#170. 170 is talking about newly added services not being picked up - a situation that I have seen with Skip in a MOP-managed environment.

ekoby commented 3 years ago

We definitely should use the service update callback. To be clear though I don't believe this is a dup of openziti/ziti#170. 170 is talking about newly added services not being picked up - a situation that I have seen with Skip in a MOP-managed environment.

that could be due to the way service creation is processed by the MOP. I imagine the sequence is:

plorenz commented 3 years ago

note: openziti/ziti#170 has been resolved. Should we leave this open?

andrewpmartinez commented 3 years ago

@smilindave26 per @plorenz 's comment in 2/8, can we close this now?

smilindave26 commented 3 years ago

Yes, looks like this has been addresses along the way...