Skip to content

OpenAPI Security object needs to have defined rules in its array and rules should be defined in the securityScheme

Description

OpenAPI uses security schemes to reference authentication and authorization schemes. Your APIs should have authentication schemes in place and documented in the OpenAPI specification, as well as applied to individual operations or the entire API in the security details.

Code Example

yaml
components:
security:

Remediation

OpenAPI

Ensure that you have a securityScheme component and application. For example:

Rule Details

FieldValue
IDIAC-1260
SeverityHIGH
IaC TypeOpenAPI
FrameworksOpenAPI
Checkov IDCKV_OPENAPI_4

References