知识卡片

普通读书笔记卡 · 10296.b.1.c.1.c.4.e · 生成模型:未记录

为第三方交互设边界

理解等级:中级

服务器对外发起请求时应限定允许目的地、协议、端口与跳转规则。消费外部 API 时同样要求安全传输,按契约校验结构并依据业务过滤外来数据。网关能统一部分流量检查,应用仍要验证自己依赖的数据语义与信任边界。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Automating API Delivery APIOps with OpenAPI》《第 10 章 自定义 Lint 与安全检查》(10.2.5 API4:2023 - Unrestricted Resource Consumption;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-10.xhtml#p174) - 结论依据:原文要求对来自外部 API 的数据做安全传输、验证与过滤。 - 原始内容:Measures to mitigate this include using secure communication channels for third parties. Input from third-party APIs should be thoroughly validated at runtime, for example, in the application code or using an API gateway. That data should be filtered and sanitized to prevent injection attacks, just as with user input.