GitLabgitlab-org
cli
main
1package graph
3import (
4 "context"
5 "encoding/json"
6 "errors"
7 "fmt"
8 "io"
9 "log/slog"
10 "strings"
12 "github.com/MakeNowJust/heredoc/v2"
13 "github.com/spf13/cobra"
15 gitlab "gitlab.com/gitlab-org/api/client-go/v3"
17 "gitlab.com/gitlab-org/cli/internal/api"
18 "gitlab.com/gitlab-org/cli/internal/cmdutils"
19 "gitlab.com/gitlab-org/cli/internal/glrepo"
20 "gitlab.com/gitlab-org/cli/internal/iostreams"
21 "gitlab.com/gitlab-org/cli/internal/mcpannotations"
22 "gitlab.com/gitlab-org/cli/internal/text"
23)
25// KAS accepts only the "pat:" authorization scheme this command builds below.
26var errUnsupportedToken = errors.New("cluster graph command supports authentication with only personal and project access tokens; requires at least the Developer role")
28type options struct {
29 io *iostreams.IOStreams
30 apiClient func(repoHost string) (*api.Client, error)
31 baseRepo func() (glrepo.Interface, error)
32 listenNet, listenAddr string
33 agentID int64
34 nsNames []string
35 nsLabels string
36 nsSelector string
37 nsCEL string
38 resources []string
39 rootsCEL []string
40 readQueryFromStdIn bool
41 groupCore bool
42 groupBatch bool
43 groupApps bool
44 groupRBAC bool
45 groupClusterRBAC bool
46 groupCRD bool
47 logWatchRequest bool
48 ignoreArcDirection bool
49}
51func NewCmdGraph(f cmdutils.Factory) *cobra.Command {
52 opts := options{
53 io: f.IO(),
54 apiClient: f.ApiClient,
55 baseRepo: f.BaseRepo,
57 listenNet: "tcp",
58 listenAddr: "localhost:0",
59 }
60 graphCmd := &cobra.Command{
61 Use: "graph [flags]",
62 Short: `Query the Kubernetes object graph using the GitLab Agent for Kubernetes. (EXPERIMENTAL)`,
63 Long: heredoc.Docf(`
64 This command starts a web server that shows a live view of the Kubernetes object graph in a browser.
65 It uses the GitLab Agent for Kubernetes running in the cluster.
66 It requires:
68 - Version 18.1 or later of GitLab and the GitLab Agent.
69 - At least the Developer role in the agent project.
70 - This command requires a personal access token or project access token
71 for authentication. The token must have the %[1]sread_api%[1]s and %[1]sk8s_proxy%[1]s scopes.
73 Leave feedback in [issue 7900](https://gitlab.com/gitlab-org/cli/-/issues/7900).
75 ### Resource filtering
77 To filter resources, namespaces, and select root objects, use
78 [Common Expression Language (CEL)](https://cel.dev/).
80 %[1]sobject_selector_expression%[1]s: Filters objects. The expression must return a boolean. These variables are available:
82 - %[1]sobj%[1]s: The Kubernetes object being evaluated.
83 - %[1]sgroup%[1]s: The group of the object.
84 - %[1]sversion%[1]s: The version of the object.
85 - %[1]sresource%[1]s: The resource name of the object, like %[1]spods%[1]s for the %[1]sPod%[1]s kind.
86 - %[1]snamespace%[1]s: The namespace of the object.
87 - %[1]sname%[1]s: The name of the object.
88 - %[1]slabels%[1]s: The labels of the object.
89 - %[1]sannotations%[1]s: The annotations of the object.
91 %[1]sresource_selector_expression%[1]s: Filters Kubernetes discovery information to include or exclude resources
92 from the watch request. The expression must return a boolean. These variables are available:
94 - %[1]sgroup%[1]s: The group of the object.
95 - %[1]sversion%[1]s: The version of the object.
96 - %[1]sresource%[1]s: The resource name of the object, like %[1]spods%[1]s for the %[1]sPod%[1]s kind.
97 - %[1]snamespaced%[1]s: The scope of group, version, and resource. Can be %[1]sbool%[1]s, %[1]strue%[1]s, or %[1]sfalse%[1]s.
99 To select root objects, use the %[1]s--root-expression%[1]s flag. When set, only objects that are directly
100 or transitively reachable from root objects are shown. This flag uses the same variables
101 as %[1]sobject_selector_expression%[1]s, and must return a boolean. Multiple values are joined with %[1]sOR%[1]s
102 statements. If any match, the object is used as root.
104 For more information about using [label selectors](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors)
105 and [field selectors](https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/) to select namespaces, see the Kubernetes documentation.
107 ### Advanced usage
109 Apart from high-level ways to construct the query, this command enables
110 you to construct and send the query using all underlying API features.
111 To understand what is possible, and how to do it, see the
112 [technical design doc](https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent/-/blob/master/doc/graph_api.md)
114 The user should have permission to access the agent project.
115 For more information, see [Grant users Kubernetes access](https://docs.gitlab.com/user/clusters/agent/user_access/).
116 `, "`") + text.ExperimentalString,
117 Example: heredoc.Doc(`
118 # Run the default query for agent 123
119 glab cluster graph -R user/project -a 123
121 # Show common resources from the core and RBAC groups
122 glab cluster graph -R user/project -a 123 --core --rbac
124 # Show certain resources
125 glab cluster graph -R user/project -a 123 --resource=pods --resource=configmaps
127 # Same as above, but more compact
128 glab cluster graph -R user/project -a 123 -r={pods,configmaps}
130 # Select a certain namespace
131 glab cluster graph -R user/project -a 123 -n={my-ns,my-stuff}
133 # Select namespaces with a certain label
134 glab cluster graph -R user/project -a 123 --ns-label-selector environment=production
136 # Pass a custom watch request from a file
137 glab cluster graph -R user/project -a 123 --stdin < query.json
139 # Show objects reachable from pod roots
140 glab cluster graph -R user/project -a 123 --root-expression "resource == \"pods\""`),
141 Args: cobra.NoArgs,
142 ValidArgsFunction: cobra.NoFileCompletions,
143 Annotations: map[string]string{
144 mcpannotations.Safe: "true",
145 },
146 RunE: func(cmd *cobra.Command, args []string) error {
147 return opts.run(cmd.Context())
148 },
149 }
150 fl := graphCmd.Flags()
151 fl.Int64VarP(&opts.agentID, "agent", "a", opts.agentID, "The numeric agent ID to connect to.")
152 fl.StringVar(&opts.listenNet, "listen-net", opts.listenNet, "Network on which to listen for connections.")
153 fl.StringVar(&opts.listenAddr, "listen-addr", opts.listenAddr, "Address to listen on.")
154 fl.BoolVarP(&opts.logWatchRequest, "log-watch-request", "", opts.logWatchRequest, "Log watch request to stdout. Helpful for debugging.")
156 fl.StringArrayVarP(&opts.nsNames, "namespace", "n", opts.nsNames, "Namespaces to watch. If not specified, all namespaces are watched with label and field selectors filtering.")
157 fl.StringVarP(&opts.nsLabels, "ns-label-selector", "", opts.nsLabels, "Label selector to select namespaces.")
158 fl.StringVarP(&opts.nsSelector, "ns-field-selector", "", opts.nsSelector, "Field selector to select namespaces.")
159 fl.StringVarP(&opts.nsCEL, "ns-expression", "", opts.nsCEL, "CEL expression to select namespaces. Evaluated before a namespace is watched and on any updates for the namespace object.")
161 fl.StringArrayVarP(&opts.rootsCEL, "root-expression", "", opts.rootsCEL, "CEL expression to select root objects. Requires GitLab and agent version 18.3 or later.")
162 fl.BoolVarP(&opts.ignoreArcDirection, "ignore-arc-direction", "", opts.ignoreArcDirection, "Ignore arc direction when evaluating root connectivity. Requires GitLab and agent version 18.3 or later.")
164 fl.StringArrayVarP(&opts.resources, "resource", "r", opts.resources, "Resources to watch. You can see the list of resources your cluster supports by running 'kubectl api-resources'.")
165 fl.BoolVar(&opts.groupCore, "core", opts.groupCore, "Watch pods, secrets, configmaps, and serviceaccounts in the core/v1 group.")
166 fl.BoolVar(&opts.groupBatch, "batch", opts.groupBatch, "Watch jobs and cronjobs in the batch/v1 group.")
167 fl.BoolVar(&opts.groupApps, "apps", opts.groupApps, "Watch deployments, replicasets, daemonsets, and statefulsets in the apps/v1 group.")
168 fl.BoolVar(&opts.groupRBAC, "rbac", opts.groupRBAC, "Watch roles and rolebindings in the rbac.authorization.k8s.io/v1 group.")
169 fl.BoolVar(&opts.groupClusterRBAC, "cluster-rbac", opts.groupClusterRBAC, "Watch clusterroles and clusterrolebindings in the rbac.authorization.k8s.io/v1 group.")
170 fl.BoolVar(&opts.groupCRD, "crd", opts.groupCRD, "Watch customresourcedefinitions in the apiextensions.k8s.io/v1 group.")
171 fl.BoolVar(&opts.readQueryFromStdIn, "stdin", opts.readQueryFromStdIn, "Read watch request from standard input.")
173 cobra.CheckErr(graphCmd.MarkFlagRequired("agent"))
174 graphCmd.MarkFlagsMutuallyExclusive("stdin", "namespace")
175 graphCmd.MarkFlagsMutuallyExclusive("stdin", "ns-label-selector")
176 graphCmd.MarkFlagsMutuallyExclusive("stdin", "ns-field-selector")
177 graphCmd.MarkFlagsMutuallyExclusive("stdin", "ns-expression")
178 graphCmd.MarkFlagsMutuallyExclusive("stdin", "root-expression")
179 graphCmd.MarkFlagsMutuallyExclusive("stdin", "resource")
180 graphCmd.MarkFlagsMutuallyExclusive("stdin", "core")
181 graphCmd.MarkFlagsMutuallyExclusive("stdin", "batch")
182 graphCmd.MarkFlagsMutuallyExclusive("stdin", "apps")
183 graphCmd.MarkFlagsMutuallyExclusive("stdin", "rbac")
184 graphCmd.MarkFlagsMutuallyExclusive("stdin", "cluster-rbac")
185 graphCmd.MarkFlagsMutuallyExclusive("stdin", "crd")
187 return graphCmd
188}
190func (o *options) run(ctx context.Context) error {
191 // 1. Plumbing setup
192 repo, err := o.baseRepo()
193 if err != nil {
194 return err
195 }
196 client, err := o.apiClient(repo.RepoHost())
197 if err != nil {
198 return err
199 }
201 // 2. Check token type, before reading the credential renews an OAuth2 token
202 // this command cannot use anyway.
203 kind, err := client.CredentialKind()
204 switch {
205 case errors.Is(err, api.ErrUnsupportedAuthSource):
206 return errUnsupportedToken
207 case err != nil:
208 return err
209 case kind != api.CredentialPAT:
210 return errUnsupportedToken
211 }
213 cred, err := client.Credential(ctx)
214 if err != nil {
215 return err
216 }
218 // 3. Read the watch request
219 watchReq, err := o.constructWatchRequest()
220 if err != nil {
221 return err
222 }
224 if o.logWatchRequest {
225 o.io.LogInfo(string(watchReq))
226 }
228 // 4. Construct API URL
229 md, _, err := client.Lab().Metadata.GetMetadata(gitlab.WithContext(ctx))
230 if err != nil {
231 return fmt.Errorf("GitLab metadata: %w", err)
232 }
233 graphAPIURL := md.KAS.ExternalK8SProxyURL
234 if !strings.HasSuffix(graphAPIURL, "/") {
235 graphAPIURL += "/"
236 }
237 graphAPIURL += "graph"
239 // 5. Start the server
240 srv := server{
241 log: slog.New(slog.NewTextHandler(o.io.StdErr, nil)),
242 io: o.io,
243 httpClient: client.HTTPClient(),
244 graphAPIURL: graphAPIURL,
245 listenNet: o.listenNet,
246 listenAddr: o.listenAddr,
247 authorization: fmt.Sprintf("Bearer pat:%d:%s", o.agentID, cred.Token),
248 watchRequest: watchReq,
249 }
250 return srv.Run(ctx)
251}
253func (o *options) constructWatchRequest() ([]byte, error) {
254 if o.readQueryFromStdIn {
255 return o.readWatchRequestFromStdin()
256 }
258 q := o.maybeConstructWatchQueriesForGroups()
259 q = append(q, o.maybeConstructWatchQueriesForResources()...)
260 if len(q) == 0 {
261 q = o.defaultWatchQueries()
262 }
264 req, err := json.Marshal(&watchGraphWebSocketRequest{ //nolint:forbidigo // websocket request body, not stdout
265 Queries: q,
266 Namespaces: o.constructWatchNamespaces(),
267 Roots: o.maybeConstructWatchRoots(),
268 })
269 if err != nil {
270 return nil, fmt.Errorf("JSON marshal: %w", err)
271 }
272 return req, nil
273}
275func (o *options) constructWatchNamespaces() *namespaces {
276 if o.isNamespaceOptsEmpty() {
277 return &namespaces{
278 ObjectSelectorExpression: "name != 'kube-system'",
279 }
280 }
281 return &namespaces{
282 Names: o.nsNames,
283 LabelSelector: o.nsLabels,
284 FieldSelector: o.nsSelector,
285 ObjectSelectorExpression: o.nsCEL,
286 }
287}
289func (o *options) isNamespaceOptsEmpty() bool {
290 return len(o.nsNames) == 0 && o.nsLabels == "" && o.nsSelector == "" && o.nsCEL == ""
291}
293func (o *options) readWatchRequestFromStdin() ([]byte, error) {
294 req, err := io.ReadAll(o.io.In)
295 if err != nil {
296 return nil, fmt.Errorf("reading request from stdin: %w", err)
297 }
298 return req, nil
299}
301func (o *options) defaultWatchQueries() []query {
302 return []query{
303 {
304 Include: &queryInclude{
305 ResourceSelectorExpression: "group == '' && version == 'v1' && (resource in ['pods', 'secrets', 'configmaps', 'serviceaccounts'])",
306 },
307 },
308 {
309 Include: &queryInclude{
310 ResourceSelectorExpression: "group == 'apps' && version == 'v1' && (resource in ['deployments', 'replicasets', 'daemonsets', 'statefulsets'])",
311 },
312 },
313 {
314 Include: &queryInclude{
315 ResourceSelectorExpression: "group == 'batch' && version == 'v1' && (resource in ['jobs', 'cronjobs'])",
316 },
317 },
318 {
319 Include: &queryInclude{
320 ResourceSelectorExpression: "group == 'rbac.authorization.k8s.io' && version == 'v1' && !(resource in ['clusterrolebindings', 'clusterroles'])",
321 },
322 },
323 }
324}
326func (o *options) maybeConstructWatchQueriesForResources() []query {
327 if len(o.resources) == 0 {
328 return nil
329 }
330 var sb strings.Builder
331 sb.WriteString("resource in [")
332 for i, resource := range o.resources {
333 if i == 0 {
334 sb.WriteByte('\'')
335 } else {
336 sb.WriteString(",'")
337 }
338 sb.WriteString(resource)
339 sb.WriteByte('\'')
340 }
341 sb.WriteByte(']')
343 return []query{
344 {
345 Include: &queryInclude{
346 ResourceSelectorExpression: sb.String(),
347 },
348 },
349 }
350}
352func (o *options) maybeConstructWatchQueriesForGroups() []query {
353 var q []query
355 if o.groupCore {
356 q = append(q, query{
357 Include: &queryInclude{
358 ResourceSelectorExpression: "group == '' && version == 'v1' && (resource in ['pods', 'secrets', 'configmaps', 'serviceaccounts'])",
359 },
360 })
361 }
362 if o.groupBatch {
363 q = append(q, query{
364 Include: &queryInclude{
365 ResourceSelectorExpression: "group == 'batch' && version == 'v1' && (resource in ['jobs', 'cronjobs'])",
366 },
367 })
368 }
369 if o.groupApps {
370 q = append(q, query{
371 Include: &queryInclude{
372 ResourceSelectorExpression: "group == 'apps' && version == 'v1' && (resource in ['deployments', 'replicasets', 'daemonsets', 'statefulsets'])",
373 },
374 })
375 }
376 if o.groupRBAC {
377 q = append(q, query{
378 Include: &queryInclude{
379 ResourceSelectorExpression: "group == 'rbac.authorization.k8s.io' && version == 'v1' && (resource in ['roles', 'rolebindings'])",
380 },
381 })
382 }
383 if o.groupClusterRBAC {
384 q = append(q, query{
385 Include: &queryInclude{
386 ResourceSelectorExpression: "group == 'rbac.authorization.k8s.io' && version == 'v1' && (resource in ['clusterroles', 'clusterrolebindings'])",
387 },
388 })
389 }
390 if o.groupCRD {
391 q = append(q, query{
392 Include: &queryInclude{
393 ResourceSelectorExpression: "group == 'apiextensions.k8s.io' && version == 'v1' && resource == 'customresourcedefinitions'",
394 },
395 })
396 }
397 return q
398}
400func (o *options) maybeConstructWatchRoots() *roots {
401 if len(o.rootsCEL) == 0 {
402 return nil
403 }
404 var arcsToIgnoreDirection []string
405 if o.ignoreArcDirection {
406 arcsToIgnoreDirection = []string{string(ownerReferenceArcType), string(referenceArcType), string(transitiveReferenceArcType)}
407 }
408 return &roots{
409 ObjectSelectorExpressions: o.rootsCEL,
410 IgnoreArcDirection: arcsToIgnoreDirection,
411 }
412}
Diagnostics8 git calls · 233 ms
CallStatusSizeTime0233 ms
discover200185 B3 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=4 git.response.bytes=185 git.server.agent=git/2.56.g1891de4-Linux git.server.object_format=sha1 git.server.caps=agent ls-refs fetch server-option object-format git.server.fetch=shallow wait-for-done filter git.protocol.version=2 git.pkt.frames=9 git.pkt.data=7 git.pkt.flush=2 git.pkt.delim=0 git.pkt.bytes=185 git.pkt.payload.max=35
ls-refs20058 KiB2 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=2 git.response.bytes=59849 git.response.cache=UPDATING git.response.duration_ms=2 git.protocol.version=2 git.pkt.frames=731 git.pkt.data=730 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=59849 git.pkt.payload.max=143 git.ls_refs.count=730 git.ls_refs.head=refs/heads/main
fetchcombine:blob:none+tree:2 · deepen 12004.2 KiB · hit3 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=3 git.response.bytes=4273 git.response.cache=HIT git.response.duration_ms=3 git.fetch.filter=combine:blob:none+tree:2 git.fetch.wants=0dd7574dce9e385c5c30540e6c15657adc6bdce9 git.fetch.haves.count=0 git.fetch.deepen=1 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=7 git.pkt.data=5 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=4273 git.pkt.payload.max=4173 git.sideband.band1.bytes=4173 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=11 git.pack.bytes=4173 git.fetch.wide.objects=11 git.fetch.wide.extra_bytes=3930 git.fetch.wide.blobs=0
fetchtree:0 · deepen 1020032 KiB · hit4 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=3 git.response.bytes=32926 git.response.cache=HIT git.response.duration_ms=4 git.fetch.filter=tree:0 git.fetch.wants=0dd7574dce9e385c5c30540e6c15657adc6bdce9 git.fetch.haves.count=0 git.fetch.deepen=10 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=22 git.pkt.data=20 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=32926 git.pkt.payload.max=32046 git.sideband.band1.bytes=32046 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=80 git.pack.bytes=32046 git.pack.ofs_delta=36 git.pack.ref_delta=0 git.pack.chain.max=2 git.pack.trailer=cb0bad5d7ffc514895d8b21c4dd470327f90bc91 git.pack.full=44Open pack map
fetchtree:02001.8 KiB · hit3 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=3 git.response.bytes=1857 git.response.cache=HIT git.response.duration_ms=3 git.fetch.filter=tree:0 git.fetch.wants=dce174ff8c632a19d17eea99c8a9b7c37fb2b592 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=1857 git.pkt.payload.max=1830 git.sideband.band1.bytes=1830 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=1830 git.pack.trailer=fb03183b7909876778f740d196d7516811003517Open pack map
fetchtree:0200200 B · hit3 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=4 git.response.bytes=200 git.response.cache=HIT git.response.duration_ms=3 git.fetch.filter=tree:0 git.fetch.wants=9988d47506dcbe3004b8b72cbdb9d66d6d75cda4 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=200 git.pkt.payload.max=173 git.sideband.band1.bytes=173 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=173 git.pack.trailer=948ee807a1ee817af67f2df94421a202e82325f9Open pack map
fetchtree:0200289 B · hit4 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=217 git.response.bytes=289 git.response.cache=HIT git.response.duration_ms=4 git.fetch.filter=tree:0 git.fetch.wants=86a13f848f75f5d885c75aa02d7eff6ecdc7349d git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=289 git.pkt.payload.max=262 git.sideband.band1.bytes=262 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=262 git.pack.trailer=7f5e9a5963305286f535c0b6b2cedf1990871d65Open pack map
fetch2004.5 KiB217 ms
git.upload-pack fetch http.response.status_code=200 git.response.bytes=4599 git.response.cache=MISS git.response.duration_ms=217 git.fetch.wants=285fe04858f0665b22ec8ebc9fe66f9b2ca19c80 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=4599 git.pkt.payload.max=4572 git.sideband.band1.bytes=4572 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0
Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.
- Remote
- https://gitlab.com/gitlab-org/cli
- Ref
- refs/heads/main
- Commit
- 0dd7574dce9e385c5c30540e6c15657adc6bdce9
- cf-ray
- a5e2a1831f571293
- Request
- 6c8632ba…
- Protocol
- v2 · sha1
- Agent
- git/2.56.g1891de4-Linux
- Filter
- advertised
- Fetch
- shallow wait-for-done filter
- Capabilities
- agent ls-refs fetch server-option object-format