{"id":1773,"date":"2025-01-07T17:51:35","date_gmt":"2025-01-07T09:51:35","guid":{"rendered":"https:\/\/www.fanyamin.com\/wordpress\/?p=1773"},"modified":"2025-01-07T22:33:02","modified_gmt":"2025-01-07T14:33:02","slug":"teleport-workload-identity","status":"publish","type":"post","link":"https:\/\/www.fanyamin.com\/wordpress\/?p=1773","title":{"rendered":"teleport workload identity 1"},"content":{"rendered":"<p>refer to <a href=\"https:\/\/goteleport.com\/docs\/enroll-resources\/workload-identity\/introduction\/\">https:\/\/goteleport.com\/docs\/enroll-resources\/workload-identity\/introduction\/<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.fanyamin.com\/wordpress\/wp-content\/uploads\/2025\/01\/image-1736245045318.png\" alt=\"file\" \/><\/p>\n<h2>Workload Identity<\/h2>\n<p>Teleport\u7684\u5de5\u4f5c\u8d1f\u8f7d\u8eab\u4efd\uff08Workload Identity\uff09\u5229\u7528SPIFFE\uff08\u5b89\u5168\u751f\u4ea7\u8eab\u4efd\u6846\u67b6\uff09\u6807\u51c6\uff0c\u4e3a\u73b0\u4ee3\u57fa\u7840\u8bbe\u65bd\u4e2d\u7684\u670d\u52a1\u63d0\u4f9b\u5b89\u5168\u7684\u8eab\u4efd\u8ba4\u8bc1\u3002\u4ee5\u4e0b\u662f\u5173\u4e8eTeleport\u5de5\u4f5c\u8d1f\u8f7d\u8eab\u4efd\u53ca<code>tbot<\/code>\u5982\u4f55\u4f7f\u7528SPIFFE\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<h2>Teleport\u5de5\u4f5c\u8d1f\u8f7d\u8eab\u4efd<\/h2>\n<h3>SPIFFE\u6807\u51c6<\/h3>\n<p>Teleport\u7684\u5de5\u4f5c\u8d1f\u8f7d\u8eab\u4efd\u5b9e\u73b0\u4e86SPIFFE\u6807\u51c6\uff0c\u5141\u8bb8\u4e3a\u6bcf\u4e2a\u5de5\u4f5c\u8d1f\u8f7d\u751f\u6210\u552f\u4e00\u7684SPIFFE ID\u3002\u8fd9\u4e9b\u8eab\u4efd\u4ee5URI\u683c\u5f0f\u8868\u793a\uff0c\u5305\u542b\u4fe1\u4efb\u57df\u548c\u5de5\u4f5c\u8d1f\u8f7d\u6807\u8bc6\u7b26\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u5de5\u4f5c\u8d1f\u8f7d\u53ef\u4ee5\u5728Teleport\u96c6\u7fa4\u5185\u5b89\u5168\u5730\u76f8\u4e92\u8ba4\u8bc1\uff0c\u786e\u4fdd\u53ea\u6709\u6388\u6743\u7684\u670d\u52a1\u80fd\u591f\u8bbf\u95ee\u5f7c\u6b64[1][3][5]\u3002<\/p>\n<h3>SVID\uff08\u53ef\u9a8c\u8bc1\u8eab\u4efd\u6587\u6863\uff09<\/h3>\n<p>\u5728Teleport\u4e2d\uff0cSVID\uff08SPIFFE\u53ef\u9a8c\u8bc1\u8eab\u4efd\u6587\u6863\uff09\u901a\u5e38\u4ee5X.509\u8bc1\u4e66\u6216JWT\u4ee4\u724c\u7684\u5f62\u5f0f\u5b58\u5728\u3002\u8fd9\u4e9bSVID\u7531\u4fe1\u4efb\u57df\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u7b7e\u53d1\uff0c\u8bc1\u660e\u5de5\u4f5c\u8d1f\u8f7d\u7684\u8eab\u4efd\u3002\u5de5\u4f5c\u8d1f\u8f7d\u901a\u8fc7\u672c\u5730\u7684SPIFFE\u4ee3\u7406\u83b7\u53d6\u8fd9\u4e9bSVID\uff0c\u4ece\u800c\u5b9e\u73b0\u5b89\u5168\u901a\u4fe1[1][5][6]\u3002<\/p>\n<h2>tbot\u7684\u89d2\u8272<\/h2>\n<p><code>tbot<\/code>\u662f\u4e00\u4e2a\u4ee3\u7406\u7a0b\u5e8f\uff0c\u5b89\u88c5\u5728\u9700\u8981\u8eab\u4efd\u7684\u5de5\u4f5c\u8d1f\u8f7d\u9644\u8fd1\u3002\u5b83\u8d1f\u8d23\u7ba1\u7406\u8bf7\u6c42\u548c\u66f4\u65b0\u8fd9\u4e9b\u5de5\u4f5c\u8d1f\u8f7d\u7684\u8eab\u4efd\u3002\u5177\u4f53\u6765\u8bf4\uff0c<code>tbot<\/code>\u6267\u884c\u4ee5\u4e0b\u529f\u80fd\uff1a<\/p>\n<ul>\n<li>\n<p><strong>\u8eab\u4efd\u8bf7\u6c42\u4e0e\u7eed\u8ba2<\/strong>\uff1a<code>tbot<\/code>\u7ba1\u7406\u4e0eTeleport\u96c6\u7fa4\u7684\u901a\u4fe1\uff0c\u81ea\u52a8\u8bf7\u6c42\u548c\u7eed\u8ba2SVID\u3002\u8fd9\u610f\u5473\u7740\u5b83\u53ef\u4ee5\u5b9a\u671f\u66f4\u65b0\u5de5\u4f5c\u8d1f\u8f7d\u7684\u8eab\u4efd\uff0c\u4ee5\u786e\u4fdd\u5176\u6709\u6548\u6027\u548c\u5b89\u5168\u6027[1][3]\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8ba4\u8bc1\u673a\u5236<\/strong>\uff1a<code>tbot<\/code>\u4f7f\u7528\u591a\u79cd\u52a0\u5165\u65b9\u6cd5\u6765\u8ba4\u8bc1\u81ea\u5df1\uff0c\u4ee5\u4fbf\u80fd\u591f\u5411Teleport\u96c6\u7fa4\u8bf7\u6c42\u6240\u9700\u7684\u8eab\u4efd\u3002\u8fd9\u4e9b\u65b9\u6cd5\u901a\u5e38\u6d89\u53ca\u5230Unix\u7528\u6237ID\u548c\u7ec4\u7b49\u4fe1\u606f\uff0c\u4ece\u800c\u5b9e\u73b0\u5bf9\u5de5\u4f5c\u7684\u6709\u6548\u8ba4\u8bc1[5][6]\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u89d2\u8272\u8bbf\u95ee\u63a7\u5236<\/strong>\uff1a\u901a\u8fc7Teleport\u7684\u57fa\u4e8e\u89d2\u8272\u7684\u8bbf\u95ee\u63a7\u5236\u7cfb\u7edf\uff0c\u7528\u6237\u548c\u673a\u5668\u4eba\u88ab\u6388\u4e88\u7279\u5b9a\u89d2\u8272\uff0c\u4f7f\u5176\u80fd\u591f\u8bf7\u6c42\u5177\u6709\u7279\u5b9aSPIFFE ID\u7684\u8eab\u4efd\u3002\u8fd9\u79cd\u673a\u5236\u786e\u4fdd\u4e86\u53ea\u6709\u7ecf\u8fc7\u6388\u6743\u7684\u5b9e\u4f53\u624d\u80fd\u8bbf\u95ee\u7279\u5b9a\u8d44\u6e90[1][3]\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u901a\u8fc7\u7ed3\u5408SPIFFE\u6807\u51c6\u548c<code>tbot<\/code>\u4ee3\u7406\uff0cTeleport\u4e3a\u73b0\u4ee3\u57fa\u7840\u8bbe\u65bd\u63d0\u4f9b\u4e86\u4e00\u79cd\u5b89\u5168\u3001\u81ea\u52a8\u5316\u7684\u5de5\u4f5c\u8d1f\u8f7d\u8eab\u4efd\u7ba1\u7406\u65b9\u6848\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u589e\u5f3a\u4e86\u5b89\u5168\u6027\uff0c\u8fd8\u652f\u6301\u96f6\u4fe1\u4efb\u67b6\u6784\uff0c\u4f7f\u5f97\u670d\u52a1\u4e4b\u95f4\u53ef\u4ee5\u5b89\u5168\u5730\u8fdb\u884c\u8ba4\u8bc1\u548c\u901a\u4fe1\u3002<\/p>\n<p>Citations:<br \/>\n[1] <a href=\"https:\/\/goteleport.com\/docs\/enroll-resources\/workload-identity\/introduction\/\">https:\/\/goteleport.com\/docs\/enroll-resources\/workload-identity\/introduction\/<\/a><br \/>\n[2] <a href=\"https:\/\/jimmysong.io\/book\/spiffe\/integrating-with-others\/\">https:\/\/jimmysong.io\/book\/spiffe\/integrating-with-others\/<\/a><br \/>\n[3] <a href=\"https:\/\/goteleport.com\/docs\/enroll-resources\/workload-identity\/spiffe\/\">https:\/\/goteleport.com\/docs\/enroll-resources\/workload-identity\/spiffe\/<\/a><br \/>\n[4] <a href=\"https:\/\/blog.fleeto.us\/post\/something-about-spire\/\">https:\/\/blog.fleeto.us\/post\/something-about-spire\/<\/a><br \/>\n[5] <a href=\"https:\/\/goteleport.com\/resources\/videos\/teleport-workload-identity-with-spiffe\/\">https:\/\/goteleport.com\/resources\/videos\/teleport-workload-identity-with-spiffe\/<\/a><br \/>\n[6] <a href=\"https:\/\/goteleport.com\/teleport-workload-identity-with-spiffe\/\">https:\/\/goteleport.com\/teleport-workload-identity-with-spiffe\/<\/a><br \/>\n[7] <a href=\"https:\/\/www.youtube.com\/watch?v=uqBZ1oNYo6c\">https:\/\/www.youtube.com\/watch?v=uqBZ1oNYo6c<\/a><br \/>\n[8] <a href=\"https:\/\/goteleport.com\/blog\/workload-identity\/\">https:\/\/goteleport.com\/blog\/workload-identity\/<\/a><\/p>\n<hr \/>\n<p>SPIFFE\uff08Secure Production Identity Framework for Everyone\uff09\u662f\u4e00\u4e2a\u5f00\u6e90\u6807\u51c6\uff0c\u65e8\u5728\u4e3a\u73b0\u4ee3\u5206\u5e03\u5f0f\u7cfb\u7edf\u63d0\u4f9b\u5b89\u5168\u7684\u8eab\u4efd\u8ba4\u8bc1\u3002\u5b83\u7684\u4e3b\u8981\u76ee\u7684\u662f\u5728\u52a8\u6001\u548c\u5f02\u6784\u73af\u5883\u4e2d\u5b9e\u73b0\u8f6f\u4ef6\u7cfb\u7edf\u7684\u8eab\u4efd\u8bc6\u522b\uff0c\u4ee5\u652f\u6301\u5fae\u670d\u52a1\u3001\u5bb9\u5668\u7f16\u6392\u548c\u4e91\u8ba1\u7b97\u7b49\u6280\u672f\u7684\u5e94\u7528\u3002<\/p>\n<h2>SPIFFE\u7684\u6838\u5fc3\u6982\u5ff5<\/h2>\n<ul>\n<li><strong>SPIFFE ID<\/strong>\uff1a\u8fd9\u662f\u4e00\u4e2a\u552f\u4e00\u6807\u8bc6\u7b26\uff0c\u4f7f\u7528URI\u683c\u5f0f\u8868\u793a\uff0c\u901a\u5e38\u4ee5<code>spiffe:\/\/<\/code>\u5f00\u5934\uff0c\u540e\u9762\u8ddf\u968f\u4fe1\u4efb\u57df\u548c\u5de5\u4f5c\u8d1f\u8f7d\u6807\u8bc6\u3002\u4f8b\u5982\uff0c<code>spiffe:\/\/example.com\/payment\/web-fe<\/code>\u3002<\/li>\n<li><strong>SVID\uff08SPIFFE Verifiable Identity Document\uff09<\/strong>\uff1a\u8fd9\u662f\u4e00\u4e2a\u52a0\u5bc6\u7684\u8eab\u4efd\u6587\u6863\uff0c\u7528\u4e8e\u8bc1\u660e\u5de5\u4f5c\u8d1f\u8f7d\u7684\u8eab\u4efd\u3002SVID\u53ef\u4ee5\u901a\u8fc7\u53d7\u4fe1\u4efb\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784\uff08CA\uff09\u8fdb\u884c\u7b7e\u7f72\uff0c\u4ee5\u786e\u4fdd\u5176\u6709\u6548\u6027\u3002<\/li>\n<li><strong>\u5de5\u4f5c\u8d1f\u8f7dAPI<\/strong>\uff1a\u8fd9\u662f\u4e00\u4e2a\u672c\u5730API\uff0c\u5141\u8bb8\u670d\u52a1\u5728\u4e0d\u9700\u8981\u4eba\u5de5\u5e72\u9884\u7684\u60c5\u51b5\u4e0b\u81ea\u52a8\u83b7\u53d6\u8eab\u4efd\u3002<\/li>\n<li><strong>\u4fe1\u4efb\u5305<\/strong>\uff1a\u5305\u542b\u7528\u4e8e\u9a8c\u8bc1SPIFFE ID\u7684\u516c\u94a5\u96c6\u5408\uff0c\u786e\u4fdd\u4e0d\u540c\u5de5\u4f5c\u8d1f\u8f7d\u4e4b\u95f4\u80fd\u591f\u5b89\u5168\u5730\u5171\u4eab\u8eab\u4efd\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<h2>SPIFFE\u7684\u4f5c\u7528<\/h2>\n<ol>\n<li>\n<p><strong>\u81ea\u52a8\u5316\u8eab\u4efd\u7ba1\u7406<\/strong>\uff1aSPIFFE\u5b9e\u73b0\u4e86\u8eab\u4efd\u7684\u81ea\u52a8\u83b7\u53d6\u4e0e\u9a8c\u8bc1\uff0c\u6d88\u9664\u4e86\u5bf9\u624b\u52a8\u914d\u7f6e\u548c\u590d\u6742\u7f51\u7edc\u7ea7\u8bbf\u95ee\u63a7\u5236\u5217\u8868\uff08ACL\uff09\u7684\u9700\u6c42\uff0c\u4ece\u800c\u7b80\u5316\u4e86\u5b89\u5168\u7ba1\u7406\u8fc7\u7a0b[1][2]\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u652f\u6301\u96f6\u4fe1\u4efb\u6a21\u578b<\/strong>\uff1a\u5728\u96f6\u4fe1\u4efb\u7f51\u7edc\u5b89\u5168\u6a21\u578b\u4e2d\uff0cSPIFFE\u5047\u8bbe\u7f51\u7edc\u901a\u4fe1\u662f\u4e0d\u53ef\u4fe1\u7684\uff0c\u56e0\u6b64\u9700\u8981\u901a\u8fc7\u52a0\u5bc6\u8eab\u4efd\u6765\u786e\u4fdd\u670d\u52a1\u4e4b\u95f4\u7684\u5b89\u5168\u901a\u4fe1[3][4]\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8de8\u5e73\u53f0\u4e92\u64cd\u4f5c\u6027<\/strong>\uff1aSPIFFE\u662f\u8bed\u8a00\u548c\u6280\u672f\u6808\u65e0\u5173\u7684\u6807\u51c6\uff0c\u80fd\u591f\u5728\u4e0d\u540c\u7684\u73af\u5883\u4e2d\u5b9e\u73b0\u8eab\u4efd\u7ba1\u7406\uff0c\u652f\u6301\u591a\u79cd\u57fa\u7840\u8bbe\u65bd\u914d\u7f6e[5][6]\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u589e\u5f3a\u5b89\u5168\u6027<\/strong>\uff1a\u901a\u8fc7\u4e3a\u6bcf\u4e2a\u5de5\u4f5c\u8d1f\u8f7d\u63d0\u4f9b\u552f\u4e00\u4e14\u53ef\u9a8c\u8bc1\u7684\u8eab\u4efd\uff0cSPIFFE\u5e2e\u52a9\u7ec4\u7ec7\u66f4\u597d\u5730\u63a7\u5236\u670d\u52a1\u4e4b\u95f4\u7684\u8bbf\u95ee\u6743\u9650\uff0c\u4ece\u800c\u63d0\u9ad8\u6574\u4f53\u7cfb\u7edf\u7684\u5b89\u5168\u6027\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>SPIRE<\/h2>\n<p>SPIRE\uff08SPIFFE Runtime Environment\uff09\u662fSPIFFE\u7684\u5177\u4f53\u5b9e\u73b0\uff0c\u5b83\u8d1f\u8d23\u751f\u6210\u548c\u7ba1\u7406SVID\u3002\u5b83\u7531\u4e24\u4e2a\u4e3b\u8981\u7ec4\u4ef6\u7ec4\u6210\uff1a<\/p>\n<ul>\n<li><strong>SPIRE Server<\/strong>\uff1a\u8d1f\u8d23\u9881\u53d1\u548c\u7ba1\u7406SVID\uff0c\u540c\u65f6\u7ef4\u62a4\u53ef\u4fe1\u4efb\u7684CA\u3002<\/li>\n<li><strong>SPIRE Agent<\/strong>\uff1a\u5728\u6bcf\u4e2a\u670d\u52a1\u8282\u70b9\u4e0a\u8fd0\u884c\uff0c\u4e0eSPIRE Server\u901a\u4fe1\u4ee5\u83b7\u53d6SVID\uff0c\u5e76\u5411\u5de5\u4f5c\u8d1f\u8f7d\u63d0\u4f9b\u8eab\u4efd\u4fe1\u606f[2][4]\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u8fd9\u4e9b\u7ec4\u4ef6\uff0cSPIRE\u80fd\u591f\u4e3a\u5206\u5e03\u5f0f\u7cfb\u7edf\u63d0\u4f9b\u5f3a\u5927\u7684\u8eab\u4efd\u8ba4\u8bc1\u57fa\u7840\u8bbe\u65bd\uff0c\u4f7f\u5f97\u670d\u52a1\u4e4b\u95f4\u53ef\u4ee5\u5b89\u5168\u5730\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n<p>Citations:<br \/>\n[1] <a href=\"https:\/\/atbug.com\/what-is-spiffe-and-spire\/\">https:\/\/atbug.com\/what-is-spiffe-and-spire\/<\/a><br \/>\n[2] <a href=\"https:\/\/www.cnblogs.com\/wangguishe\/p\/16719803.html\">https:\/\/www.cnblogs.com\/wangguishe\/p\/16719803.html<\/a><br \/>\n[3] <a href=\"https:\/\/opsaid.net\/docs\/security\/zero-trust-model\/spiffe\/\">https:\/\/opsaid.net\/docs\/security\/zero-trust-model\/spiffe\/<\/a><br \/>\n[4] <a href=\"https:\/\/jimmysong.io\/book\/spiffe\/introduction-to-spiffe-and-spire-concepts\/\">https:\/\/jimmysong.io\/book\/spiffe\/introduction-to-spiffe-and-spire-concepts\/<\/a><br \/>\n[5] <a href=\"https:\/\/blog.fleeto.us\/post\/something-about-spire\/\">https:\/\/blog.fleeto.us\/post\/something-about-spire\/<\/a><br \/>\n[6] <a href=\"https:\/\/www.ctyun.cn\/developer\/article\/423363216031813\">https:\/\/www.ctyun.cn\/developer\/article\/423363216031813<\/a><\/p>\n<h2>Reference<\/h2>\n<ul>\n<li><a href=\"https:\/\/goteleport.com\/docs\/core-concepts\/\">https:\/\/goteleport.com\/docs\/core-concepts\/<\/a><\/li>\n<li><a href=\"https:\/\/goteleport.com\/docs\/enroll-resources\/workload-identity\/getting-started\/\">https:\/\/goteleport.com\/docs\/enroll-resources\/workload-identity\/getting-started\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>refer to https:\/\/goteleport.com\/docs\/enroll-resources\/workload-identity\/introduction\/ Workload Identity Teleport\u7684\u5de5\u4f5c\u8d1f\u8f7d\u8eab\u4efd\uff08Workload Identity\uff09\u5229\u7528SPIFFE\uff08\u5b89\u5168\u751f\u4ea7\u8eab\u4efd\u6846\u67b6\uff09\u6807\u51c6\uff0c\u4e3a\u73b0\u4ee3\u57fa\u7840\u8bbe\u65bd\u4e2d\u7684\u670d\u52a1\u63d0\u4f9b\u5b89\u5168\u7684\u8eab\u4efd\u8ba4\u8bc1\u3002\u4ee5\u4e0b\u662f\u5173\u4e8eTeleport\u5de5\u4f5c\u8d1f\u8f7d\u8eab\u4efd\u53catbot\u5982\u4f55\u4f7f\u7528SPIFFE\u7684\u8be6\u7ec6\u4fe1\u606f\u3002 Teleport\u5de5\u4f5c\u8d1f\u8f7d\u8eab\u4efd SPIFFE\u6807\u51c6 Teleport\u7684\u5de5\u4f5c\u8d1f\u8f7d\u8eab\u4efd\u5b9e\u73b0\u4e86SPIFFE\u6807\u51c6\uff0c\u5141\u8bb8\u4e3a\u6bcf\u4e2a\u5de5\u4f5c\u8d1f\u8f7d\u751f\u6210\u552f\u4e00\u7684SPIFFE ID\u3002\u8fd9\u4e9b\u8eab\u4efd\u4ee5URI\u683c\u5f0f\u8868\u793a\uff0c\u5305\u542b\u4fe1\u4efb\u57df\u548c\u5de5\u4f5c\u8d1f\u8f7d\u6807\u8bc6\u7b26\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u5de5\u4f5c\u8d1f\u8f7d\u53ef\u4ee5\u5728Teleport\u96c6\u7fa4\u5185\u5b89\u5168\u5730\u76f8\u4e92\u8ba4\u8bc1\uff0c\u786e\u4fdd\u53ea\u6709\u6388\u6743\u7684\u670d\u52a1\u80fd\u591f\u8bbf\u95ee\u5f7c\u6b64[1][3][5]\u3002 SVID\uff08\u53ef\u9a8c\u8bc1\u8eab\u4efd\u6587\u6863\uff09 \u5728Teleport\u4e2d\uff0cSVID\uff08SPIFFE\u53ef\u9a8c\u8bc1\u8eab\u4efd\u6587\u6863\uff09\u901a\u5e38\u4ee5X.509\u8bc1\u4e66\u6216JWT\u4ee4\u724c\u7684\u5f62\u5f0f\u5b58\u5728\u3002\u8fd9\u4e9bSVID\u7531\u4fe1\u4efb\u57df\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u7b7e\u53d1\uff0c\u8bc1\u660e\u5de5\u4f5c\u8d1f\u8f7d\u7684\u8eab\u4efd\u3002\u5de5\u4f5c\u8d1f\u8f7d\u901a\u8fc7\u672c\u5730\u7684SPIFFE\u4ee3\u7406\u83b7\u53d6\u8fd9\u4e9bSVID\uff0c\u4ece\u800c\u5b9e\u73b0\u5b89\u5168\u901a\u4fe1[1][5][6]\u3002 tbot\u7684\u89d2\u8272 tbot\u662f\u4e00\u4e2a\u4ee3\u7406\u7a0b\u5e8f\uff0c\u5b89\u88c5\u5728\u9700\u8981\u8eab\u4efd\u7684\u5de5\u4f5c\u8d1f\u8f7d\u9644\u8fd1\u3002\u5b83\u8d1f\u8d23\u7ba1\u7406\u8bf7\u6c42\u548c\u66f4\u65b0\u8fd9\u4e9b\u5de5\u4f5c\u8d1f\u8f7d\u7684\u8eab\u4efd\u3002\u5177\u4f53\u6765\u8bf4\uff0ctbot\u6267\u884c\u4ee5\u4e0b\u529f\u80fd\uff1a \u8eab\u4efd\u8bf7\u6c42\u4e0e\u7eed\u8ba2\uff1atbot\u7ba1\u7406\u4e0eTeleport\u96c6\u7fa4\u7684\u901a\u4fe1\uff0c\u81ea\u52a8\u8bf7\u6c42\u548c\u7eed\u8ba2SVID\u3002\u8fd9\u610f\u5473\u7740\u5b83\u53ef\u4ee5\u5b9a\u671f\u66f4\u65b0\u5de5\u4f5c\u8d1f\u8f7d\u7684\u8eab\u4efd\uff0c\u4ee5\u786e\u4fdd\u5176\u6709\u6548\u6027\u548c\u5b89\u5168\u6027[1][3]\u3002 \u8ba4\u8bc1\u673a\u5236\uff1atbot\u4f7f\u7528\u591a\u79cd\u52a0\u5165\u65b9\u6cd5\u6765\u8ba4\u8bc1\u81ea\u5df1\uff0c\u4ee5\u4fbf\u80fd\u591f\u5411Teleport\u96c6\u7fa4\u8bf7\u6c42\u6240\u9700\u7684\u8eab\u4efd\u3002\u8fd9\u4e9b\u65b9\u6cd5\u901a\u5e38\u6d89\u53ca\u5230Unix\u7528\u6237ID\u548c\u7ec4\u7b49\u4fe1\u606f\uff0c\u4ece\u800c\u5b9e\u73b0\u5bf9\u5de5\u4f5c\u7684\u6709\u6548\u8ba4\u8bc1[5][6]\u3002 \u89d2\u8272\u8bbf\u95ee\u63a7\u5236\uff1a\u901a\u8fc7Teleport\u7684\u57fa\u4e8e\u89d2\u8272\u7684\u8bbf\u95ee\u63a7\u5236\u7cfb\u7edf\uff0c\u7528\u6237\u548c\u673a\u5668\u4eba\u88ab\u6388\u4e88\u7279\u5b9a\u89d2\u8272\uff0c\u4f7f\u5176\u80fd\u591f\u8bf7\u6c42\u5177\u6709\u7279\u5b9aSPIFFE ID\u7684\u8eab\u4efd\u3002\u8fd9\u79cd\u673a\u5236\u786e\u4fdd\u4e86\u53ea\u6709\u7ecf\u8fc7\u6388\u6743\u7684\u5b9e\u4f53\u624d\u80fd\u8bbf\u95ee\u7279\u5b9a\u8d44\u6e90[1][3]\u3002 \u603b\u7ed3 \u901a\u8fc7\u7ed3\u5408SPIFFE\u6807\u51c6\u548ctbot\u4ee3\u7406\uff0cTeleport\u4e3a\u73b0\u4ee3\u57fa\u7840\u8bbe\u65bd\u63d0\u4f9b\u4e86\u4e00\u79cd\u5b89\u5168\u3001\u81ea\u52a8\u5316\u7684\u5de5\u4f5c\u8d1f\u8f7d\u8eab\u4efd\u7ba1\u7406\u65b9\u6848\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u589e\u5f3a\u4e86\u5b89\u5168\u6027\uff0c\u8fd8\u652f\u6301\u96f6\u4fe1\u4efb\u67b6\u6784\uff0c\u4f7f\u5f97\u670d\u52a1\u4e4b\u95f4\u53ef\u4ee5\u5b89\u5168\u5730\u8fdb\u884c\u8ba4\u8bc1\u548c\u901a\u4fe1\u3002 Citations: [1] https:\/\/goteleport.com\/docs\/enroll-resources\/workload-identity\/introduction\/ [2] https:\/\/jimmysong.io\/book\/spiffe\/integrating-with-others\/ [3] https:\/\/goteleport.com\/docs\/enroll-resources\/workload-identity\/spiffe\/ [4] https:\/\/blog.fleeto.us\/post\/something-about-spire\/ [5] https:\/\/goteleport.com\/resources\/videos\/teleport-workload-identity-with-spiffe\/ [6] https:\/\/goteleport.com\/teleport-workload-identity-with-spiffe\/ [7] https:\/\/www.youtube.com\/watch?v=uqBZ1oNYo6c [8] https:\/\/goteleport.com\/blog\/workload-identity\/ SPIFFE\uff08Secure Production Identity Framework for Everyone\uff09\u662f\u4e00\u4e2a\u5f00\u6e90\u6807\u51c6\uff0c\u65e8\u5728\u4e3a\u73b0\u4ee3\u5206\u5e03\u5f0f\u7cfb\u7edf\u63d0\u4f9b\u5b89\u5168\u7684\u8eab\u4efd\u8ba4\u8bc1\u3002\u5b83\u7684\u4e3b\u8981\u76ee\u7684\u662f\u5728\u52a8\u6001\u548c\u5f02\u6784\u73af\u5883\u4e2d\u5b9e\u73b0\u8f6f\u4ef6\u7cfb\u7edf\u7684\u8eab\u4efd\u8bc6\u522b\uff0c\u4ee5\u652f\u6301\u5fae\u670d\u52a1\u3001\u5bb9\u5668\u7f16\u6392\u548c\u4e91\u8ba1\u7b97\u7b49\u6280\u672f\u7684\u5e94\u7528\u3002 SPIFFE\u7684\u6838\u5fc3\u6982\u5ff5 SPIFFE ID\uff1a\u8fd9\u662f\u4e00\u4e2a\u552f\u4e00\u6807\u8bc6\u7b26\uff0c\u4f7f\u7528URI\u683c\u5f0f\u8868\u793a\uff0c\u901a\u5e38\u4ee5spiffe:\/\/\u5f00\u5934\uff0c\u540e\u9762\u8ddf\u968f\u4fe1\u4efb\u57df\u548c\u5de5\u4f5c\u8d1f\u8f7d\u6807\u8bc6\u3002\u4f8b\u5982\uff0cspiffe:\/\/example.com\/payment\/web-fe\u3002 SVID\uff08SPIFFE Verifiable Identity Document\uff09\uff1a\u8fd9\u662f\u4e00\u4e2a\u52a0\u5bc6\u7684\u8eab\u4efd\u6587\u6863\uff0c\u7528\u4e8e\u8bc1\u660e\u5de5\u4f5c\u8d1f\u8f7d\u7684\u8eab\u4efd\u3002SVID\u53ef\u4ee5\u901a\u8fc7\u53d7\u4fe1\u4efb\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784\uff08CA\uff09\u8fdb\u884c\u7b7e\u7f72\uff0c\u4ee5\u786e\u4fdd\u5176\u6709\u6548\u6027\u3002 \u5de5\u4f5c\u8d1f\u8f7dAPI\uff1a\u8fd9\u662f\u4e00\u4e2a\u672c\u5730API\uff0c\u5141\u8bb8\u670d\u52a1\u5728\u4e0d\u9700\u8981\u4eba\u5de5\u5e72\u9884\u7684\u60c5\u51b5\u4e0b\u81ea\u52a8\u83b7\u53d6\u8eab\u4efd\u3002 \u4fe1\u4efb\u5305\uff1a\u5305\u542b\u7528\u4e8e\u9a8c\u8bc1SPIFFE ID\u7684\u516c\u94a5\u96c6\u5408\uff0c\u786e\u4fdd\u4e0d\u540c\u5de5\u4f5c\u8d1f\u8f7d\u4e4b\u95f4\u80fd\u591f\u5b89\u5168\u5730\u5171\u4eab\u8eab\u4efd\u4fe1\u606f\u3002 SPIFFE\u7684\u4f5c\u7528 [&hellip;] <a class=\"read-more\" href=\"https:\/\/www.fanyamin.com\/wordpress\/?p=1773\" title=\"Permanent Link to: teleport workload identity 1\">&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-1773","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\/1773"}],"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=1773"}],"version-history":[{"count":3,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1773\/revisions"}],"predecessor-version":[{"id":1788,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1773\/revisions\/1788"}],"wp:attachment":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}