Skip to content

Commit 7bbc2bb

Browse files
committed
Add level2 headings to Security Considerations doc
1 parent 3f2e047 commit 7bbc2bb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

SECURITY_CONSIDERATIONS.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
# Security Considerations
22

3+
## OpenAPI Document Formats
4+
35
OpenAPI documents use JSON, YAML, and JSON Schema, and therefore share their security considerations:
46
- [JSON](https://www.iana.org/assignments/media-types/application/json)
57
- [YAML](https://www.iana.org/assignments/media-types/application/yaml)
68
- [JSON Schema Core](https://json-schema.org/draft/2020-12/json-schema-core#section-13)
79
- [JSON Schema Validation](https://json-schema.org/draft/2020-12/json-schema-validation#name-security-considerations)
810

11+
## Tooling and Usage Scenarios
12+
913
In addition, OpenAPI documents are processed by a wide variety of tooling for numerous different purposes, such as client code generation, documentation generation, server side routing, and API testing. OpenAPI document authors must consider the risks of the scenarios where the OpenAPI document may be used.
1014

15+
## Security Schemes
16+
1117
An OpenAPI document describes the security schemes used to protect the resources it defines. The security schemes available offer varying degrees of protection. Factors such as the sensitivity of the data and the potential impact of a security breach should guide the selection of security schemes for the API resources. Some security schemes, such as basic auth and OAuth Implicit flow, are supported for compatibility with existing APIs. However, their inclusion in OpenAPI does not constitute an endorsement of their use, particularly for highly sensitive data or operations.
1218

19+
## Handling External Resources
20+
1321
OpenAPI documents may contain references to external resources that may be dereferenced automatically by consuming tools. External resources may be hosted on different domains that may be untrusted. References in an OpenAPI document, or across OpenAPI documents may cause a cycle. Tooling must detect and handle cycles to prevent resource exhaustion.
1422

23+
## Markdown and HTML Sanitization
24+
1525
Certain properties allow the use of Markdown which can contain HTML including script. It is the responsibility of tooling to appropriately sanitize the Markdown.

0 commit comments

Comments
 (0)