知识卡片
网关不能代替纵深认证
网关可集中执行认证、授权、限流等公共策略,但后端服务还应校验必要的身份和权限。这样网关被误配或绕过时,不会自动获得对全部内部资源的访问权。集中入口是第一道边界,不是唯一的信任依据。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Architecture of Distributed Systems · 查看原书依据
The API Gateway can abstract away the primary authentication and authorization of every request from the backend services, serving as the first line of defense. While the API Gateway maintains the primary knowledge of who is authorized to call a particular service, it is considered a security best practice for the backend microservices to also implement their own lightweight authentication checks. This defense-in-depth approach ensures
参考来源
- 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第03章《Architecture of Distributed Systems》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch03.xhtml)
- 结论依据:原文给出本卡对象的职责及相关使用情境,本卡保留相应边界,不将具体产品功能或概述推广为无条件保证。
- 原始内容:The API Gateway can abstract away the primary authentication and authorization of every request from the backend services, serving as the first line of defense. While the API Gateway maintains the primary knowledge of who is authorized to call a particular service, it is considered a security best practice for the backend microservices to also implement their own lightweight authentication checks. This defense-in-depth approach ensures