Commit c188680
committed
reverse_tunnels: Add in support for the reverse tunnel reporting by adding hook points and interface for the reporter (#42647)
## Commit Message
Add in support for the reverse tunnel reporting by adding hook points
and interface for the reporter
## Additional Description
Adds an interface for reporters to extend to report the reverse tunnels.
Also added in the hooks needed on the extension, socket manager and the
filter to report the tunnels with the context to report to the reporter
(configured using yaml).
We are reporting the tenant_id on connections because we have plans to
possibly use them for validation later on in the request lifecycle. This
data isnt available at the upstream_socket_manager hence we dont report
the tenant_id on disconnection
Also added tests for the exercised new code paths.
Signed-off-by: aakugan <[email protected]>
Mirrored from https://github.com/envoyproxy/envoy @ 3fc850ad47b56545fdb20b3b987c53050cdb8fd91 parent 2fd335d commit c188680
File tree
2 files changed
+11
-1
lines changed- envoy/extensions/bootstrap/reverse_tunnel/upstream_socket_interface/v3
2 files changed
+11
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
0 commit comments