Skip to content

Commit fe3b1cb

Browse files
committed
Address security flags CKV_OPENAPI_4 and CKV_OPENAPI_5
1 parent 3998bc5 commit fe3b1cb

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

Examples/quoteapi/Sources/QuoteAPI/openapi.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1+
# This is an example API definition not suited for production
2+
#
3+
# In real life scenario, you must
4+
# 1. Ensure that the global security field has rules defined
5+
# 2. Ensure that security operations is not empty.
6+
# https://learn.openapis.org/specification/security.html
7+
#
8+
# As per Checkov CKV_OPENAPI_4 and CKV_OPENAPI_5
9+
110
openapi: 3.1.0
211
info:
312
title: StockQuoteService
413
version: 1.0.0
5-
14+
15+
# security:
16+
# - defaultApiKey: []
17+
618
components:
719
schemas:
820
quote:
@@ -54,3 +66,5 @@ paths:
5466
description: Authentication required
5567
404:
5668
description: Not Found
69+
# security:
70+
# - defaultApiKey: []

0 commit comments

Comments
 (0)