知识卡片
由观测恢复契约草稿
存量接口先盘点,再从源码或授权的测试流量生成 OpenAPI 草稿。流量可由代理转成定义,也能先生成 HAR 再转换。采样只覆盖已见情形,应复核缺失的方法、反例和认证边界,保护敏感样本,再让草稿参与设计检查与治理。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 自定义 Lint 与安全检查 10.2.12 Validating traffic in the gateway using OpenAPI · 查看原书依据
I’ve discussed API security linting checks in your API definition file to detect vulnerabilities, but what if your API doesn’t have an OpenAPI definition available? Many organizations have APIs that haven’t been properly documented. A good place to start then is to document the API—it’s difficult to protect APIs you don’t know about.
参考来源
- 位置:《Automating API Delivery APIOps with OpenAPI》《第 10 章 自定义 Lint 与安全检查》(10.2.12 Validating traffic in the gateway using OpenAPI;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-10.xhtml#p185)
- 结论依据:原文说明在没有定义的存量系统中,可由代码或采集流量获得定义。
- 原始内容:I’ve discussed API security linting checks in your API definition file to detect vulnerabilities, but what if your API doesn’t have an OpenAPI definition available? Many organizations have APIs that haven’t been properly documented. A good place to start then is to document the API—it’s difficult to protect APIs you don’t know about.