You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change introduces the ability to filter Hubble flows by IP trace ID directly
from the Hubble CLI.
The following changes are included:
- A new `--ip-trace-id` flag is added to the `hubble observe` command,
which can be specified multiple times to filter for multiple trace IDs.
- A new `IPTraceIDFilter` is implemented to perform the filtering logic based
onthe provided trace IDs.
- The `IPTraceIDFilter` is added to the list of default filters.
- The help text for the `hubble observe` command is updated to include the new flag.
Signed-off-by: Ben Bigdelle <bigdelle@google.com>
Copy file name to clipboardExpand all lines: hubble/cmd/observe_help.txt
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ Filters Flags:
62
62
--identity filter Show all flows related to an endpoint with the given security identity
63
63
--interface filter Show all flows observed at the given interface name (e.g. eth0)
64
64
--ip filter Show all flows originating or terminating at the given IP address. Each of the IPs can be specified as an exact match (e.g. '1.1.1.1') or as a CIDR range (e.g.'1.1.1.0/24').
65
+
--ip-trace-id filter Show only flows which match this IP trace ID
65
66
--ip-version filter Show only IPv4, IPv6 flows or non IP flows (e.g. ARP packets) (ie: "none", "v4", "v6")
66
67
-4, --ipv4 filter[=v4] Show only IPv4 flows
67
68
-6, --ipv6 filter[=v6] Show only IPv6 flows
@@ -156,15 +157,15 @@ Server Flags:
156
157
--request-timeout duration Unary Request timeout. Only applies to non-streaming RPCs (ServerStatus, ListNodes, ListNamespaces). (default 12s)
157
158
--server string Address of a Hubble server. Ignored when --input-file or --port-forward is provided. (default "localhost:4245")
158
159
--timeout duration Hubble server dialing timeout (default 5s)
159
-
--tls Specify that TLS must be used when establishing a connection to a Hubble server.
160
+
--tls Specify that TLS must be used when establishing a connection to a Hubble server.
160
161
By default, TLS is only enabled if the server address starts with 'tls://'.
161
-
--tls-allow-insecure Allows the client to skip verifying the server's certificate chain and host name.
162
-
This option is NOT recommended as, in this mode, TLS is susceptible to machine-in-the-middle attacks.
162
+
--tls-allow-insecure Allows the client to skip verifying the server's certificate chain and host name.
163
+
This option is NOT recommended as, in this mode, TLS is susceptible to machine-in-the-middle attacks.
163
164
See also the 'tls-server-name' option which allows setting the server name.
164
165
--tls-ca-cert-files strings Paths to custom Certificate Authority (CA) certificate files.The files must contain PEM encoded data.
165
-
--tls-client-cert-file string Path to the public key file for the client certificate to connect to a Hubble server (implies TLS).
166
+
--tls-client-cert-file string Path to the public key file for the client certificate to connect to a Hubble server (implies TLS).
166
167
The file must contain PEM encoded data.
167
-
--tls-client-key-file string Path to the private key file for the client certificate to connect a Hubble server (implies TLS).
168
+
--tls-client-key-file string Path to the private key file for the client certificate to connect a Hubble server (implies TLS).
168
169
The file must contain PEM encoded data.
169
170
--tls-server-name string Specify a server name to verify the hostname on the returned certificate (eg: 'instance.hubble-relay.cilium.io').
0 commit comments