{"action":"created","comment":{"url":"https://api.github.com/repos/servicemesher/trans/pulls/comments/209482728","pull_request_review_id":145504184,"id":209482728,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTQ4MjcyOA==","diff_hunk":"@@ -0,0 +1,95 @@\n+> 原文地址：<https://cilium.io/blog/2018/08/07/istio-10-cilium/>\n+>\n+> 作者：[Cilium](https://cilium.io)\n+>\n+> 译者：[navy](https://github.com/meua)\n+>\n+> 校对：[宋净超](http://jimmysong.io)\n+# Istio 1.0: Cilium通过Socket感知BPF程序增强Istio\n+\n+上周Istio 1.0 发布，Cilium社区祝贺所有Istio贡献者为此付出的巨大努力。我们很幸运能够参与社区活动，为Istio做出贡献，并帮助一些用户通过Istio和Cilium进行生产部署。如果您有兴趣在深入了解技术细节之前了解Istio + Cilium的用户故事,请考虑阅读HP FitStation团队(最大的Cilium + Istio用户之一)发布的以下Istio博客: [Istio是惠普FitStation平台的游戏规则的改变者](https://istio.io/blog/2018/hp/).\n+\n+本博客将介绍BPF和Cilium如何增强Istio的一些细节：\n+- 增强安全\n+    - 使用socket感知BPF程序为多容器pods提供最小权限\n+    - 防止受损的sidecar代理和绕过sidecar协议\n+    - 使用BPF强制所有应用程序流量经过sidecar代理\n+- 开启Istio对外部服务的支持\n+    - 使用socket感知BPF程序和kTLS提供tls链接加密的可视化和控制管理\n+- 性能\n+    - 高效网络和socket重定向加速istio性能\n+\n+#### Cilium是什么？\n+\n+Cilium是一个开源软件，用于透明保护在使用Kubernetes，Docker和Mesos等Linux容器管理平台部署的应用程序服务之间的网络和API连接。\n+Cilium的基础是一种名为BPF的新Linux内核技术，这使得能够在Linux自身内动态植入强大的安全性，可见性和网络控制逻辑。除了提供传统的网络级安全性之外，BPF的灵活性还可以在API和进程级别上实现安全性，以保护容器或容器内的通信。由于BPF在Linux内核中运行，因此无需对应用程序代码或容器配置进行任何更改便可以应用和更新Cilium安全策略。\n+\n+有关Cilium的更详细的一般性介绍，请参阅[Cilium简介](http://docs.cilium.io/en/v1.1/intro/)部分。\n+\n+#### Istio是什么？\n+\n+Istio提供了一种通过负载均衡、服务到服务身份验证、监控等且没有侵入性创建部署服务网络的简便方法。可以通过在整个环境中部署特殊的sidecar代理来添加对服务的支持，该代理拦截微服务之间的所有网络通信，使用Istio的控制平面功能进行配置和管理。\n+![](https://cilium.io/arch-bb79ec268e3cd946a6c5284bad8eb215.svg)\n+您可以在[Istio文档](https://istio.io/docs/)中阅读有关Istio概念和架构的更多信息。\n+\n+#### Istio高效网络\n+Istio和Cilium之间最基本的协作形式是Cilium CNI插件通过将所有sidecar代理连接在一起并通过提供代理和Istio控制平面之间的连接，为Istio提供网络连接。Cilium还确保Istio托管服务可以与不受Istio管理的pod进行通信。\n+\n+下图说明了Istio控制平面，sidecar代理和CNI插件如何相互叠加：\n+![](https://cilium.io/static/cilium_istio_networking-68a7e3c5272d030e8ca3a717cc348631-84ad3.png)\n+在这种模式下，所有Istio系统组件都受益于Cilium在Linux内核中基于BPF的高效网络功能。BPF是网络和数据包过滤技术(如iptables等)的替代方案。您可以在以下博客文章中找到有关BPF推动这一转变的原因的更多信息：[为什么内核社区用BPF替换iptables？](https://cilium.io/blog/2018/04/17/why-is-the-kernel-community-replacing-iptables/)\n+\n+#### Socket级别重定向加速Istio和Envoy\n+\n+Istio服务网格体系结构要求将参与服务网格的所有pod的出站和入站请求的所有网络流量都要重定向到sidecar代理。sidecar代理将终止所有TCP连接并执行诸如遥测，重试，路由，相互TLS之类的服务,和代表服务的授权，并使用辅助所谓的上游TCP连接来到达目的地服务,这正是服务之间支持双向TLS,没有代码侵入性原因所在。然而，当使用标准的基于IP的工具（如iptables）实现重定向时，这种重定向可能会很费事，因为必须多次遍历整个TCP/IP堆栈。","path":"201808/How-Cilium-enhances-Istio-with-socket-aware-BPF-programs.md","position":null,"original_position":44,"commit_id":"5d81dacec736ead51718441fe803fb9da5ff8266","original_commit_id":"811b005f58ae861bb36d66a199d102d8ff4bad25","user":{"login":"meua","id":11570442,"node_id":"MDQ6VXNlcjExNTcwNDQy","avatar_url":"https://avatars3.githubusercontent.com/u/11570442?v=4","gravatar_id":"","url":"https://api.github.com/users/meua","html_url":"https://github.com/meua","followers_url":"https://api.github.com/users/meua/followers","following_url":"https://api.github.com/users/meua/following{/other_user}","gists_url":"https://api.github.com/users/meua/gists{/gist_id}","starred_url":"https://api.github.com/users/meua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meua/subscriptions","organizations_url":"https://api.github.com/users/meua/orgs","repos_url":"https://api.github.com/users/meua/repos","events_url":"https://api.github.com/users/meua/events{/privacy}","received_events_url":"https://api.github.com/users/meua/received_events","type":"User","site_admin":false},"body":"已修改","created_at":"2018-08-13T02:59:25Z","updated_at":"2018-08-13T02:59:25Z","html_url":"https://github.com/servicemesher/trans/pull/80#discussion_r209482728","pull_request_url":"https://api.github.com/repos/servicemesher/trans/pulls/80","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/servicemesher/trans/pulls/comments/209482728"},"html":{"href":"https://github.com/servicemesher/trans/pull/80#discussion_r209482728"},"pull_request":{"href":"https://api.github.com/repos/servicemesher/trans/pulls/80"}},"in_reply_to_id":209451632},"pull_request":{"url":"https://api.github.com/repos/servicemesher/trans/pulls/80","id":207770545,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3NzcwNTQ1","html_url":"https://github.com/servicemesher/trans/pull/80","diff_url":"https://github.com/servicemesher/trans/pull/80.diff","patch_url":"https://github.com/servicemesher/trans/pull/80.patch","issue_url":"https://api.github.com/repos/servicemesher/trans/issues/80","number":80,"state":"open","locked":false,"title":"Create How-Cilium-enhances-Istio-with-socket-aware-BPF-programs.md","user":{"login":"meua","id":11570442,"node_id":"MDQ6VXNlcjExNTcwNDQy","avatar_url":"https://avatars3.githubusercontent.com/u/11570442?v=4","gravatar_id":"","url":"https://api.github.com/users/meua","html_url":"https://github.com/meua","followers_url":"https://api.github.com/users/meua/followers","following_url":"https://api.github.com/users/meua/following{/other_user}","gists_url":"https://api.github.com/users/meua/gists{/gist_id}","starred_url":"https://api.github.com/users/meua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meua/subscriptions","organizations_url":"https://api.github.com/users/meua/orgs","repos_url":"https://api.github.com/users/meua/repos","events_url":"https://api.github.com/users/meua/events{/privacy}","received_events_url":"https://api.github.com/users/meua/received_events","type":"User","site_admin":false},"body":"翻译的文档的 Issue 编号是：#编号78\r\n","created_at":"2018-08-11T11:19:43Z","updated_at":"2018-08-13T02:59:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd6dd3399ef7ba412339c55bc0329a2e7c8b1147","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/servicemesher/trans/pulls/80/commits","review_comments_url":"https://api.github.com/repos/servicemesher/trans/pulls/80/comments","review_comment_url":"https://api.github.com/repos/servicemesher/trans/pulls/comments{/number}","comments_url":"https://api.github.com/repos/servicemesher/trans/issues/80/comments","statuses_url":"https://api.github.com/repos/servicemesher/trans/statuses/5d81dacec736ead51718441fe803fb9da5ff8266","head":{"label":"meua:master","ref":"master","sha":"5d81dacec736ead51718441fe803fb9da5ff8266","user":{"login":"meua","id":11570442,"node_id":"MDQ6VXNlcjExNTcwNDQy","avatar_url":"https://avatars3.githubusercontent.com/u/11570442?v=4","gravatar_id":"","url":"https://api.github.com/users/meua","html_url":"https://github.com/meua","followers_url":"https://api.github.com/users/meua/followers","following_url":"https://api.github.com/users/meua/following{/other_user}","gists_url":"https://api.github.com/users/meua/gists{/gist_id}","starred_url":"https://api.github.com/users/meua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meua/subscriptions","organizations_url":"https://api.github.com/users/meua/orgs","repos_url":"https://api.github.com/users/meua/repos","events_url":"https://api.github.com/users/meua/events{/privacy}","received_events_url":"https://api.github.com/users/meua/received_events","type":"User","site_admin":false},"repo":{"id":143876239,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM4NzYyMzk=","name":"trans","full_name":"meua/trans","owner":{"login":"meua","id":11570442,"node_id":"MDQ6VXNlcjExNTcwNDQy","avatar_url":"https://avatars3.githubusercontent.com/u/11570442?v=4","gravatar_id":"","url":"https://api.github.com/users/meua","html_url":"https://github.com/meua","followers_url":"https://api.github.com/users/meua/followers","following_url":"https://api.github.com/users/meua/following{/other_user}","gists_url":"https://api.github.com/users/meua/gists{/gist_id}","starred_url":"https://api.github.com/users/meua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meua/subscriptions","organizations_url":"https://api.github.com/users/meua/orgs","repos_url":"https://api.github.com/users/meua/repos","events_url":"https://api.github.com/users/meua/events{/privacy}","received_events_url":"https://api.github.com/users/meua/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meua/trans","description":"打造Service Mesh领域最全的中文资料库","fork":true,"url":"https://api.github.com/repos/meua/trans","forks_url":"https://api.github.com/repos/meua/trans/forks","keys_url":"https://api.github.com/repos/meua/trans/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meua/trans/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meua/trans/teams","hooks_url":"https://api.github.com/repos/meua/trans/hooks","issue_events_url":"https://api.github.com/repos/meua/trans/issues/events{/number}","events_url":"https://api.github.com/repos/meua/trans/events","assignees_url":"https://api.github.com/repos/meua/trans/assignees{/user}","branches_url":"https://api.github.com/repos/meua/trans/branches{/branch}","tags_url":"https://api.github.com/repos/meua/trans/tags","blobs_url":"https://api.github.com/repos/meua/trans/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meua/trans/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meua/trans/git/refs{/sha}","trees_url":"https://api.github.com/repos/meua/trans/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meua/trans/statuses/{sha}","languages_url":"https://api.github.com/repos/meua/trans/languages","stargazers_url":"https://api.github.com/repos/meua/trans/stargazers","contributors_url":"https://api.github.com/repos/meua/trans/contributors","subscribers_url":"https://api.github.com/repos/meua/trans/subscribers","subscription_url":"https://api.github.com/repos/meua/trans/subscription","commits_url":"https://api.github.com/repos/meua/trans/commits{/sha}","git_commits_url":"https://api.github.com/repos/meua/trans/git/commits{/sha}","comments_url":"https://api.github.com/repos/meua/trans/comments{/number}","issue_comment_url":"https://api.github.com/repos/meua/trans/issues/comments{/number}","contents_url":"https://api.github.com/repos/meua/trans/contents/{+path}","compare_url":"https://api.github.com/repos/meua/trans/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meua/trans/merges","archive_url":"https://api.github.com/repos/meua/trans/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meua/trans/downloads","issues_url":"https://api.github.com/repos/meua/trans/issues{/number}","pulls_url":"https://api.github.com/repos/meua/trans/pulls{/number}","milestones_url":"https://api.github.com/repos/meua/trans/milestones{/number}","notifications_url":"https://api.github.com/repos/meua/trans/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meua/trans/labels{/name}","releases_url":"https://api.github.com/repos/meua/trans/releases{/id}","deployments_url":"https://api.github.com/repos/meua/trans/deployments","created_at":"2018-08-07T13:21:26Z","updated_at":"2018-08-13T02:58:16Z","pushed_at":"2018-08-13T02:58:14Z","git_url":"git://github.com/meua/trans.git","ssh_url":"git@github.com:meua/trans.git","clone_url":"https://github.com/meua/trans.git","svn_url":"https://github.com/meua/trans","homepage":"","size":365,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"servicemesher:master","ref":"master","sha":"d120ad8dcc617e1dab55c38b5655d84108edcd63","user":{"login":"servicemesher","id":39185300,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTg1MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/39185300?v=4","gravatar_id":"","url":"https://api.github.com/users/servicemesher","html_url":"https://github.com/servicemesher","followers_url":"https://api.github.com/users/servicemesher/followers","following_url":"https://api.github.com/users/servicemesher/following{/other_user}","gists_url":"https://api.github.com/users/servicemesher/gists{/gist_id}","starred_url":"https://api.github.com/users/servicemesher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servicemesher/subscriptions","organizations_url":"https://api.github.com/users/servicemesher/orgs","repos_url":"https://api.github.com/users/servicemesher/repos","events_url":"https://api.github.com/users/servicemesher/events{/privacy}","received_events_url":"https://api.github.com/users/servicemesher/received_events","type":"Organization","site_admin":false},"repo":{"id":135409723,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU0MDk3MjM=","name":"trans","full_name":"servicemesher/trans","owner":{"login":"servicemesher","id":39185300,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTg1MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/39185300?v=4","gravatar_id":"","url":"https://api.github.com/users/servicemesher","html_url":"https://github.com/servicemesher","followers_url":"https://api.github.com/users/servicemesher/followers","following_url":"https://api.github.com/users/servicemesher/following{/other_user}","gists_url":"https://api.github.com/users/servicemesher/gists{/gist_id}","starred_url":"https://api.github.com/users/servicemesher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servicemesher/subscriptions","organizations_url":"https://api.github.com/users/servicemesher/orgs","repos_url":"https://api.github.com/users/servicemesher/repos","events_url":"https://api.github.com/users/servicemesher/events{/privacy}","received_events_url":"https://api.github.com/users/servicemesher/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/servicemesher/trans","description":"打造Service Mesh领域最全的中文资料库","fork":false,"url":"https://api.github.com/repos/servicemesher/trans","forks_url":"https://api.github.com/repos/servicemesher/trans/forks","keys_url":"https://api.github.com/repos/servicemesher/trans/keys{/key_id}","collaborators_url":"https://api.github.com/repos/servicemesher/trans/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/servicemesher/trans/teams","hooks_url":"https://api.github.com/repos/servicemesher/trans/hooks","issue_events_url":"https://api.github.com/repos/servicemesher/trans/issues/events{/number}","events_url":"https://api.github.com/repos/servicemesher/trans/events","assignees_url":"https://api.github.com/repos/servicemesher/trans/assignees{/user}","branches_url":"https://api.github.com/repos/servicemesher/trans/branches{/branch}","tags_url":"https://api.github.com/repos/servicemesher/trans/tags","blobs_url":"https://api.github.com/repos/servicemesher/trans/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/servicemesher/trans/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/servicemesher/trans/git/refs{/sha}","trees_url":"https://api.github.com/repos/servicemesher/trans/git/trees{/sha}","statuses_url":"https://api.github.com/repos/servicemesher/trans/statuses/{sha}","languages_url":"https://api.github.com/repos/servicemesher/trans/languages","stargazers_url":"https://api.github.com/repos/servicemesher/trans/stargazers","contributors_url":"https://api.github.com/repos/servicemesher/trans/contributors","subscribers_url":"https://api.github.com/repos/servicemesher/trans/subscribers","subscription_url":"https://api.github.com/repos/servicemesher/trans/subscription","commits_url":"https://api.github.com/repos/servicemesher/trans/commits{/sha}","git_commits_url":"https://api.github.com/repos/servicemesher/trans/git/commits{/sha}","comments_url":"https://api.github.com/repos/servicemesher/trans/comments{/number}","issue_comment_url":"https://api.github.com/repos/servicemesher/trans/issues/comments{/number}","contents_url":"https://api.github.com/repos/servicemesher/trans/contents/{+path}","compare_url":"https://api.github.com/repos/servicemesher/trans/compare/{base}...{head}","merges_url":"https://api.github.com/repos/servicemesher/trans/merges","archive_url":"https://api.github.com/repos/servicemesher/trans/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/servicemesher/trans/downloads","issues_url":"https://api.github.com/repos/servicemesher/trans/issues{/number}","pulls_url":"https://api.github.com/repos/servicemesher/trans/pulls{/number}","milestones_url":"https://api.github.com/repos/servicemesher/trans/milestones{/number}","notifications_url":"https://api.github.com/repos/servicemesher/trans/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/servicemesher/trans/labels{/name}","releases_url":"https://api.github.com/repos/servicemesher/trans/releases{/id}","deployments_url":"https://api.github.com/repos/servicemesher/trans/deployments","created_at":"2018-05-30T08:06:56Z","updated_at":"2018-08-10T06:34:13Z","pushed_at":"2018-08-13T02:58:15Z","git_url":"git://github.com/servicemesher/trans.git","ssh_url":"git@github.com:servicemesher/trans.git","clone_url":"https://github.com/servicemesher/trans.git","svn_url":"https://github.com/servicemesher/trans","homepage":"","size":346,"stargazers_count":105,"watchers_count":105,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":26,"open_issues":5,"watchers":105,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/servicemesher/trans/pulls/80"},"html":{"href":"https://github.com/servicemesher/trans/pull/80"},"issue":{"href":"https://api.github.com/repos/servicemesher/trans/issues/80"},"comments":{"href":"https://api.github.com/repos/servicemesher/trans/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/servicemesher/trans/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/servicemesher/trans/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/servicemesher/trans/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/servicemesher/trans/statuses/5d81dacec736ead51718441fe803fb9da5ff8266"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"meua"}}