Commit eaf5809
fix(cli): tidy SSL baseline block in checks get --result [SIM-291] (#1405)
Three result-rendering fixes to the SSL security-baseline block:
- Colour the baseline verdict correctly: it was compared to 'PASS' (uppercase)
so a lowercase 'pass' always fell through to red. Normalise and map
pass→green / warn→yellow / fail→red.
- Drop the per-rule config-time severity suffix ((fail)/(ignore)) — it's a
configuration concern, confusing in a result (a green ✔ next to "fail").
- Show the observed value per rule (e.g. "min TLS version: TLS1.3",
"min key size: 256-bit", "weak cipher suite: <suite>") pulled from the SSL
response; rules without a single scalar value (known bad CA, SCT present)
stay name-only.
Snapshots + assertions updated; all check-result-detail tests pass.
Claude-Session: https://claude.ai/code/session_01NC9pESYE5wGqy5TKRzufyc
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent cdf176f commit eaf5809
3 files changed
Lines changed: 64 additions & 33 deletions
File tree
- packages/cli/src/formatters
- __tests__
- __snapshots__
Lines changed: 18 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
583 | | - | |
584 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
592 | | - | |
593 | | - | |
594 | | - | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1088 | 1115 | | |
1089 | 1116 | | |
1090 | | - | |
| 1117 | + | |
1091 | 1118 | | |
1092 | 1119 | | |
1093 | | - | |
| 1120 | + | |
1094 | 1121 | | |
1095 | 1122 | | |
1096 | 1123 | | |
| |||
1099 | 1126 | | |
1100 | 1127 | | |
1101 | 1128 | | |
1102 | | - | |
| 1129 | + | |
1103 | 1130 | | |
1104 | 1131 | | |
1105 | 1132 | | |
| |||
1114 | 1141 | | |
1115 | 1142 | | |
1116 | 1143 | | |
1117 | | - | |
| 1144 | + | |
1118 | 1145 | | |
1119 | 1146 | | |
1120 | 1147 | | |
1121 | 1148 | | |
1122 | 1149 | | |
1123 | 1150 | | |
1124 | | - | |
| 1151 | + | |
1125 | 1152 | | |
1126 | | - | |
| 1153 | + | |
1127 | 1154 | | |
1128 | 1155 | | |
1129 | 1156 | | |
| |||
1138 | 1165 | | |
1139 | 1166 | | |
1140 | 1167 | | |
1141 | | - | |
| 1168 | + | |
1142 | 1169 | | |
1143 | 1170 | | |
1144 | 1171 | | |
1145 | | - | |
| 1172 | + | |
1146 | 1173 | | |
1147 | 1174 | | |
1148 | 1175 | | |
| |||
1176 | 1203 | | |
1177 | 1204 | | |
1178 | 1205 | | |
1179 | | - | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
1180 | 1211 | | |
1181 | 1212 | | |
1182 | 1213 | | |
| |||
0 commit comments