Skip to content

Commit

Permalink
deps: bump go pkgs
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Kharitonov <[email protected]>
  • Loading branch information
geakstr committed Jan 24, 2024
1 parent 7cc15b3 commit 642dad7
Show file tree
Hide file tree
Showing 94 changed files with 4,774 additions and 2,335 deletions.
47 changes: 23 additions & 24 deletions backend/go.mod
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
module github.com/cilium/hubble-ui/backend

go 1.21
go 1.21.6

require (
github.com/cilium/cilium v1.14.4
github.com/cilium/hubble v0.12.2
github.com/cilium/cilium v1.15.0-rc.1
github.com/cilium/hubble v0.13.0
github.com/google/gops v0.3.28
github.com/improbable-eng/grpc-web v0.15.0
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.9.3
golang.org/x/net v0.20.0
golang.org/x/sys v0.16.0
google.golang.org/grpc v1.60.1
google.golang.org/grpc v1.61.0
google.golang.org/protobuf v1.32.0
k8s.io/api v0.29.0
k8s.io/apimachinery v0.29.0
k8s.io/client-go v0.29.0
k8s.io/api v0.29.1
k8s.io/apimachinery v0.29.1
k8s.io/client-go v0.29.1
)

require (
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
github.com/emicklei/go-restful/v3 v3.11.2 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-openapi/jsonpointer v0.20.0 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.22.4 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-openapi/jsonpointer v0.20.2 // indirect
github.com/go-openapi/jsonreference v0.20.4 // indirect
github.com/go-openapi/swag v0.22.8 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect
github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect
github.com/rs/cors v1.10.1 // indirect
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/spf13/pflag v1.0.6-0.20210604193023-d5e0c0615ace // indirect
golang.org/x/oauth2 v0.14.0 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/oauth2 v0.16.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/term v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.4.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/klog/v2 v2.110.1 // indirect
k8s.io/kube-openapi v0.0.0-20231113174909-778a5567bc1e // indirect
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
k8s.io/klog/v2 v2.120.1 // indirect
k8s.io/kube-openapi v0.0.0-20240117194847-208609032b15 // indirect
k8s.io/utils v0.0.0-20240102154912-e7106e64919e // indirect
nhooyr.io/websocket v1.8.10 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
Expand All @@ -66,7 +66,6 @@ require (

// Replace directives from github.com/cilium/cilium. Keep in sync when updating Cilium!
replace (
github.com/miekg/dns => github.com/cilium/dns v1.1.51-0.20220729113855-5b94b11b46fc
go.universe.tf/metallb => github.com/cilium/metallb v0.1.1-0.20220829170633-5d7dfb1129f7
sigs.k8s.io/controller-tools => github.com/cilium/controller-tools v0.6.2
sigs.k8s.io/controller-tools => github.com/cilium/controller-tools v0.8.0-1
)
118 changes: 51 additions & 67 deletions backend/go.sum

Large diffs are not rendered by default.

59 changes: 41 additions & 18 deletions backend/proto/flow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- [Layer7](#flow-Layer7)
- [LostEvent](#flow-LostEvent)
- [NetworkInterface](#flow-NetworkInterface)
- [Policy](#flow-Policy)
- [PolicyUpdateNotification](#flow-PolicyUpdateNotification)
- [SCTP](#flow-SCTP)
- [Service](#flow-Service)
Expand Down Expand Up @@ -109,7 +110,7 @@
<a name="flow-CiliumEventType"></a>

### CiliumEventType
CiliumEventType from which the flow originated
CiliumEventType from which the flow originated.


| Field | Type | Label | Description |
Expand All @@ -125,8 +126,7 @@ CiliumEventType from which the flow originated
<a name="flow-DNS"></a>

### DNS
DNS flow. This is basically directly mapped from Cilium&#39;s LogRecordDNS:
https://github.com/cilium/cilium/blob/04f3889d627774f79e56d14ddbc165b3169e2d01/pkg/proxy/accesslog/record.go#L264
DNS flow. This is basically directly mapped from Cilium&#39;s [LogRecordDNS](https://github.com/cilium/cilium/blob/04f3889d627774f79e56d14ddbc165b3169e2d01/pkg/proxy/accesslog/record.go#L264):


| Field | Type | Label | Description |
Expand Down Expand Up @@ -242,7 +242,7 @@ DNS flow. This is basically directly mapped from Cilium&#39;s LogRecordDNS:
<a name="flow-EventTypeFilter"></a>

### EventTypeFilter
EventTypeFilter is a filter describing a particular event type
EventTypeFilter is a filter describing a particular event type.


| Field | Type | Label | Description |
Expand Down Expand Up @@ -296,6 +296,9 @@ EventTypeFilter is a filter describing a particular event type
| socket_cookie | [uint64](#uint64) | | socket_cookie is the Linux kernel socket cookie for this flow. Only applicable to TraceSock notifications, zero for other types |
| cgroup_id | [uint64](#uint64) | | cgroup_id of the process which emitted this event. Only applicable to TraceSock notifications, zero for other types |
| Summary | [string](#string) | | **Deprecated.** This is a temporary workaround to support summary field for pb.Flow without duplicating logic from the old parser. This field will be removed once we fully migrate to the new parser. |
| extensions | [google.protobuf.Any](#google-protobuf-Any) | | extensions can be used to add arbitrary additional metadata to flows. This can be used to extend functionality for other Hubble compatible APIs, or experiment with new functionality without needing to change the public API. |
| egress_allowed_by | [Policy](#flow-Policy) | repeated | The CiliumNetworkPolicies allowing the egress of the flow. |
| ingress_allowed_by | [Policy](#flow-Policy) | repeated | The CiliumNetworkPolicies allowing the ingress of the flow. |



Expand All @@ -313,7 +316,7 @@ multiple fields are set, then all fields must match for the filter to match.
| ----- | ---- | ----- | ----------- |
| uuid | [string](#string) | repeated | uuid filters by a list of flow uuids. |
| source_ip | [string](#string) | repeated | source_ip filters by a list of source ips. Each of the source ips can be specified as an exact match (e.g. &#34;1.1.1.1&#34;) or as a CIDR range (e.g. &#34;1.1.1.0/24&#34;). |
| source_pod | [string](#string) | repeated | source_pod filters by a list of source pod name prefixes, optionally within a given namespace (e.g. &#34;xwing&#34;, &#34;kube-system/coredns-&#34;). The pod name can be omitted to only filter by namespace (e.g. &#34;kube-system/&#34;) |
| source_pod | [string](#string) | repeated | source_pod filters by a list of source pod name prefixes, optionally within a given namespace (e.g. &#34;xwing&#34;, &#34;kube-system/coredns-&#34;). The pod name can be omitted to only filter by namespace (e.g. &#34;kube-system/&#34;) or the namespace can be omitted to filter for pods in any namespace (e.g. &#34;/xwing&#34;) |
| source_fqdn | [string](#string) | repeated | source_fqdn filters by a list of source fully qualified domain names |
| source_label | [string](#string) | repeated | source_labels filters on a list of source label selectors. Selectors support the full Kubernetes label selector syntax. |
| source_service | [string](#string) | repeated | source_service filters on a list of source service names. This field supports the same syntax as the source_pod field. |
Expand All @@ -337,6 +340,8 @@ multiple fields are set, then all fields must match for the filter to match.
| destination_identity | [uint32](#uint32) | repeated | destination_identity filters by the security identity of the destination endpoint. |
| http_method | [string](#string) | repeated | GET, POST, PUT, etc. methods. This type of field is well suited for an enum but every single existing place is using a string already. |
| http_path | [string](#string) | repeated | http_path is a list of regular expressions to filter on the HTTP path. |
| http_url | [string](#string) | repeated | http_url is a list of regular expressions to filter on the HTTP URL. |
| http_header | [HTTPHeader](#flow-HTTPHeader) | repeated | http_header is a list of key:value pairs to filter on the HTTP headers. |
| tcp_flags | [TCPFlags](#flow-TCPFlags) | repeated | tcp_flags filters flows based on TCP header flags |
| node_name | [string](#string) | repeated | node_name is a list of patterns to filter on the node name, e.g. &#34;k8s*&#34;, &#34;test-cluster/*.domain.com&#34;, &#34;cluster-name/&#34; etc. |
| ip_version | [IPVersion](#flow-IPVersion) | repeated | filter based on IP version (ipv4 or ipv6) |
Expand All @@ -350,8 +355,7 @@ multiple fields are set, then all fields must match for the filter to match.
<a name="flow-HTTP"></a>

### HTTP
L7 information for HTTP flows. It corresponds to Cilium&#39;s accesslog.LogRecordHTTP type.
https://github.com/cilium/cilium/blob/728c79e427438ab6f8d9375b62fccd6fed4ace3a/pkg/proxy/accesslog/record.go#L206
L7 information for HTTP flows. It corresponds to Cilium&#39;s [accesslog.LogRecordHTTP](https://github.com/cilium/cilium/blob/728c79e427438ab6f8d9375b62fccd6fed4ace3a/pkg/proxy/accesslog/record.go#L206) type.


| Field | Type | Label | Description |
Expand Down Expand Up @@ -458,8 +462,7 @@ L7 information for HTTP flows. It corresponds to Cilium&#39;s accesslog.LogRecor
<a name="flow-Kafka"></a>

### Kafka
L7 information for Kafka flows. It corresponds to Cilium&#39;s accesslog.LogRecordKafka type.
https://github.com/cilium/cilium/blob/728c79e427438ab6f8d9375b62fccd6fed4ace3a/pkg/proxy/accesslog/record.go#L229
L7 information for Kafka flows. It corresponds to Cilium&#39;s [accesslog.LogRecordKafka](https://github.com/cilium/cilium/blob/728c79e427438ab6f8d9375b62fccd6fed4ace3a/pkg/proxy/accesslog/record.go#L229) type.


| Field | Type | Label | Description |
Expand Down Expand Up @@ -497,8 +500,7 @@ L7 information for Kafka flows. It corresponds to Cilium&#39;s accesslog.LogReco
<a name="flow-Layer7"></a>

### Layer7
Message for L7 flow, which roughly corresponds to Cilium&#39;s accesslog LogRecord:
https://github.com/cilium/cilium/blob/728c79e427438ab6f8d9375b62fccd6fed4ace3a/pkg/proxy/accesslog/record.go#L141
Message for L7 flow, which roughly corresponds to Cilium&#39;s accesslog [LogRecord](https://github.com/cilium/cilium/blob/728c79e427438ab6f8d9375b62fccd6fed4ace3a/pkg/proxy/accesslog/record.go#L141):


| Field | Type | Label | Description |
Expand Down Expand Up @@ -548,6 +550,24 @@ that happened before the events were captured by Hubble.



<a name="flow-Policy"></a>

### Policy



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | |
| namespace | [string](#string) | | |
| labels | [string](#string) | repeated | |
| revision | [uint64](#uint64) | | |






<a name="flow-PolicyUpdateNotification"></a>

### PolicyUpdateNotification
Expand Down Expand Up @@ -709,10 +729,9 @@ that happened before the events were captured by Hubble.
<a name="flow-TraceContext"></a>

### TraceContext
TraceContext contains trace context propagation data, ie information about a
TraceContext contains trace context propagation data, i.e. information about a
distributed trace.
For more information about trace context, check the W3C Trace Context
specification: https://www.w3.org/TR/trace-context/
For more information about trace context, check the [W3C Trace Context specification](https://www.w3.org/TR/trace-context/).


| Field | Type | Label | Description |
Expand Down Expand Up @@ -777,7 +796,7 @@ TraceParent identifies the incoming request in a tracing system.

### AgentEventType
AgentEventType is the type of agent event. These values are shared with type
AgentNotification in pkg/monitor/api/types.go
AgentNotification in pkg/monitor/api/types.go.

| Name | Number | Description |
| ---- | ------ | ----------- |
Expand All @@ -799,7 +818,7 @@ AgentNotification in pkg/monitor/api/types.go
<a name="flow-AuthType"></a>

### AuthType
These types correspond to definitions in pkg/policy/l4.go
These types correspond to definitions in pkg/policy/l4.go.

| Name | Number | Description |
| ---- | ------ | ----------- |
Expand Down Expand Up @@ -900,6 +919,8 @@ These values are shared with pkg/monitor/api/datapath_debug.go and bpf/lib/dbg.h
| DBG_SK_LOOKUP4 | 62 | |
| DBG_SK_LOOKUP6 | 63 | |
| DBG_SK_ASSIGN | 64 | |
| DBG_L7_LB | 65 | |
| DBG_SKIP_POLICY | 66 | |



Expand Down Expand Up @@ -977,8 +998,11 @@ here.
| INVALID_CLUSTER_ID | 192 | |
| UNSUPPORTED_PROTOCOL_FOR_DSR_ENCAP | 193 | |
| NO_EGRESS_GATEWAY | 194 | |
| UNENCRYPTED_TRAFFIC | 195 | |
| TTL_EXCEEDED | 196 | |
| NO_NODE_ID | 197 | |
| DROP_RATE_LIMITED | 198 | |
| DROP_HOST_NOT_READY | 202 | A BPF program wants to tail call into bpf_host, but the host datapath hasn&#39;t been loaded yet. |



Expand Down Expand Up @@ -1025,8 +1049,7 @@ EventType are constants are based on the ones from &lt;linux/perf_event.h&gt;.
<a name="flow-L7FlowType"></a>

### L7FlowType
This enum corresponds to Cilium&#39;s L7 accesslog FlowType:
https://github.com/cilium/cilium/blob/728c79e427438ab6f8d9375b62fccd6fed4ace3a/pkg/proxy/accesslog/record.go#L26
This enum corresponds to Cilium&#39;s L7 accesslog [FlowType](https://github.com/cilium/cilium/blob/728c79e427438ab6f8d9375b62fccd6fed4ace3a/pkg/proxy/accesslog/record.go#L26):

| Name | Number | Description |
| ---- | ------ | ----------- |
Expand Down
Loading

0 comments on commit 642dad7

Please sign in to comment.