Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit 7129bb9

Browse files
committed
add better warning for no cert verify
1 parent 5306d58 commit 7129bb9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/kotlin/com/bridgecrew/ui/CheckovSettingsComponent.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CheckovSettingsComponent () {
1818

1919
init {
2020
rootPanel.layout = GridLayoutManager(1, 2, Insets(0, 0, 0, 0), -1, -1)
21-
val settingsPanel = JPanel(GridLayoutManager(4, 2, Insets(0, 0, 0, 0), -1, -1))
21+
val settingsPanel = JPanel(GridLayoutManager(5, 2, Insets(0, 0, 0, 0), -1, -1))
2222

2323
val apiTokenLabel = JLabel("Token (Required)")
2424
apiTokenLabel.labelFor = apiTokenField
@@ -35,11 +35,14 @@ class CheckovSettingsComponent () {
3535
settingsPanel.add(certificateLabel, createGridRowCol(2,0,GridConstraints.ANCHOR_WEST))
3636
settingsPanel.add(certificateField, createGridRowCol(2,1,GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL))
3737

38-
val noCertVerifyLabel = JLabel("No cert verify - warning: use for testing only")
38+
val noCertVerifyLabel = JLabel("Skip SSL cert verification")
3939
noCertVerifyLabel.labelFor = noCertVerifyField
4040
settingsPanel.add(noCertVerifyLabel, createGridRowCol(3,0,GridConstraints.ANCHOR_WEST))
4141
settingsPanel.add(noCertVerifyField, createGridRowCol(3,1,GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL))
4242

43+
val noCertVerifyWarning = JLabel("Warning: this is risky and prevents detecting invalid certificates - use for testing only")
44+
settingsPanel.add(noCertVerifyWarning, createGridRowCol(4,0,GridConstraints.ANCHOR_WEST))
45+
4346
rootPanel.add(settingsPanel, GridConstraints(
4447
0,
4548
0,

0 commit comments

Comments
 (0)