aporeto-inc / trireme-lib

Simple, scalable and secure application segmentation
https://trireme.io
Apache License 2.0
300 stars 51 forks source link

Follow-up from #943 #945

Open mheese opened 4 years ago

mheese commented 4 years ago

Follow-up from #943 . Adding better logging for http client certs and adding stops in envoy.

There could be a lot more done in both packages that are touched here. However, especially the http package stands out: logging is not very clear, UT missing (in the works though for envoy by Abhi), a lot of variable/pointer checks missing, unclear return values and missing errors - should at least have a comment if they are intended, ignoring golang best practices and not very elegant code. One can see that this was written down in a hurry, and fixed in a hurry by us recently as well :) This package deserves some love.

Anyway, I leave it up to @brianonn and @abhijitherekar to add more to this PR if you think that is necessary.

@brianonn I ignored the Gopkg.toml comment from #943 as I don't think we need to change anything. Please comment here if you think otherwise.