Skip to content

Improve cilium trace output to be more clear  #1610

@techcet

Description

@techcet

cilium policy trace output is somewhat confusing.
Improvement requested to remove redundancies ( Result: ALLOWED vs last line Verdict: Allowed). Redundancy caused by tracing output produced by agent via API, as well as the CLI tool itself (reference: @tgraf ).

Prepending the output of the final fate of the trace with "Final" could be useful, e.g. the last line could be "Final Verdict: xxx".

Tracing From: [container:id.curl] => To: [container:id.httpd] Ports: [80/any]
* Rule 2 {"matchLabels":{"any:id.httpd":""}}: match
    Allows from labels {"matchLabels":{"any:id.curl":""}}
+     Found all required labels
1 rules matched
Result: ALLOWED
L3 verdict: allowed

Resolving egress port policy for [container:id.curl]
* Rule 0 {"matchLabels":{"any:id.curl":""}}: match
  Allows Egress port [{80 tcp}]
1 rules matched
L4 egress verdict: allowed

Resolving ingress port policy for [container:id.httpd]
* Rule 2 {"matchLabels":{"any:id.httpd":""}}: match
  Allows Ingress port [{80 tcp}]
1 rules matched
L4 ingress verdict: allowed

Verdict: allowed

Metadata

Metadata

Assignees

Labels

requires-doc-changeRequires updates to the documentation as part of the development effort.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions