Skip to content

Commit 28148bd

Browse files
Integrate VPC metadata enrichment for netflow IP addresses (#611)
- Added VPCIndex in-memory index for IP metadata lookups across VPCs, subnets, peered networks, and service ranges - Periodic refresh from cloud provider with configurable interval - gRPC endpoint GetIPsInfo enriches IPs with VPC metadata (region, zone, cloud service detection via domain) - Improved zone/region detection with kube nodes info
1 parent 4b96e1c commit 28148bd

23 files changed

+1466
-526
lines changed

api/v1/kube/kube_api.pb.go

Lines changed: 47 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1/kube/kube_api.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ message GetClusterInfoRequest {}
1818
message GetClusterInfoResponse {
1919
repeated string pods_cidr = 1;
2020
repeated string service_cidr = 2;
21+
repeated string other_cidr = 3;
2122
}
2223

2324
message GetIPInfoRequest {
@@ -44,7 +45,9 @@ message IPInfo {
4445
string workload_kind = 5;
4546
string workload_uid = 6;
4647
string zone = 7;
48+
string region = 10;
4749
string node_name = 8;
50+
string cloud_domain = 11;
4851
bytes ip = 9;
4952
}
5053

@@ -72,6 +75,7 @@ message Pod {
7275
string workload_name = 2;
7376
WorkloadKind workload_kind = 3;
7477
string zone = 4;
78+
string region = 6;
7579
string node_name = 5;
7680
}
7781

api/v1/kube/kube_api_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1/runtime/common.pb.go

Lines changed: 24 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1/runtime/common.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ message Netflow {
168168
string workload_name = 6;
169169
string workload_kind = 7;
170170
string zone = 8;
171+
string region = 16;
171172
string node_name = 13;
172173
bytes addr = 9;
173174
uint32 port = 10;
@@ -183,6 +184,7 @@ message NetflowDestination {
183184
string workload_name = 3;
184185
string workload_kind = 4;
185186
string zone = 5;
187+
string region = 15;
186188
string dns_question = 6;
187189
string node_name = 14;
188190
bytes addr = 8;

0 commit comments

Comments
 (0)