知识卡片
服务身份支撑默认拒绝
服务间授权要明确谁可调用谁。先默认拒绝,再按源服务和目标服务逐项放行,可缩小意外通信面。代理验证调用方服务身份后执行允许或拒绝规则;上线前需列全合法调用,避免默认拒绝切断正常链路。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
Intentions control which services can communicate with each other and are enforced by the sidecar proxy on inbound connections. The identity of the inbound service is verified by its TLS client certificate, and Consul provides each service with an identity encoded as a TLS certificate. This certificate is used to establish and accept connections to and from other services.9 The sidecar proxy then checks if an intention exists that authorizes the inbound service to communicate with the destination service.
参考来源
- 位置:《Mastering API Architecture》第4章《Service Mesh: Service-to-Service Traffic Management》之《Network Segmentation with Consul》(源文件:_epub-src/OEBPS/ch04.xhtml)
- 结论依据:原文介绍 Consul intentions 以服务名授权,使用 TLS 客户端证书核验调用方,并演示从全放行改为默认拒绝后逐项授权。
- 原始内容:Intentions control which services can communicate with each other and are enforced by the sidecar proxy on inbound connections. The identity of the inbound service is verified by its TLS client certificate, and Consul provides each service with an identity encoded as a TLS certificate. This certificate is used to establish and accept connections to and from other services. 9 The sidecar proxy then checks if an intention exists that authorizes the inbound service to communicate with the destination service.