{"id":1857,"date":"2025-01-26T14:59:30","date_gmt":"2025-01-26T06:59:30","guid":{"rendered":"https:\/\/www.fanyamin.com\/wordpress\/?p=1857"},"modified":"2025-01-26T14:59:30","modified_gmt":"2025-01-26T06:59:30","slug":"teleport-%e4%b8%ad-tbot-%e4%b8%8e-teleport-cluster-%e7%9a%84%e5%ae%89%e5%85%a8%e9%80%9a%e4%bf%a1","status":"publish","type":"post","link":"https:\/\/www.fanyamin.com\/wordpress\/?p=1857","title":{"rendered":"teleport \u4e2d tbot \u4e0e teleport cluster \u7684\u5b89\u5168\u901a\u4fe1"},"content":{"rendered":"<h3>1. <strong>\u8bc1\u4e66\u7b7e\u540d\u8fc7\u7a0b\u6982\u8ff0<\/strong><\/h3>\n<p>\u5f53 <code>tbot<\/code> \u8bf7\u6c42\u8bc1\u4e66\u65f6\uff0c\u5b83\u4e0e Teleport \u96c6\u7fa4\u7684 <code>Auth Service<\/code> \u4ea4\u4e92\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u79c1\u94a5\u751f\u6210<\/strong>\uff1a<\/p>\n<ul>\n<li><code>tbot<\/code> \u672c\u5730\u751f\u6210\u81ea\u5df1\u7684\u79c1\u94a5\u548c\u516c\u94a5\uff08\u901a\u5e38\u4f7f\u7528 Elliptic Curve \u6216 RSA \u7b97\u6cd5\uff09\u3002<\/li>\n<li>\u8fd9\u5bf9\u5bc6\u94a5\u4ec5\u5b58\u50a8\u5728 <code>tbot<\/code> \u7684\u73af\u5883\u4e2d\uff0c\u79c1\u94a5\u4e0d\u4f1a\u53d1\u9001\u5230 Teleport \u96c6\u7fa4\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>CSR\uff08Certificate Signing Request\uff09\u751f\u6210<\/strong>\uff1a<\/p>\n<ul>\n<li><code>tbot<\/code> \u4f7f\u7528\u751f\u6210\u7684\u516c\u94a5\u521b\u5efa\u4e00\u4e2a <strong>CSR\uff08\u8bc1\u4e66\u7b7e\u540d\u8bf7\u6c42\uff09<\/strong>\uff0c\u5e76\u5c06\u5176\u53d1\u9001\u5230 Teleport \u96c6\u7fa4\u7684 <code>Auth Service<\/code>\u3002<\/li>\n<li>CSR \u5305\u542b\uff1a\n<ul>\n<li>\u516c\u94a5<\/li>\n<li>\u8bc1\u4e66\u7528\u9014\uff08\u5982 SSH\u3001Kubernetes\u3001\u6570\u636e\u5e93\u7b49\uff09<\/li>\n<li><code>tbot<\/code> \u7684\u8eab\u4efd\u4fe1\u606f\uff08\u4f8b\u5982\u89d2\u8272\u3001\u7528\u6237\u540d\u7b49\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>CA \u7b7e\u540d<\/strong>\uff1a<\/p>\n<ul>\n<li>Teleport \u96c6\u7fa4\u7684 <code>Auth Service<\/code> \u9a8c\u8bc1 <code>tbot<\/code> \u7684\u8eab\u4efd\uff08\u57fa\u4e8e token \u6216\u5df2\u6709\u8bc1\u4e66\uff09\u3002<\/li>\n<li>\u4e00\u65e6\u8ba4\u8bc1\u901a\u8fc7\uff0c<code>Auth Service<\/code> \u4f7f\u7528 Teleport \u96c6\u7fa4\u7684 CA \u79c1\u94a5\u7b7e\u7f72 <code>tbot<\/code> \u7684\u516c\u94a5\u3002<\/li>\n<li>\u7b7e\u540d\u751f\u6210\u540e\uff0c\u8fd4\u56de\u4e00\u4e2a\u77ed\u671f\u6709\u6548\u7684\u8bc1\u4e66\u7ed9 <code>tbot<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8bc1\u4e66\u4f7f\u7528<\/strong>\uff1a<\/p>\n<ul>\n<li><code>tbot<\/code> \u5c06\u8bc1\u4e66\u4e0e\u81ea\u5df1\u7684\u79c1\u94a5\u7ec4\u5408\u8d77\u6765\uff0c\u7528\u4e8e\u8eab\u4efd\u8ba4\u8bc1\u548c\u901a\u4fe1\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr \/>\n<h3>2. <strong>\u8bc1\u4e66\u7b7e\u540d\u7684\u8d23\u4efb\u5f52\u5c5e<\/strong><\/h3>\n<ul>\n<li>\n<p><strong><code>tbot<\/code> \u7684\u79c1\u94a5\uff1a<\/strong><\/p>\n<ul>\n<li>\u7531 <code>tbot<\/code> \u672c\u5730\u751f\u6210\uff0c\u5e76\u7528\u4e8e\u4e0e\u751f\u6210\u7684\u8bc1\u4e66\u914d\u5bf9\u3002<\/li>\n<li>\u79c1\u94a5\u4ec5\u7528\u4e8e\u8bc1\u660e <code>tbot<\/code> \u5bf9\u8bc1\u4e66\u7684\u63a7\u5236\u6743\uff0c\u6574\u4e2a\u7b7e\u540d\u8fc7\u7a0b\u4e0e\u79c1\u94a5\u65e0\u5173\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>Teleport \u96c6\u7fa4\u7684 CA \u79c1\u94a5\uff1a<\/strong><\/p>\n<ul>\n<li>Teleport \u7684 <code>Auth Service<\/code> \u4f7f\u7528\u96c6\u7fa4\u7684 CA \u79c1\u94a5\u5bf9 <code>tbot<\/code> \u7684\u516c\u94a5\u8fdb\u884c\u7b7e\u540d\u3002<\/li>\n<li>\u8fd9\u786e\u4fdd\u4e86\u8bc1\u4e66\u53d7 Teleport \u96c6\u7fa4\u7684\u4fe1\u4efb\u94fe\u4fdd\u62a4\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>3. <strong>\u4e3a\u4ec0\u4e48\u4e0d\u4f7f\u7528 <code>tbot<\/code> \u7684\u79c1\u94a5\u7b7e\u540d\uff1f<\/strong><\/h3>\n<p><code>tbot<\/code> \u7684\u79c1\u94a5\u4e0d\u4f1a\u7528\u6765\u7b7e\u540d\u8bc1\u4e66\uff0c\u56e0\u4e3a\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u4fe1\u4efb\u6a21\u578b<\/strong>\uff1a<\/p>\n<ul>\n<li>Teleport \u4f7f\u7528\u96c6\u4e2d\u5316\u7684 CA \u6765\u7ba1\u7406\u4fe1\u4efb\u94fe\uff0c\u53ea\u6709\u96c6\u7fa4\u7684 CA \u624d\u80fd\u53d1\u653e\u53ef\u4fe1\u8bc1\u4e66\u3002<\/li>\n<li>\u5982\u679c <code>tbot<\/code> \u7528\u81ea\u5df1\u7684\u79c1\u94a5\u7b7e\u540d\u8bc1\u4e66\uff0c\u5176\u4ed6\u7ec4\u4ef6\u65e0\u6cd5\u9a8c\u8bc1\u8be5\u8bc1\u4e66\u662f\u5426\u53ef\u4fe1\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8bc1\u4e66\u4fe1\u4efb\u94fe<\/strong>\uff1a<\/p>\n<ul>\n<li>\u6240\u6709\u7ec4\u4ef6\uff08\u5982 Teleport \u7684\u8282\u70b9\u548c\u4ee3\u7406\uff09\u90fd\u4fe1\u4efb\u96c6\u7fa4\u7684 CA\u3002<\/li>\n<li>\u5982\u679c\u7531 <code>tbot<\/code> \u81ea\u7b7e\u8bc1\u4e66\uff08self-signed certificate\uff09\uff0c\u5176\u4ed6\u7ec4\u4ef6\u5c06\u65e0\u6cd5\u4fe1\u4efb\u8fd9\u4e9b\u8bc1\u4e66\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5b89\u5168\u6027\u548c\u6743\u9650\u63a7\u5236<\/strong>\uff1a<\/p>\n<ul>\n<li>\u901a\u8fc7 CA \u7edf\u4e00\u7ba1\u7406\u7b7e\u540d\u6743\u9650\uff0c\u53ef\u4ee5\u96c6\u4e2d\u63a7\u5236\u548c\u64a4\u9500\u8bc1\u4e66\uff0c\u800c\u4e0d\u4f9d\u8d56\u4e8e\u6bcf\u4e2a\u72ec\u7acb\u7684 <code>tbot<\/code> \u5b9e\u4f8b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr \/>\n<h3>4. <strong>\u77ed\u671f\u8bc1\u4e66\u7684\u8f6e\u6362\u673a\u5236<\/strong><\/h3>\n<ul>\n<li>Teleport \u96c6\u7fa4\u4f1a\u7b7e\u53d1\u77ed\u671f\u6709\u6548\u7684\u8bc1\u4e66\uff0c\u901a\u5e38\u6709\u6548\u671f\u4e3a\u51e0\u5c0f\u65f6\u3002<\/li>\n<li><code>tbot<\/code> \u4f1a\u5b9a\u671f\u4e0e <code>Auth Service<\/code> \u901a\u4fe1\uff0c\u5728\u8bc1\u4e66\u5373\u5c06\u8fc7\u671f\u65f6\u8bf7\u6c42\u65b0\u8bc1\u4e66\u3002<\/li>\n<li>\u6574\u4e2a\u8f6e\u6362\u8fc7\u7a0b\u4e0e\u521d\u6b21\u7b7e\u540d\u7c7b\u4f3c\uff0c\u7531 Teleport \u7684 CA \u7b7e\u53d1\u65b0\u8bc1\u4e66\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>5. <strong>\u9a8c\u8bc1\u673a\u5236<\/strong><\/h3>\n<ul>\n<li>\u5f53 <code>tbot<\/code> \u4f7f\u7528\u8bc1\u4e66\u4e0e\u5176\u4ed6\u7ec4\u4ef6\u901a\u4fe1\u65f6\uff0c\u5bf9\u65b9\u4f1a\u9a8c\u8bc1\uff1a\n<ol>\n<li>\u8bc1\u4e66\u662f\u5426\u7531\u96c6\u7fa4\u7684 CA \u7b7e\u540d\u3002<\/li>\n<li>\u8bc1\u4e66\u662f\u5426\u6709\u6548\uff08\u672a\u8fc7\u671f\uff0c\u4e14\u6ca1\u6709\u88ab\u64a4\u9500\uff09\u3002<\/li>\n<li>\u8bc1\u4e66\u4e2d\u7684\u8eab\u4efd\u4fe1\u606f\uff08\u5982\u89d2\u8272\uff09\u662f\u5426\u5339\u914d\u8bf7\u6c42\u7684\u6743\u9650\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<hr \/>\n<p>\u603b\u7ed3\uff1a<br \/>\n<code>tbot<\/code> \u7684\u8bc1\u4e66\u662f\u7531 Teleport \u96c6\u7fa4\u7684 CA \u4f7f\u7528\u5176\u79c1\u94a5\u7b7e\u540d\u7684\uff0c\u800c\u4e0d\u662f\u7528 <code>tbot<\/code> \u7684\u79c1\u94a5\u3002<code>tbot<\/code> \u672c\u5730\u751f\u6210\u79c1\u94a5\u548c\u516c\u94a5\u540e\uff0c\u901a\u8fc7 CSR \u8bf7\u6c42\u7531 Teleport \u96c6\u7fa4\u5b8c\u6210\u7b7e\u540d\uff0c\u786e\u4fdd\u6574\u4e2a\u7cfb\u7edf\u7684\u4fe1\u4efb\u94fe\u5b89\u5168\u4e14\u96c6\u4e2d\u5316\u7ba1\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u8bc1\u4e66\u7b7e\u540d\u8fc7\u7a0b\u6982\u8ff0 \u5f53 tbot \u8bf7\u6c42\u8bc1\u4e66\u65f6\uff0c\u5b83\u4e0e Teleport \u96c6\u7fa4\u7684 Auth Service \u4ea4\u4e92\uff1a \u79c1\u94a5\u751f\u6210\uff1a tbot \u672c\u5730\u751f\u6210\u81ea\u5df1\u7684\u79c1\u94a5\u548c\u516c\u94a5\uff08\u901a\u5e38\u4f7f\u7528 Elliptic Curve \u6216 RSA \u7b97\u6cd5\uff09\u3002 \u8fd9\u5bf9\u5bc6\u94a5\u4ec5\u5b58\u50a8\u5728 tbot \u7684\u73af\u5883\u4e2d\uff0c\u79c1\u94a5\u4e0d\u4f1a\u53d1\u9001\u5230 Teleport \u96c6\u7fa4\u3002 CSR\uff08Certificate Signing Request\uff09\u751f\u6210\uff1a tbot \u4f7f\u7528\u751f\u6210\u7684\u516c\u94a5\u521b\u5efa\u4e00\u4e2a CSR\uff08\u8bc1\u4e66\u7b7e\u540d\u8bf7\u6c42\uff09\uff0c\u5e76\u5c06\u5176\u53d1\u9001\u5230 Teleport \u96c6\u7fa4\u7684 Auth Service\u3002 CSR \u5305\u542b\uff1a \u516c\u94a5 \u8bc1\u4e66\u7528\u9014\uff08\u5982 SSH\u3001Kubernetes\u3001\u6570\u636e\u5e93\u7b49\uff09 tbot \u7684\u8eab\u4efd\u4fe1\u606f\uff08\u4f8b\u5982\u89d2\u8272\u3001\u7528\u6237\u540d\u7b49\uff09 CA \u7b7e\u540d\uff1a Teleport \u96c6\u7fa4\u7684 Auth Service \u9a8c\u8bc1 tbot \u7684\u8eab\u4efd\uff08\u57fa\u4e8e token \u6216\u5df2\u6709\u8bc1\u4e66\uff09\u3002 \u4e00\u65e6\u8ba4\u8bc1\u901a\u8fc7\uff0cAuth Service \u4f7f\u7528 Teleport [&hellip;] <a class=\"read-more\" href=\"https:\/\/www.fanyamin.com\/wordpress\/?p=1857\" title=\"Permanent Link to: teleport \u4e2d tbot \u4e0e teleport cluster \u7684\u5b89\u5168\u901a\u4fe1\">&rarr;Read&nbsp;more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1857","post","type-post","status-publish","format-standard","hentry","category-5"],"_links":{"self":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1857"}],"collection":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1857"}],"version-history":[{"count":1,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1857\/revisions"}],"predecessor-version":[{"id":1858,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1857\/revisions\/1858"}],"wp:attachment":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}