otterize / network-mapper

Map Kubernetes traffic: in-cluster, to the Internet, and to AWS IAM and export as text, intents, or an image
Apache License 2.0
612 stars 23 forks source link

Fix a bug where detected TCP traffic from pods short time before their deletion time could be labeled as incoming traffic from the internet #245

Closed omris94 closed 1 week ago

omris94 commented 2 weeks ago

Description

We fixed this bug by creating a TTL cache for pod IPs with an expiry time of 10 minutes.

Testing

Describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

Please include any manual steps for testing end-to-end or functionality not covered by unit/integration tests.

Also include details of the environment this PR was developed in (language/platform/browser version).

Checklist