<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Security on 小惡魔 - AppleBOY</title><link>https://blog.wu-boy.com/categories/security/</link><description>Recent content in Security on 小惡魔 - AppleBOY</description><generator>Hugo</generator><language>en-us</language><managingEditor>appleboy.tw@gmail.com (Appleboy)</managingEditor><webMaster>appleboy.tw@gmail.com (Appleboy)</webMaster><lastBuildDate>Sun, 19 Apr 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://blog.wu-boy.com/categories/security/feed.xml" rel="self" type="application/rss+xml"/><item><title>小團隊的 Kubernetes 登入方案：用 kubelogin + AuthGate 打造 OIDC 身份閘道（以 k3s 為例）</title><link>https://blog.wu-boy.com/2026/04/kubelogin-authgate-k3s-tutorial-zh-tw/</link><pubDate>Sun, 19 Apr 2026 10:00:00 +0800</pubDate><author>appleboy.tw@gmail.com (Appleboy)</author><guid>https://blog.wu-boy.com/2026/04/kubelogin-authgate-k3s-tutorial-zh-tw/</guid><description>&lt;p&gt;&lt;img src="https://blog.wu-boy.com/images/2026-04-19/cover.png" alt="cover"&gt;&lt;/p&gt;
&lt;p&gt;大部分團隊第一次裝 Kubernetes 時，拿到的都是一個「超級使用者」的 kubeconfig，裡面就躺著一組可以幹掉整個叢集的憑證。於是這份檔案開始在 Slack、Email、筆電之間被複製來複製去，沒有人知道目前誰還留著副本、哪個離職員工的 kubeconfig 還能用。&lt;/p&gt;
&lt;p&gt;這篇文章要示範如何用 &lt;a href="https://github.com/int128/kubelogin"&gt;kubelogin&lt;/a&gt; 搭配 &lt;a href="https://github.com/go-authgate/authgate"&gt;AuthGate&lt;/a&gt;，在 &lt;a href="https://k3s.io"&gt;k3s&lt;/a&gt; 上建立一條 OIDC 登入流程：使用者打 &lt;code&gt;kubectl get pods&lt;/code&gt; 的瞬間，瀏覽器自動跳出 AuthGate 的登入頁面，登入完成 token 寫回 kubeconfig，整個叢集不再需要共用那份 &lt;code&gt;admin.kubeconfig&lt;/code&gt;。&lt;/p&gt;</description></item></channel></rss>