Aperture v0.13.0-rc.2
Pre-releaseChangelog
List of aperture PRs merged since 0.13.0-rc.1 release. For the full list of changes, see list of changes
Add metrics for IP-to-services lookups (#997)
Adds a service_lookups_total
metric which tracks IP-to-services lookups (via
entity cache). To differentiate between successful and failed lookups,
status=OK/Error label can be used.
Resolves #882
Warn on unknown entity (take two) (#991)
Start warning on failed IP to entity lookup, but only when service
discovery is actually enabled (when service discovery is disabled,
failure to do entity lookup is normal condition and glob-policies can
still work).
This required making service discovery registration "more formal".
Previously, service discovery simply wrote to Trackers, which made it
impossible to differentiate between discovery not-working vs being
disabled. This commit introduces EntityTrackers, which manages service
discoveries and hands out EventWriters.
Also:
- Extracted EventWriter interface from Trackers.
- Extracted shared "IP to services" logic to ServiceGetter.
- Fixed obtaining client IP from peer context for IPv6 (noticed
that on sidecar mode peer IP can be [::1]).