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

prettier formatting for posture checks from CLI #792

Merged
merged 2 commits into from Jul 14, 2022

Conversation

andrewpmartinez
Copy link
Member

@andrewpmartinez andrewpmartinez commented Jul 13, 2022

The table formatting lib we currently has a design choice where merged row cell values can't be aligned and also miscalculates lengths. jedib0t/go-pretty#207

And another bug with wrapping values where it loses vertical bars.

However, it is better than the output we have now.

╭────────────┬───────────────────┬───────────────┬────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ID         │ NAME              │ TYPE          │ ATTRIBUTES │                                                        CONFIGURATION                                                       │
├────────────┼───────────────────┼───────────────┼────────────┼──────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ DtMM5CCOZ  │ macCheck          │ MAC           │ pc1        │ MAC Address      │                            4b3...ae2 5bc...f57 626...d059cb...c09 e04...d75 e                           │
│                                                                                │                                            0d...296e58......                                            │
├────────────┼───────────────────┼───────────────┼────────────┼──────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ NA8HvBC3Z- │ mfaCheck          │ MFA           │ wiggle     │ Timeout          │                                                  never                                                  │
│            │                   │               │            ├──────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│            │                   │               │            │ Prompt On Wake   │                                                  false                                                  │
│            │                   │               │            ├──────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│            │                   │               │            │ Prompt On Unlock │                                                   true                                                  │
├────────────┼───────────────────┼───────────────┼────────────┼──────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ RwaMDCB3K- │ osCheck           │ OS            │ pc1        │ Windows          │                                          >=10.0.18364 <=10.1.0                                          │
├────────────┼───────────────────┼───────────────┼────────────┼──────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ e6YMDCC3K- │ processCheckMulti │ PROCESS_MULTI │ <none>     │ Semantic         │                                                  AllOf                                                  │
│            │                   │               │            ├──────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│            │                   │               │            │ Path             │                                             C:\process2.exe                                             │
│            │                   │               │            ├──────────────────┼────────────────────────────────────────────────────┬────────────────────────────────────────────────────┤
│            │                   │               │            │                  │ Hashes                                             │ 59e6...3f16                                        │
│            │                   │               │            ├──────────────────┼────────────────────────────────────────────────────┼────────────────────────────────────────────────────┤
│            │                   │               │            │                  │ Signers                                            │ f56d...187a                                        │
├────────────┼───────────────────┼───────────────┼────────────┼──────────────────┼────────────────────────────────────────────────────┴────────────────────────────────────────────────────┤
│ enMM5BB3K- │ domainCheck       │ DOMAIN        │ pc1        │ Windows Domain   │                                         mycompany.com workgroup                                         │
├────────────┼───────────────────┼───────────────┼────────────┼──────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ qNNM5CBOZ- │ processCheck      │ PROCESS       │ pc1        │ Path             │                             C:\Program Files\Sublime Text 3\sublime_text.exe                            │
│            │                   │               │            ├──────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│            │                   │               │            │ Hash             │                                               59e6...3f16                                               │
│            │                   │               │            ├──────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│            │                   │               │            │ Signer           │                                               834f...cf01                                               │
╰────────────┴───────────────────┴───────────────┴────────────┴──────────────────┴────────────────────────────────────────────────────┴────────────────────────────────────────────────────╯

@andrewpmartinez andrewpmartinez requested a review from a team as a code owner July 13, 2022 21:55
@andrewpmartinez andrewpmartinez merged commit ff881a8 into release-next Jul 14, 2022
@andrewpmartinez andrewpmartinez deleted the cli-pretty-auth-policy branch July 14, 2022 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants