Skip to content

Commit

Permalink
Merge pull request #38 from PrimalPimmy/tlsfix
Browse files Browse the repository at this point in the history
TLS checking logic change and removed tests
  • Loading branch information
nyrahul authored Jun 28, 2024
2 parents cd2780f + 153b162 commit 10af489
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 63 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/ci-test-ginkgo.yml

This file was deleted.

5 changes: 3 additions & 2 deletions src/findings_tls
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ k8tls_tls_01checkversion()
{
do_openssl_scan
[[ "$TLS_Status" != "TLS" ]] && return # no finding
if [ "$TLS_Protocol_version" != "TLSv1.2" ] || [ "$TLS_Protocol_version" != "TLSv1.3" ]; then
if [ "$TLS_Protocol_version" != "TLSv1.2" ] && [ "$TLS_Protocol_version" != "TLSv1.3" ]; then
status="FAIL"
fi

cat << EOF >> $TMPJSONSEC
{
"plugin": "tls-version",
Expand All @@ -81,6 +81,7 @@ k8tls_tls_01checkversion()
"status": "$status"
}
EOF
fi
}

k8tls_tls_02certificateChecks()
Expand Down

0 comments on commit 10af489

Please sign in to comment.