Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printer: Display security identity in compact output #717

Merged

Conversation

gandro
Copy link
Member

@gandro gandro commented May 12, 2022

This commit changes the default compact mode output to always display
the Cilium security identity. This is very useful when debugging policy
related issues, as those often occur when an endpoint does not have the
expected security identity assigned to it.

Screenshot below. Note the magenta (identity) fields which are added by this PR.

image

There is no flag to disable those identities in compact mode. Users who rely on stable output are asked to use the json or jsonpb output.

@gandro gandro added ⌨️ area/cli Impacts the command line interface of any command in the repository. release-note/major This PR introduces major new functionality to Hubble. labels May 12, 2022
@gandro gandro requested review from a team and glibsm and removed request for a team May 12, 2022 16:36
This commit changes the default compact mode output to always display
the Cilium security identity. This is very useful when debugging policy
related issues, as those often occur when an endpoint does not have the
expected security identity assigned to it.

Before: `1.1.1.1:31793 -> 2.2.2.2:8080`
After:  `1.1.1.1:31793 (health) -> 2.2.2.2:8080 (identity:12345)`

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
@gandro gandro force-pushed the pr/gandro/add-numeric-identity-to-compact-output branch from f677537 to c092301 Compare May 12, 2022 16:39
Copy link
Collaborator

@michi-covalent michi-covalent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ this will make troubleshooting much easier.

@michi-covalent michi-covalent merged commit f7c66cc into master May 13, 2022
@michi-covalent michi-covalent deleted the pr/gandro/add-numeric-identity-to-compact-output branch May 13, 2022 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⌨️ area/cli Impacts the command line interface of any command in the repository. release-note/major This PR introduces major new functionality to Hubble.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants